id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
4,400 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/XML-Input/Ada/xml-input-4.ada | with Ada.Text_IO;
with Sax.Readers;
with Input_Sources.Strings;
with Unicode.CES.Utf8;
with DOM.Readers;
with DOM.Core.Documents;
with DOM.Core.Nodes;
with DOM.Core.Attrs;
procedure Extract_Students is
Sample_String : String :=
"<Students>" &
"<Student Name=""April"" Gender=""F"" DateOfBirth=""1989-01-02"" />" &... |
4,401 | ada | 0 | charlesincharge/Intro_to_Ada | threadsafe_containers.ads | -- Example based on http://www.embedded.com/design/prototyping-and-development/4025713/Programming-real-time-with-Ada-2005, and
-- https://en.wikibooks.org/wiki/Ada_Style_Guide/Concurrency
package Threadsafe_Containers is
type IntegerArray is array (Positive range<>) of Integer;
-- Interface
-- protected Th... |
4,402 | ada | 10 | Ada-Audio/wavefiles | test/wavefiles_test/src.prep/generic_NUM_TYPE_wave_test.ads | ------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- --
-- ... |
4,403 | ada | 0 | optikos/oasis | source/nodes/program-nodes-aspect_specifications.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Aspect_Specifications;
with Program.Element_Visitors;
package ... |
4,404 | ada | 4 | albinjal/Ada_Project | Klient/graphics_tests_old_do_not_use/test.adb | with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with TJa.Sockets; use TJa.Sockets;
with TJa.Window.Text; use TJa.Window.Text;
with TJa.Window.Elementary; use TJ... |
4,405 | ada | 0 | reznikmm/gela | source/resolver/program-type_resolvers.ads | <gh_stars>0
-- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Compilation_Units;
with Program.Cross_Reference_Updaters;
with Program.Elements.Expressions;
with Program.Interpretations;
with Program.Visib... |
4,406 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-images/src/awa-images-servlets.adb | <filename>awa/plugins/awa-images/src/awa-images-servlets.adb
-----------------------------------------------------------------------
-- awa-images-servlets -- Serve files saved in the storage service
-- Copyright (C) 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (th... |
4,407 | ada | 0 | TNO/Dependency_Graph_Extractor-Ada | src/extraction-direct_calls.adb | pragma Assertion_Policy (Check);
with Libadalang.Analysis;
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Direct_Calls is
use type LALCO.Ada_Node_Kind_Type;
function Is_Duplicate_Callsite (Name : LAL.Name) return Boolean;
function Is_Duplicate_Callsite (Name : LAL.Name)... |
4,408 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-internals-element_collections.ads | <reponame>svn2github/matreshka<filename>source/amf/mof/amf-internals-element_collections.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
4,409 | ada | 412 | tobireinhard/cbmc | regression/symtab2gb/single_symtab/entry_point.adb | <gh_stars>100-1000
procedure Entry_Point is
X : constant Integer := 11;
begin
-- Failure
pragma Assert (X < 10);
-- Success
pragma Assert (X > 0);
end Entry_Point;
|
4,410 | ada | 24 | svn2github/matreshka | source/xml/sax/matreshka-internals-xml-namespace_scopes.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,411 | ada | 12 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-ngcoar.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
4,412 | ada | 6 | yannickmoy/SPARKZumo | src/algos/line_finder/line_finder.ads | pragma SPARK_Mode;
with Line_Finder_Types; use Line_Finder_Types;
with Geo_Filter;
with Types; use Types;
with Zumo_LED;
with Zumo_Motors;
with Zumo_QTR;
-- @summary
-- Line finder algorithm
--
-- @description
-- This package implements the line finder algorithm
--
package Line_Finder is
-- Amount of time t... |
4,413 | ada | 33 | ytomino/drake | source/strings/a-strcom.adb | with Ada.Characters.Conversions;
with Ada.UCD.Combining_Class;
package body Ada.Strings.Composites is
use type UCD.UCS_4;
type Long_Boolean is new Boolean;
for Long_Boolean'Size use Long_Integer'Size;
function expect (exp, c : Long_Boolean) return Long_Boolean
with Import,
Convention => Int... |
4,414 | ada | 0 | j-lawrence-b1/string-path-search | tests/data/small/ts_mbthom.adb | <filename>tests/data/small/ts_mbthom.adb<gh_stars>0
with text_io; use text_io;
with Communications_with_User; use Communications_with_User;
with Standard_Natural_Numbers; use Standard_Natural_Numbers;
with Standard_Natural_Numbers_io; use Standard_Natural_Numbers_io... |
4,415 | ada | 3 | vasil-sd/ada-tlsf | bits/src/bitoperations-types.ads | generic
type Modular_Type is mod <>;
package BitOperations.Types With
SPARK_Mode, Pure is
Pragma Assert (Modular_Type'Last = 2 ** Modular_Type'Size - 1);
subtype Modular is Modular_Type;
subtype Bit_Position is Natural range 0 .. Modular'Size - 1;
subtype Mask_Size is Natural range 1 .. Modular'Size;
... |
4,416 | ada | 0 | sebsgit/textproc | src/opencl/gpucomponentlabeling.ads | <filename>src/opencl/gpucomponentlabeling.ads
with opencl;
with cl_objects;
with PixelArray.Gpu;
with ImageRegions;
with System;
with Ada.Finalization;
package GpuComponentLabeling is
pragma Elaborate_Body;
pragma Assertion_Policy (Pre => Check,
Post => Check,
... |
4,417 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1226b.ada | -- CC1226B.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... |
4,418 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/impunit.ads | <filename>gcc-gcc-7_3_0-release/gcc/ada/impunit.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,419 | ada | 0 | thierr26/ada-apsepp | src/_demo/debug_trace/apsepp_demo_dt_scope_debug_user.ads | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package Apsepp_Demo_DT_Scope_Debug_User is
procedure Scope_Debug_User_1;
procedure Scope_Debug_User_2;
end Apsepp_Demo_DT_Scope_Debug_User;
|
4,420 | ada | 0 | BKambic/HelloAda | hello.adb | with Ada.Text_IO;
With Ada.Integer_Text_IO;
procedure Hello is
use Ada.Text_IO;
use Ada.Integer_Text_IO;
Input: integer; -- integer for i/o statement
begin
Put_Line ("Enter 1 for Hello and 2 for Goodbye: ");
get (Input);
if Input = 1 then -- input for hello statement
Put_Li... |
4,421 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_eval.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,422 | ada | 2 | stcarrez/ada-mail | tools/mgrep-matcher.ads | -----------------------------------------------------------------------
-- mgrep-matcher -- Print mail grep results
-- Copyright (C) 2020 <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.
-... |
4,423 | ada | 0 | jacksonchen07/Chatbox | report.adb | with Ada.Text_IO;
with Ada.Strings.Unbounded;
with ada.Text_IO.Unbounded_IO;
procedure Report is
User_Input : Ada.Strings.Unbounded.Unbounded_String;
use Ada.Text_IO;
F : File_Type;
begin
Put_Line ("Please enter your report: ");
User_Input := ada.Text_IO.Unbounded_IO.Get_Line;
Create (F, Out_f... |
4,424 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/gnatkr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,425 | ada | 0 | persan/a-cups | src/gen/cups-ug_config_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.bits_types_h;
with CUPS.wchar_h;
private package CUPS.uG_config_h is
-- This file is needed by libio to define various configuration parameters.
-- These are always the same in the GNU C library.
-- Define types fo... |
4,426 | ada | 0 | HeisenbugLtd/cache-sim | src/caches-simple_caches.ads | ------------------------------------------------------------------------------
-- Copyright (C) 2012-2020 by Heisenbug Ltd.
--
-- 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 LICE... |
4,427 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35502k.ada | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35502k.ada
-- C35502K.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Governmen... |
4,428 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-parser.adb |
with Asis.Gela.Scanners;
with Asis.Gela.Scanner_Tables;
with Gela.Character_Class_Buffers;
with Gela.Classificators;
with Asis.Gela.Classificators_Create;
with Ada.Text_IO;
with Ada.Characters.Handling;
with Asis.Gela.Elements; use Asis.Gela.Elements;
with Asis.Gela.Elements.Assoc; use Asis.Ge... |
4,429 | ada | 5 | jhumphry/SPARK_SipHash | src/tests/test_halfsiphash.adb | -- Test_HalfSipHash
-- a short test program for a 32-bit friendly version of SipHash, the algorithm
-- described in "SipHash: a fast short-input PRF"
-- by <NAME> and <NAME>
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_I... |
4,430 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Continued-fraction/Ada/continued-fraction-4.ada | <reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Continued-fraction/Ada/continued-fraction-4.ada<gh_stars>1-10
generic
type Scalar is digits <>;
with function A (N : in Natural) return Natural;
with function B (N : in Positive) return Natural;
function Continued_Fraction_Ada95 (Steps : in Natural) retu... |
4,431 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32001e.ada | -- C32001E.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... |
4,432 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Extreme-floating-point-values/Ada/extreme-floating-point-values-2.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure IEEE is -- Non portable, bad, never do this!
Zero : Float := 0.0;
PInf : Float := 1.0 / Zero;
NInf : Float := -PInf;
PZero : Float := 1.0 / PInf;
NZero : Float := 1.0 / NInf;
NaN : Float := 0.0 / Zero;
begin
Put_Line (" -oo = " & Float'Image (NInf)... |
4,433 | ada | 0 | persan/advent-of-code-2020 | src/day-2/adventofcode-day_2.adb | <gh_stars>0
pragma Ada_2012;
with GNAT.Regpat;
package body Adventofcode.Day_2 is
use GNAT.Strings;
-----------
-- Valid --
-----------
function Valid (Self : Password_Entry) return Boolean is
Count : Natural := 0;
begin
for C of Self.Password.all loop
if C = Self.Key then
... |
4,434 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-mastop.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
4,435 | ada | 0 | annexi-strayline/ASAP-UUIDs | uuids-version_5.adb | ------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implementation - --
-- ... |
4,436 | ada | 0 | VMika/Des_Ada | Des_Ada/src/concrete_handler/p_inputhandler.inputhandler.ads | with P_StepHandler;
use P_StepHandler;
package P_StepHandler.InputHandler is
type T_InputHandler is new T_StepHandler with private;
PROCEDURE Initialize (Object : in out T_InputHandler) ;
end P_StepHandler.InputHandler;
|
4,437 | ada | 24 | svn2github/matreshka | source/amf/mof/cmof/amf-internals-tables-cmof_metamodel.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
4,438 | ada | 3 | Fabien-Chouteau/atomic | src/atomic-signed_8.ads | with Interfaces;
with Atomic.Signed;
package Atomic.Signed_8 is new Atomic.Signed (Interfaces.Integer_8);
|
4,439 | ada | 0 | edmundsmith/completely-unscientific-benchmarks | ada/main_fast.adb | with Ada.Integer_Text_IO;
with Ada.Text_IO;
with Tree_Fast; use Tree_Fast;
procedure Main_Fast is
t: Tree_Fast.Tree;
cur: Integer := 5;
res: Integer := 0;
mode: Integer;
procedure PutI(item: Integer; width: Natural := 0; base: Natural := 10)
renames Ada.Integer_Text_IO.Put;
procedure New_Line(spacing:... |
4,440 | ada | 0 | thierr26/ada-apsepp | src/apsepp-abstract_test_suite.ads | <filename>src/apsepp-abstract_test_suite.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Suite_Stub; use Apsepp.Test_Node_Class.Suite_Stub;
use Apsepp.Test_Node_Class;
package Apsepp.Abstract_Test_Suite is
subtype Test_Node_Array is Apsepp... |
4,441 | ada | 0 | melwyncarlo/ProjectEuler | problems/015/a015.adb | with Ada.Long_Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A015 is
use Ada.Long_Integer_Text_IO;
Input_Grid_Dimension : constant Integer := 20;
Routes_N : Long_Float := 1.0;
begin
for I in 1 .. Input_Grid_Dimension loop
Routes_N := Routes_N * (Long_Float (I + Input_Grid_Dimension)
... |
4,442 | ada | 0 | Letractively/ada-asf | src/asf-security-filters.adb | <filename>src/asf-security-filters.adb<gh_stars>0
-----------------------------------------------------------------------
-- security-filters -- Security filter
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
4,443 | ada | 3 | Fabien-Chouteau/AGATE | src/traces/agate-traces.ads | <filename>src/traces/agate-traces.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, <NAME> --
-- ... |
4,444 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/unchecked_convert8.adb | -- { dg-do compile }
-- { dg-options "-g -O" }
with Ada.Unchecked_Conversion;
package body Unchecked_Convert8 is
type T1 is range 0 .. 255;
type T2 is
record
A : T1;
B : T1;
end record;
for T2 use
record
A at 0 range 0 .. 7;
B at 1 range 0 .. 7;
... |
4,445 | ada | 4 | jorge-real/Ball-On-Beam | src/bb-adc.ads | <filename>src/bb-adc.ads<gh_stars>1-10
----------------------------------------------------------------------------
-- --
-- B A L L _ O N _ B E A M _ A D C --
-- ... |
4,446 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/led_control.ads | <filename>src/led_control.ads
--===========================================================================
--
-- This package offers the control for the LEDs
--
--===========================================================================
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
p... |
4,447 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2020, AdaCore --
-- --
-- ... |
4,448 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5gintman.adb | <filename>tools-src/gnu/gcc/gcc/ada/5gintman.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
4,449 | ada | 15 | jquorning/dynamo | src/gen-model-beans.ads | <reponame>jquorning/dynamo<filename>src/gen-model-beans.ads
-----------------------------------------------------------------------
-- gen-model-beans -- Ada Bean declarations
-- Copyright (C) 2012, 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
4,450 | ada | 6 | yannickmoy/SPARKZumo | bsp/atmega328p/pwm.adb | <filename>bsp/atmega328p/pwm.adb
pragma SPARK_Mode;
with System;
with Proc_Types; use Proc_Types;
package body Pwm is
TCCR1A : Register
with Address => System'To_Address (16#80#);
TCCR1B : Register
with Address => System'To_Address (16#81#);
ICR1 : Double_Register
with Address => System'To_... |
4,451 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-soliin.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,452 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/test_ensemble.adb | <reponame>MOUDDENEHamza/ENSEEIHT
-- Programme de test du module Ensemble.
with Ensemble;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Ensemble is
package Ensemble_Caractere is
-- Instantiation du package Ensemble avec
-- T_Element => Character.
new Ensemble (T_Element => Characte... |
4,453 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__EOL_at_EOF/asistant-funcenum.ads | <reponame>AdaCore/style_checker
------------------------------------------------------------------------------
-- --
-- ASIS Tester And iNTerpreter (ASIStant) COMPONENTS --
-- ... |
4,454 | ada | 0 | bkold/RISC-CPU-Assembler | Source/assemble_functions.ads | <filename>Source/assemble_functions.ads
with Ada.Strings;
with Ada.Strings.Maps;
with Ada.Strings.Bounded;
with Ada.Text_IO;
with Ada.Text_IO.Bounded_IO;
with Improved_Trie;
use Ada.Text_IO;
Package Assemble_Functions is
--receives the input file and a created output file.
--returns a completed output file and whe... |
4,455 | ada | 2 | zenharris/ada-bbs | src/text_file_scroller.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Terminal_Interface.Curses; use Terminal_Interface.Curses;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
With Ada.Text_IO.Unbounded_IO;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Texaco; -- For ... |
4,456 | ada | 6 | jquorning/ada-el | regtests/el-contexts-tests.adb | -----------------------------------------------------------------------
-- el-contexts-tests - Tests the EL contexts
-- Copyright (C) 2011, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Lic... |
4,457 | ada | 0 | ytomino/gnat4drake | g-enutst.ads | pragma License (Unrestricted);
with System.WCh_Con;
with GNAT.Encode_String;
package GNAT.Encode_UTF8_String is
new GNAT.Encode_String (System.WCh_Con.WCEM_UTF8);
pragma Pure (GNAT.Encode_UTF8_String);
|
4,458 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41203b.ada | <reponame>best08618/asylo
-- C41203B.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... |
4,459 | ada | 2 | charlie5/cBound | tier-1/gmp/source/thin/gmp_c-pointers.ads | <reponame>charlie5/cBound<gh_stars>1-10
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
package gmp_c.Pointers is
-- mp_limb_t_Pointer
--
type mp_limb_t_Pointer is access all gmp_c.mp_limb_t;
-- mp_limb_t_Pointers
--
type mp_limb_t_Pointers is
array
... |
4,460 | ada | 0 | mgrojo/swagger-ada | src/openapi.ads | <gh_stars>0
-----------------------------------------------------------------------
-- openapi -- Support library for OpenAPI code generator
-- Copyright (C) 2017, 2022 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in... |
4,461 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-nodes-action_nodes.adb | <reponame>fintatarta/eugen
-- with Symbolic_Identifiers;
package body EU_Projects.Nodes.Action_Nodes is
use Times.Time_Expressions;
function Var_Begin (Item : Action_Node) return Symbolic_Instant
is (Variable (Join (Dotted_Identifier (Item.Label), Event_Names.Begin_Name)));
function Var_End (Item : Acti... |
4,462 | ada | 0 | jquorning/CELLE | source/parser_data.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.
--
with Ada.Strings.Unbounded;
wi... |
4,463 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/pack3.ads | -- { dg-do compile }
with Pack3_Pkg;
package Pack3 is
subtype N_TYPE is INTEGER range 0..5;
type LIST_ARRAY is array (N_TYPE range <>) of INTEGER;
type LIST (N : N_TYPE := 0) is record
LIST : LIST_ARRAY(1..N);
end record;
pragma PACK(LIST);
subtype CS is STRING(1..Pack3_Pkg.F);
type CSA is arra... |
4,464 | ada | 36 | rewriting/tom | examples/ada/sl/unit/testbehaviour.ads | <filename>examples/ada/sl/unit/testbehaviour.ads
package TestBehaviour is
procedure run_test;
end;
|
4,465 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-7.1.4/wisi-gpr.adb | <reponame>caqg/linux-home
-- Abstract :
--
-- See spec
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version ... |
4,466 | ada | 0 | hgrodriguez/spi_two_devices | src/main_slave_itsybitsy.adb | --===========================================================================
--
-- This is the main slave program for the ItsyBitsy for the
-- use cases:
-- 2: Master Pico -> Slave ItsyBitsy
-- 4: Master ItsyBitsy -> Slave ItsyBitsy
--
--=========================================================... |
4,467 | ada | 0 | zrmyers/GLFWAda | src/glfw-error.adb | <reponame>zrmyers/GLFWAda
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to d... |
4,468 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/color_8/lv-color_types.ads | with Interfaces; use Interfaces;
with Interfaces.C.Extensions;
package Lv.Color_Types is
subtype Color_Int_T is Uint8_T;
type Color_T_Comp is record
Blue : Extensions.Unsigned_2;
Green : Extensions.Unsigned_3;
Red : Extensions.Unsigned_3;
end record
with Pack, Object_Size => 8;
... |
4,469 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-valuators-sliders.ads |
package FLTK.Widgets.Valuators.Sliders is
type Slider is new Valuator with private;
type Slider_Reference (Data : not null access Slider'Class) is limited null record
with Implicit_Dereference => Data;
type Slider_Kind is
(Vertical_Kind, Horizontal_Kind,
Vert_Fill_Kind, Hor_Fill... |
4,470 | ada | 4 | ytomino/yaml-ada | examples/test_serialize.adb | with Ada.Characters.Latin_1;
with Ada.Command_Line;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Streams.Stream_IO;
with Ada.Strings.Unbounded;
with Ada.Text_IO;
with Serialization.YAML;
with YAML.Streams;
procedure test_serialize is
Verbose : Boolean := False;
procedure Put (Item : in String) is
b... |
4,471 | ada | 999 | thishome153/soci | languages/ada/soci-mysql.ads | <reponame>thishome153/soci
-- Copyright (C) 2008-2011 <NAME>
-- Distributed under the Boost Software License, Version 1.0.
-- (See accompanying file LICENSE_1_0.txt or copy at
-- http://www.boost.org/LICENSE_1_0.txt)
package SOCI.MySQL is
--
-- Registers the MySQL backend so that it is ready for use
-- ... |
4,472 | ada | 0 | reznikmm/gela | source/oasis/program-elements-choice_parameter_specifications.ads | <filename>source/oasis/program-elements-choice_parameter_specifications.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Elements.Defining_Identifiers;
with Program.Le... |
4,473 | ada | 0 | fuzzysloth/ada-awa | awa/regtests/awa-wikis-writers-tests.adb | -----------------------------------------------------------------------
-- Render Tests - Unit tests for AWA Wiki rendering
-- 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 Li... |
4,474 | ada | 33 | ytomino/drake | source/numerics/machine-apple-darwin/s-ranini.adb | with Ada.Exception_Identification.From_Here;
with C.fcntl;
with C.sys.types;
with C.unistd;
package body System.Random_Initiators is
use Ada.Exception_Identification.From_Here;
use type Storage_Elements.Storage_Offset;
use type C.char_array;
use type C.signed_int; -- ssize_t is signed int or signed long
... |
4,475 | ada | 1 | selroc/Renaissance-Ada | src/examples/Rejuvenation_Workshop/src/math.ads | package Math is
function Square (x : Integer) return Integer;
function Exponent (base, power : Integer) return Integer;
type Matrix_Type is
array (Positive range <>, Positive range <>) of Integer;
function Square (m : Matrix_Type) return Matrix_Type;
end Math;
|
4,476 | ada | 0 | mstewartgallus/linted | src/ada-libc/src/libc-syslog.ads | with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System;
package Libc.Syslog with
Spark_Mode => Off is
pragma Preelaborate;
LOG_EMERG : constant :=
0; -- /usr/include/x86_64-linux-gnu/sys/syslog.h:51
LOG_ALERT : constant :=
1; -- /usr/include/x86_64-linux-gnu/sys/syslog... |
4,477 | ada | 0 | fintatarta/fakedsp | Ada/src/fakelib/test/fakedsp-data_streams-wave-test.adb | procedure Fakedsp.Data_Streams.Wave.Test is
Source : constant Wave_Source_Access := Open ("test_data/a.wav");
Dst : constant Wave_Destination_Access := Wave.Open (Filename => "test_data/rumenta/b.wav",
Sampling => Source.Sampling_Frequency,
... |
4,478 | ada | 0 | Letractively/ada-ado | regtests/ado-datasets-tests.adb | <gh_stars>0
-----------------------------------------------------------------------
-- ado-datasets-tests -- Test executing queries and using datasets
-- Copyright (C) 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
4,479 | ada | 3 | Lucretia/jni | src/linux/jni_md.ads | with Interfaces.C; use Interfaces.C;
package JNI_MD is
-- pragma Pure;
subtype jint is int;
subtype jlong is long;
subtype jbyte is signed_char;
end JNI_MD;
|
4,480 | ada | 0 | skill-lang/adaCommon | src/skill-streams.ads | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream manipulation package --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> ... |
4,481 | ada | 14 | JeremyGrosser/usb_embedded | src/usb-lang.ads | <reponame>JeremyGrosser/usb_embedded
pragma Style_Checks (Off);
package USB.Lang is
Invalid : constant Lang_ID := 16#0000#; -- Invalid LANG ID
Afrikaans : constant Lang_ID := 16#0436#; -- Afrikaans
Albanian : constant Lang_ID := 16#041c#; -- Albanian
... |
4,482 | ada | 5 | DependableSystemsLab/Trident | llvm-2.9/test/FrontendAda/Support/real_cst.ads | <gh_stars>1-10
with Ada.Streams;
package Real_Cst is
procedure Write (Stream : access Ada.Streams.Root_Stream_Type'Class);
end;
|
4,483 | ada | 60 | RREE/ada-util | src/core/concurrent/util-concurrent-sequence_queues.ads | <reponame>RREE/ada-util
-----------------------------------------------------------------------
-- util-concurrent-sequence_queues -- Concurrent Sequence Queues
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this ... |
4,484 | ada | 5 | docandrew/troodon | src/render.adb | <reponame>docandrew/troodon
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System; use System;
with fontconfig;
with fttypes;
with freetype;
with GL;
with GLX;
with Xlib;
with Xutil;
with xcb;
with xcb_render;
with xprot... |
4,485 | ada | 1 | persan/A-gst | tests/src/gstreamer-tests-rtsp_suit.ads | with AUnit.Test_Suites;
package GStreamer.tests.Rtsp_Suit is
function Suit return AUnit.Test_Suites.Access_Test_Suite;
end GStreamer.tests.Rtsp_Suit;
|
4,486 | ada | 36 | rewriting/tom | examples/ada/concString/concat.ads | package Concat is
procedure main;
end Concat;
|
4,487 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5vasthan.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
4,488 | ada | 33 | ytomino/drake | source/required/s-caun32.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Compare_Array_Unsigned_32 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Unsigned_32 is mod 2 ** 32;
for Un... |
4,489 | ada | 2,127 | nodew/hlines | test-data/test.ada | -- simple.adb: simple example of array declarations and access
procedure Simple is
-- Array type declarations:
-- * index range can be any discrete type
-- * lower and upper bound can be arbitrary
-- * components can have any type
type AT1 is array (1..50) of Integer;
type AT2 is array (4..457) of Integer;
... |
4,490 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-wchcon.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
4,491 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_code.adb | <reponame>ouankou/rose<filename>src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_code.adb
with Ada.Text_IO;
with c_code_h;
package body Ada_Code is
package ATI renames Ada.Text_Io;
procedure Ada_Proc is
begin
ATI.Put_Line ("Ada_Proc: Begin");
ATI.Put_Line ("Ada_Proc:... |
4,492 | ada | 3 | shinesolutions/cloudmanager-api-clients | clients/ada/generated/src/.ads | -- Cloud Manager API
-- This API allows access to Cloud Manager programs, pipelines, and environments by an authorized technical account created through the Adobe I/O Console. The base url for this API is https://cloudmanager.adobe.io, e.g. to get the list of programs for an organization, you would make a GET request... |
4,493 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cuprqu.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
4,494 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-data_decomposition-extensions.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
4,495 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c2/c23006f.ada | -- C23006F.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... |
4,496 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-di_metamodel.adb | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
4,497 | ada | 3 | ekzemplaro/data_base_language | json/ada/create/json_create.adb | <reponame>ekzemplaro/data_base_language<filename>json/ada/create/json_create.adb
-- ----------------------------------------------------------------
-- json_create.adb
--
-- Jan/05/2014
--
-- ----------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada... |
4,498 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/hex_2digits_display.ads | <reponame>hgrodriguez/embedded-dashboard-console<gh_stars>0
--===========================================================================
--
-- Represents an 5x7 Matrix Pimoroni display.
-- This package can only display a hex number on such a 5x7 matrix.
--
--========================================================... |
4,499 | ada | 1 | Fabien-Chouteau/pygamer_usb_gamepad | src/usb_gamepad.ads | package USB_Gamepad is
procedure Run;
end USB_Gamepad;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.