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 |
|---|---|---|---|---|---|
2,000 | ada | 3 | charlie5/aIDE | source/program_structure/adam-subprogram_body.ads | with
AdaM.Any,
Ada.Containers.Vectors,
Ada.Streams;
package AdaM.subprogram_Body
is
type Item is new Any.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Self... |
2,001 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada-server/mojang-status/src/com-github.ads | <reponame>AsyncMC/Mojang-API-Libs<gh_stars>0
-- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
-- ------------ EDIT NOTE ------------
-- This file was generated with openapi-generator. You can modify it to implement
-- the server. After yo... |
2,002 | ada | 33 | ytomino/drake | source/ada.ads | <filename>source/ada.ads
pragma License (Unrestricted);
package Ada is
pragma Pure;
-- extended
-- This package creates usable debug output.
-- It is placed in the package Ada directly,
-- therefore it does not need to write any additional "with" clause.
package Debug is
function File ret... |
2,003 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network-ftp.adb | <filename>include/sf-network-ftp.adb
--//////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the author... |
2,004 | ada | 80 | thindil/steamsky | tests/shipmodules-test_data-tests-basemodules_container.ads | package ShipModules.Test_Data.Tests.BaseModules_Container is
end ShipModules.Test_Data.Tests.BaseModules_Container;
|
2,005 | ada | 2 | timo-cmd2/Lovelace | sources/compiler.adb | <reponame>timo-cmd2/Lovelace<filename>sources/compiler.adb
with Ada.Command_Line;
with Ada.Exceptions;
with Ada.Text_IO;
procedure lovelace is
end lovelace;
|
2,006 | ada | 0 | senier/genode-world | src/test/aunit/main.adb | --
-- \brief AUnit test program
-- \author <NAME>
-- \date 2019-01-03
--
with GNAT.IO;
with AUnit;
procedure Main is
use GNAT.IO;
begin
Put_Line ("No AUnit test, yet.");
end Main;
|
2,007 | ada | 6 | godunko/adagl | sources/glew/opengl-shaders.adb | ------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- --
-- ... |
2,008 | ada | 0 | Letractively/ada-util | regtests/util-listeners-tests.adb | <reponame>Letractively/ada-util<gh_stars>0
-----------------------------------------------------------------------
-- util-listeners-tests -- Unit tests for listeners
-- Copyright (C) 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
2,009 | ada | 0 | mgrojo/swagger-ada | src/openapi-streams-forms.ads | -----------------------------------------------------------------------
-- openapi-streams-forms -- x-www-form-urlencoded streams
-- Copyright (C) 2018, 2022 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
2,010 | ada | 0 | Letractively/ada-asf | src/asf-utils.adb | <reponame>Letractively/ada-asf
-----------------------------------------------------------------------
-- html -- ASF HTML Components
-- 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... |
2,011 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45252a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45252a.ada
-- C45252A.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
-- unlimi... |
2,012 | ada | 6 | yannickmoy/SPARKZumo | src/drivers/zumo_motors.adb | pragma SPARK_Mode;
with Pwm;
with Sparkduino; use Sparkduino;
package body Zumo_Motors is
PWM_L : constant := 10;
PWM_R : constant := 9;
DIR_L : constant := 8;
DIR_R : constant := 7;
procedure Init
is
begin
Initd := True;
SetPinMode (Pin => PWM_L,
Mode => PinMode'... |
2,013 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | ADL/devices/stm32-device.ads | <filename>ADL/devices/stm32-device.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- ... |
2,014 | ada | 9 | alire-project/clic | src/clic-config-info.ads | package CLIC.Config.Info is
function List (This : CLIC.Config.Instance;
Filter : String := ".*";
Show_Origin : Boolean := False)
return AAA.Strings.Vector;
-- Return a Vector of String that contains a list of configuration
-- key/value as see... |
2,015 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-rcc.adb | ------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- --
-- ... |
2,016 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/lib-xref.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,017 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-ref-man-2012.5/progs/arm_str.ads | <reponame>caqg/linux-home
with ARM_Input;
package ARM_String is
--
-- Ada reference manual formatter (ARM_Form).
--
-- This package contains the definition of reading input from a string.
--
-- ---------------------------------------
-- Copyright 2000, 2011
-- AXE Consultant... |
2,018 | ada | 0 | balintsoos/LearnAda | gyak/gyak11/hauntedHouse/hauntedhouse.ads | package hauntedhouse is
-- W: Wall, R: Room, C: Corridor, E: Exit
type Fields is (W,R,C,E);
type Position is record
x: Natural;
y: Natural;
end record;
function IsWall(pos: Position) return Boolean;
function IsCorrect(pos: Position) return Boolean;
function IsCorridor(pos: Positi... |
2,019 | ada | 0 | CopyPasteBugs/ActionGameContestProject | Assets/Animations/Mannequin/ADB/Panda.adb | <AnimDB FragDef="Animations/Mannequin/ADB/PandaFragmentIds.xml" TagDef="Animations/Mannequin/ADB/PandaTags.xml">
<FragmentList>
<Walk>
<Fragment BlendOutDuration="0.2" Tags="">
<AnimLayer>
<Blend ExitTime="0" StartTime="0" Duration="0.2"/>
<Animation name="1DONE-BSpace_forward" flags="Loop+ForceSkel... |
2,020 | ada | 4 | jfuica/bingada | src/q_sound.null.adb | --*****************************************************************************
--*
--* PROJECT: BINGADA
--*
--* FILE: q_sound.null.adb
--*
--* AUTHOR: Manuel <mgrojo at github>
--*
--*****************************************************************************
package body Q_Sound... |
2,021 | ada | 0 | ray2501/AdaBaseXClient | examples/exampleadd.adb | <gh_stars>0
with Ada.Text_IO;
with Ada.Exceptions;
with AdaBaseXClient;
use Ada.Exceptions;
use AdaBaseXClient;
procedure ExampleAdd is
begin
if (Connect ("localhost", 1_984) = False) then
Ada.Text_IO.Put_Line ("Connect failed.");
return;
else
if (Authenticate ("admin", "admin") = False) then
... |
2,022 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/egl/private/opengl-surface-privvy.adb | <reponame>charlie5/lace<filename>3-mid/opengl/source/platform/egl/private/opengl-surface-privvy.adb<gh_stars>10-100
package body opengl.Surface.privvy
is
function to_eGL (Self : in Surface.item'Class) return egl.EGLSurface
is
begin
return Self.egl_Surface;
end to_eGL;
end opengl.Surface.privvy;
|
2,023 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization6.ads | <gh_stars>1-10
package Loop_Optimization6 is
A : Integer := 0;
procedure Main;
end Loop_Optimization6;
|
2,024 | ada | 25 | thierr26/ada-keystore | src/keystore-passwords-keys.ads | -----------------------------------------------------------------------
-- keystore-passwords-keys -- Key provider
-- Copyright (C) 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 License.
--... |
2,025 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-pipe_setup.ads | --
-- Copyright (C) 2015-2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- ... |
2,026 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-bignum.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,027 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_dbug.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,028 | ada | 52 | onox/orka | orka_plugin_sdl/src/orka-windows-sdl.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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
-... |
2,029 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-tagged_accessors.adb | <reponame>mstewartgallus/linted<gh_stars>0
-- Copyright 2017 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless requi... |
2,030 | ada | 1 | GambuzX/Pixy-SIW | pixy/src/host/pantilt_in_ada/specs/libusb_1_0_libusb_h.ads | <filename>pixy/src/host/pantilt_in_ada/specs/libusb_1_0_libusb_h.ads
--
-- Copyright (c) 2015, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above copyright
-- notice and this permission notice appe... |
2,031 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Percentage-difference-between-images/Ada/percentage-difference-between-images-4.ada | <gh_stars>1-10
function Diff (Left, Right : Image) return Float is
Offs_I : constant Integer := Right'First (1) - Left'First (1);
Offs_J : constant Integer := Right'First (2) - Left'First (2);
Sum : Count := 0;
begin
if Left'Length (1) /= Right'Length (1) or else Left'Length (2) /= Right'Length (2) then
... |
2,032 | ada | 6 | aeszter/lox-spark | tools/generate_ast.adb | with Ada.Text_IO;
with Command_Line;
with Ada.Strings;
with Ada.Strings.Fixed;
with Ada.Characters;
with Ada.Characters.Handling;
procedure Generate_Ast with SPARK_Mode => Off is
package IO renames Ada.Text_IO;
type String_Access is access constant String;
type String_Array is array (Positive range <>) of Str... |
2,033 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-coprnu.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
2,034 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/stm32f4-discovery/leds-raven/leds.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
2,035 | ada | 81 | twdroeger/ada-awa | awa/src/awa-events-queues.ads | <filename>awa/src/awa-events-queues.ads
-----------------------------------------------------------------------
-- awa-events-queues -- AWA Event Queues
-- Copyright (C) 2012, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
2,036 | ada | 1 | stcarrez/babel | regtests/babel-streams-tests.adb | <filename>regtests/babel-streams-tests.adb
-----------------------------------------------------------------------
-- babel-streams-tests - Unit tests for babel streams
-- Copyright (C) 2015, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
2,037 | ada | 33 | ytomino/drake | source/a-undesu.adb | procedure Ada.Unchecked_Deallocate_Subpool (
Subpool : in out System.Storage_Pools.Subpools.Subpool_Handle)
is
pragma Suppress (All_Checks);
begin
System.Storage_Pools.Subpools.Unchecked_Deallocate_Subpool (Subpool);
end Ada.Unchecked_Deallocate_Subpool;
|
2,038 | ada | 12 | jquorning/ada-asf | src/asf-components-utils-scrollers.adb | <reponame>jquorning/ada-asf
-----------------------------------------------------------------------
-- components-utils-scrollers -- Data scrollers
-- Copyright (C) 2013, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
2,039 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-images-rgb-png.ads | <filename>src/fltk-images-rgb-png.ads
package FLTK.Images.RGB.PNG is
type PNG_Image is new RGB_Image with private;
type PNG_Image_Reference (Data : not null access PNG_Image'Class) is limited null record
with Implicit_Dereference => Data;
package Forge is
function Create
... |
2,040 | ada | 1 | leo-brewin/adm-bssn-numerical | support/support-clock.adb | with Ada.Text_IO; use Ada.Text_IO;
with Support.Strings; use Support.Strings;
with Ada.Calendar;
package body Support.Clock is
package Real_IO is new Ada.Text_IO.Float_IO (Real); use Real_IO;
function get_date Return string is
the_date... |
2,041 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.2.1/run_wisi_common_parse.adb | <gh_stars>0
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 - 2019 Free Software Foundation, Inc.
--
-- This program 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 3, or (at
-- your... |
2,042 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt64_pkg.ads | <gh_stars>1-10
package Opt64_PKG is
type Hash is new string (1 .. 1);
Last_Hash : Hash;
procedure Encode (X : Integer);
end;
|
2,043 | ada | 1 | TNO/Rejuvenation-Ada | tests/src/test_replacer.adb | with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Replacer; use Rejuvenation.Replacer;
with Rejuvenation.Simple_Factory; u... |
2,044 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd3021a.ada | <gh_stars>1-10
-- CD3021A.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.... |
2,045 | ada | 0 | alire-project/sdlada | tools/scancodes.ads | <reponame>alire-project/sdlada
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2014 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any dam... |
2,046 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_disp.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/sem_disp.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
2,047 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-ztdeio.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
2,048 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/test/resources/ada-sources/delimiters.adb | <filename>src/test/resources/ada-sources/delimiters.adb
-- Single Delimiters
& ' ( ) * + , - . / : ; < = > |
-- Compound Delimiters
=> .. ** := /= >= <= << >> <>
-- Special cases
=>=
<=>
<<>
<<>>
<>>
character_literal('a')
apostrophe'delimiter
Variable'Access
Character'('a')
|
2,049 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-utick.ads | <reponame>morbos/Ada_Drivers_Library
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_S... |
2,050 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversWL5x/stm32-subghzrf.ads | with HAL; use HAL;
with HAL.SPI; use HAL.SPI;
with STM32.Device; use STM32.Device;
with STM32.SPI; use STM32.SPI;
with STM32.SubGhzPhy; use STM32.SubGhzPhy;
with System;
package STM32.SubGhzRF is
type Set_Standby_Selection is
(RC_13_MHz,
HSE32);
type Set_RegulatorMode_S... |
2,051 | ada | 31 | aps337/unum-sdk | src/gdb/gdb-7.11/gdb/testsuite/gdb.ada/cond_lang/mixed.adb | -- Copyright 2010-2016 Free Software Foundation, Inc.
--
-- 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 3 of the License, or
-- (at your option) any later version.
--
-- ... |
2,052 | ada | 12 | TUM-EI-RCS/StratoX | software/kernel/main.ads | <filename>software/kernel/main.ads<gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Main
--
-- Authors: <NAME> (<EMAIL>)
--
-- Description: The main program
--
-- ToDo:
-- [ ] Implementation
package Main with
SPARK_Mode
is
... |
2,053 | ada | 11 | reznikmm/ada_lsp | source/server/ada_lsp-completion_tokens.adb | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Containers.Doubly_Linked_Lists;
with League.Strings;
with Incr.Nodes.Tokens;
with Incr.Parsers.Incremental;
with Incr.Version_Trees;
with A... |
2,054 | ada | 60 | Letractively/ada-util | regtests/util-serialize-mappers-tests.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- serialize-mappers-tests -- Unit tests for serialization
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
2,055 | ada | 0 | jacksonchen07/Chatbox | client.adb | <reponame>jacksonchen07/Chatbox
with Ada.Strings;
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Calendar; use Ada.C... |
2,056 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-gui-view.ads | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N... |
2,057 | ada | 60 | RREE/ada-util | src/tests/ahven/ahven-tap_runner.adb | --
-- Copyright (c) 2008-2009 <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR ... |
2,058 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Keyboard-input-Keypress-check/Ada/keyboard-input-keypress-check.ada | <filename>Task/Keyboard-input-Keypress-check/Ada/keyboard-input-keypress-check.ada
Ch : Character;
Available : Boolean;
Ada.Text_IO.Get_Immediate (Ch, Available);
|
2,059 | ada | 30 | jscparker/math_packages | disorderly/xor_shift.ads |
generic
type Parent_Random_Int is mod <>;
package Xor_Shift
with Spark_Mode => On
is
pragma Pure (Xor_Shift);
pragma Assert (Parent_Random_Int'Modulus >= 2**61);
subtype Valid_XOR_Shift_Range is Parent_Random_Int range 1 .. 2**61-1;
-- Seeds need to be in this range. Input of 0 gives period o... |
2,060 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-classifiers.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,061 | ada | 0 | AntonMeep/hmac | tests/src/hmac_sha2_streams_tests.ads | with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
package HMAC_SHA2_Streams_Tests is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
private
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure HMAC_SHA_224_Test (Object : in out Fixture);
procedure HMAC_SHA_256_Test ... |
2,062 | ada | 2 | stcarrez/hestia | tools/src/gid/gid-decoding_gif.adb | <gh_stars>1-10
-- GIF Decoder by <NAME>
--
-- A GIF stream is made of several "blocks".
-- The image itself is contained in an Image Descriptor block.
--
with GID.Buffering, GID.Color_tables;
with Ada.Exceptions, Ada.Text_IO;
package body GID.Decoding_GIF is
----------
-- Load --
----------
... |
2,063 | ada | 24 | svn2github/matreshka | tools/aflex/src/scanner.ads | -- A lexical scanner generated by aflex
--# line 1 "scanner.l"
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are... |
2,064 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-dh_reset.adb | with Tkmrpc.Servers.Ike;
with Tkmrpc.Results;
with Tkmrpc.Request.Ike.Dh_Reset.Convert;
with Tkmrpc.Response.Ike.Dh_Reset.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Dh_Reset is
-------------------------------------------------------------------------
procedure Handle (Req : Request.Data_Type; Res : ou... |
2,065 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45343a.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C45343A.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 docume... |
2,066 | ada | 0 | melwyncarlo/ProjectEuler | problems/033/a033.adb | <reponame>melwyncarlo/ProjectEuler
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A033 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
Products_List : array (Integer range 1 .. 4, 1 .. 2) of Integer;
Value_1, Value_2 : Float;
Count_Val : Integer :... |
2,067 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-utils-ds-generic_collection-sorted.ads | <filename>src/aco-utils-ds-generic_collection-sorted.ads
generic
with function "<" (L : Item_Type; R : Item_Type) return Boolean is <>;
package ACO.Utils.DS.Generic_Collection.Sorted is
pragma Preelaborate;
type Sorted_Collection (Max_Size : Positive) is
new Collection (Max_Size) with null record;
... |
2,068 | ada | 80 | thindil/steamsky | tests/ships-cargo-test_data-tests.ads | <filename>tests/ships-cargo-test_data-tests.ads<gh_stars>10-100
-- 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 Ships.Cargo.Test_Data.Tests is
type Test is new GNATtest_... |
2,069 | ada | 6 | mosteo/yeison | src/yeison_classwide.ads | private with Ada.Containers.Indefinite_Ordered_Maps;
private with Ada.Containers.Indefinite_Vectors;
private with Ada.Finalization;
private with Ada.Strings.Unbounded;
private with Ada.Numerics.Big_Numbers.Big_Integers;
private with Ada.Numerics.Big_Numbers.Big_Reals;
package Yeison_Classwide with Preelaborate is
... |
2,070 | ada | 4 | reznikmm/jupyter | sources/driver/load_library.ads | -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
procedure Load_Library
(Name : League.Strings.Universal_String;
Error : out League.Strings.Universal_String);
|
2,071 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-caldel.adb | <filename>tools-src/gnu/gcc/gcc/ada/a-caldel.adb
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
2,072 | ada | 60 | Letractively/ada-util | samples/multipro.adb | -----------------------------------------------------------------------
-- multipro -- Points out multiprocessor issues when incrementing counters
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exc... |
2,073 | ada | 24 | svn2github/matreshka | source/web/fastcgi/matreshka-fastcgi-protocol.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,074 | ada | 1 | Okasu/Byron | src/plugins/plugin_management.ads | <filename>src/plugins/plugin_management.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Plugin.Base; use Plugin.Base;
with Plugin.URL; use Plugin.URL;
with IRC;
package Plugin_Management
is
type Callback is access procedure (Message : IRC.Message);
type Plugins is (Say, Tit... |
2,075 | ada | 2 | godunko/adawebui | source/web-ui-widgets-combo_boxes-strings.adb | <filename>source/web-ui-widgets-combo_boxes-strings.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,076 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-taprob.ads | <filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-taprob.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
2,077 | ada | 20 | charlie5/lace | 3-mid/impact/applet/demo/2d/hello/launch_impact_hello_2d_demo.adb | <gh_stars>10-100
with impact.d2.World,
impact.d2.Solid,
impact.d2.Shape.polygon,
impact.d2.Fixture,
impact.d2.Math,
ada.text_IO;
procedure launch_impact_hello_2d_Demo
-- This is a simple example of building and running a simulation
-- using Box2D. Here we create a large grou... |
2,078 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-set_get.adb | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
2,079 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Jump-anywhere/Ada/jump-anywhere.ada | <gh_stars>1-10
procedure Goto_Test is
begin
Stuff;
goto The_Mother_Ship; -- You can do this if you really must!
Stuff;
if condition then
Stuff;
<<Jail>>
Stuff;
end if;
Stuff;
-- Ada does not permit any of the following
goto Jail;
goto The_Sewer;
goto The_Morgue;
Stuff;... |
2,080 | ada | 22 | FardaleM/metalang | out/euler15.adb | <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 euler15 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Writ... |
2,081 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_rtsp_gstrtsptransport_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib;
with glib.Values;
with System;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtspdefs_h;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtsptr... |
2,082 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48009h.ada | -- C48009H.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... |
2,083 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_001d.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,084 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/prj-env.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,085 | ada | 2 | thindil/tashy2 | tests/tk-ttklabelframe-ttk_label_frame_options_test_data-ttk_label_frame_options_tests.ads | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.TtkLabelFrame.Ttk_Label_Frame_Options_Test_Data
.Ttk_Label_Frame_Options_Tests
is
type Test_Ttk_Label_Frame_Options ... |
2,086 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP1_Algorithmique/signe_entier.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Signe_Entier is
-- La procédure TODO affiche un message.
procedure TODO is
begin
Put_Line ("Il faut remplacer TODO; par les instructions qui vont bien");
end;
N1, N2: Integer; -- Entier lu au clavier ... |
2,087 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Perfect-numbers/Ada/perfect-numbers.ada | <filename>Task/Perfect-numbers/Ada/perfect-numbers.ada
function Is_Perfect(N : Positive) return Boolean is
Sum : Natural := 0;
begin
for I in 1..N - 1 loop
if N mod I = 0 then
Sum := Sum + I;
end if;
end loop;
return Sum = N;
end Is_Perfect;
|
2,088 | ada | 51 | jackhftang/ABCDEFGHPPP | ada-9-loop/abcdefghppp.adb | <filename>ada-9-loop/abcdefghppp.adb
with Ada.Text_IO;
with Ada.Strings.Unbounded;
procedure abcdefghppp is
procedure output_string(A,B,C,D,E,F,G,H,P: Integer) is
begin
Ada.Text_IO.Put_Line(
Integer'image(A*10+B) & "-" &
Integer'image(C*10+D) & "=" &
Integer'image(E*... |
2,089 | ada | 52 | onox/orka | orka/src/gl/interface/gl-viewports.ads | <gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <NAME> <<EMAIL>>
-- Copyright (c) 2017 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 a... |
2,090 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/complex.ads | <gh_stars>100-1000
package Complex is
type Complex is private;
i, zero : constant Complex;
-- arithmetic plus operator on complex values
function "+" ( lhs, -- left hand side
rhs : in Complex -- right hand side
) return Complex; -- returns a Compelx
... |
2,091 | ada | 0 | hergin/ada2fuml | test-resources/ExamplesFromRoy/md_example1.ads | with Globals_Example1;
package Md_Example1 is
function Function_Itype (The_I : Globals_Example1.Itype)
return Globals_Example1.Itype;
function Function_Ftype (The_F : Globals_Example1.Ftype)
return Globals_Example1.Ftype;
end Md_Example1;
|
2,092 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-counters/src/awa-counters-components.adb | -----------------------------------------------------------------------
-- awa-counters-components -- Counter UI component
-- 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 compliance with the Lic... |
2,093 | ada | 4 | davidkristola/vole | kv-avm-assemblers.adb | <filename>kv-avm-assemblers.adb<gh_stars>1-10
with Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with Interfaces;
with String_Ops; use String_Ops;
with kv.avm.references; use kv.avm.references;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Methods... |
2,094 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn1.adb | -- { dg-do run }
-- { dg-options "-gnatwae" }
procedure warn1 is
pragma Warnings
(Off, "variable ""Unused"" is never read and never assigned");
Unused : Integer;
pragma Warnings
(On, "variable ""Unused"" is never read and never assigned");
begin
null;
end warn1;
|
2,095 | ada | 0 | RyanMcCarl/.emacs.d | archive/test/manual/etags/ada-src/2ataspri.adb | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
2,096 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1207b.ada | <gh_stars>1-10
-- CC1207B.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.... |
2,097 | ada | 24 | svn2github/matreshka | source/xml/sax/xml-sax-readers.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,098 | ada | 20 | charlie5/lace | 4-high/gel/source/gel-camera.adb | <filename>4-high/gel/source/gel-camera.adb
with
openGL.Visual,
ada.unchecked_Deallocation;
with ada.Text_IO; use ada.Text_IO;
package body gel.Camera
is
use linear_Algebra_3D;
--------
-- Forge
--
procedure define (Self : in out Item)
is
begin
Self.view_Transform := Look_at (Eye... |
2,099 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ees/tkmrpc-dispatchers-ees.adb | with Tkmrpc.Operations.Ees;
with Tkmrpc.Operation_Handlers.Ees.Esa_Acquire;
with Tkmrpc.Operation_Handlers.Ees.Esa_Expire;
package body Tkmrpc.Dispatchers.Ees is
-------------------------------------------------------------------------
procedure Dispatch
(Req : Request.Data_Type;
Res : out Response.... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.