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 |
|---|---|---|---|---|---|
7,000 | ada | 0 | faicaltoubali/ENSEEIHT | Projects/Arbre_Genealogique/livrables/registre.adb | <filename>Projects/Arbre_Genealogique/livrables/registre.adb
With Ada.Text_IO ; use Ada.Text_IO ;
package body registre is
------------------------------------------------------------------
function Hashage ( Identifiant : in Integer ) return integer is
begin
return (Identifiant mod Capacite)... |
7,001 | ada | 20 | charlie5/lace | 4-high/gel/source/gel.ads | with
openGL,
Physics,
float_Math.Geometry.D2,
float_Math.Geometry.D3,
float_Math.Algebra.linear.D2,
float_Math.Algebra.linear.D3;
package GEL
--
-- A game engine library.
--
is
pragma Pure;
Error : exception;
--------
--- Math
--
package Math renames floa... |
7,002 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-dh_reset.ads | <filename>specs/ada/server/ike/tkmrpc-operation_handlers-ike-dh_reset.ads
with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ike.Dh_Reset is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the dh_reset operation.
end Tkmrpc.Operation_Handlers.... |
7,003 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-bvec4.ads | <reponame>zrmyers/VulkanAda
--------------------------------------------------------------------------------
-- 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 deal
... |
7,004 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-strings-c.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,005 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/samv71/svd/i-sam-pmc.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from ATSAMV71Q21.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.PMC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
------------... |
7,006 | ada | 0 | SKNZ/BoiteMaker | src/utilities/logger.adb | package body logger is
procedure debug(output : string) is
begin
-- affichage sur console
if show_debug then
put_line(output);
end if;
-- écriture fichier
if is_open(log_file) then
put_line(log_file, output);
end if;
end;
proc... |
7,007 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2401a.ada | -- CE2401A.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... |
7,008 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-dd_attribute_mappings.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,009 | ada | 286 | auzkok/libagar | ada/original_2008/ada-demos/keyevent_callbacks.ads | with agar.core.event;
package keyevent_callbacks is
package gui_event renames agar.core.event;
procedure keydown (event : gui_event.event_access_t);
procedure keyup (event : gui_event.event_access_t);
procedure quit (event : gui_event.event_access_t);
pragma convention (c, keydown);
pragma convention (c,... |
7,010 | ada | 5 | jhumphry/auto_counters | src/flyweights/flyweights-untracked_ptrs.ads | -- flyweights-untracked_ptrs.ads
-- A package of generalised references which point to resources inside a
-- Flyweight without tracking or releasing those resources
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby gran... |
7,011 | ada | 4 | davidkristola/vole | kv-avm-comm_tests.adb | <reponame>davidkristola/vole<filename>kv-avm-comm_tests.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Streams.Stream_IO;
with Interfaces;
with AUnit.Assertions; use AUnit.Assertions;
with kv.avm.Ini;
with kv.avm.Capabilities;
with kv.avm.Control;
with kv.avm.Re... |
7,012 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-immediate.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Immediate is
Error_Checking_Suspended : Boolean := False;
overriding procedure Finalize (Token : in out Input_Token) is
begin
if not Token.F... |
7,013 | ada | 1 | charlie5/lace-alire | 4-high/gel/applet/demo/full/launch_full_demo.adb | with
gel.Window.setup,
gel.Applet.gui_and_sim_world,
gel.Forge,
gel.Sprite,
physics.Model,
openGL.Model.box .colored,
openGL.Model.sphere .textured,
openGL.Model.capsule.textured,
openGL.Model.any,
openGL.Model.terrain,
openGL.IO,
openGL.Light,
openG... |
7,014 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/gnat1drv.adb | <reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/gnat1drv.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
7,015 | ada | 19 | jrcarter/Ada_GUI | generic_unbounded_ptr_array.adb | -- --
-- package Copyright (c) <NAME> --
-- Generic_Unbounded_Ptr_Array Luebeck --
-- Implementation Spring, 2002 --
-- ... |
7,016 | ada | 4 | DNSCatcher/DNSCatcher | src/dnscatcher/dns/processor/rdata/dnscatcher-dns-processor-rdata-a_parser.ads | -- Copyright 2019 <NAME> <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restriction, including without limitation the
-- rights to use, copy, modify, merge, publish, ... |
7,017 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34005r.ada | <gh_stars>1-10
-- C34005R.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.... |
7,018 | ada | 0 | Letractively/ada-ado | src/ado-parameters.adb | <reponame>Letractively/ada-ado
-----------------------------------------------------------------------
-- ADO Parameters -- Parameters for queries
-- Copyright (C) 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
7,019 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-generic_package_renaming_declarations.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Generic_Package_Renaming_Declarations is
function Create
(Generic_Token : not null Program.Lexical_Elements
.Lexical_Element_... |
7,020 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-scrollbar.adb | package body agar.gui.widget.scrollbar is
use type c.int;
package cbinds is
procedure set_size
(scrollbar : scrollbar_access_t;
size : c.int);
pragma import (c, set_size, "agar_gui_widget_scrollbar_set_size");
function get_size (scrollbar : scrollbar_access_t) return c.int;
pra... |
7,021 | ada | 5 | docandrew/troodon | include/setjmp_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_types_struct_u_jmp_buf_tag_h;
package setjmp_h is
-- arg-macro: procedure setjmp (env)
-- _setjmp (env)
-- arg-macro: procedure sigsetjmp (env, savemask)
-- __sigsetjmp (env, savemask)
-- Copyright (C) 19... |
7,022 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversWB55x/stm32-hsem.adb | with STM32_SVD.HSEM; use STM32_SVD.HSEM;
with System;
package body STM32.HSEM is
function OneStepLock (Semaphore : UInt5) return Boolean
is
Idx : Sema_Range := Sema_Range (Semaphore);
begin
return not
(STM32_SVD.HSEM.HSEM_Periph.RLR (Idx).LOCK and
(STM32_SVD.HSEM.HSEM_Perip... |
7,023 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-tags.adb | -- Generated at 2015-10-25 22:37:42 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-tags-maps.sx
with Natools.Static_Maps.Web.Tags.Commands;
package body Natools.Static_Maps.Web.Tags is
function To_List_Command (Key : String) return List_Command is
N : constant Natural
:= Natools.Static_... |
7,024 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/String-length/Ada/string-length-1.ada | <filename>Task/String-length/Ada/string-length-1.ada
Str : String := "<NAME>";
Length : constant Natural := Str'Size / 8;
|
7,025 | ada | 0 | mgrojo/smk | src/smk-settings.ads | -- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
7,026 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Thieles-interpolation-formula/Ada/thieles-interpolation-formula-3.ada | <filename>Task/Thieles-interpolation-formula/Ada/thieles-interpolation-formula-3.ada<gh_stars>1-10
with Ada.Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
with Thiele;
procedure Main is
package Math is new Ada.Numerics.Generic_Elementary_Functions
(Long_Float);
package Float_Thiele is new Thiele (... |
7,027 | ada | 412 | tobireinhard/cbmc | regression/symtab2gb/multiple_symtabs/library.ads | <filename>regression/symtab2gb/multiple_symtabs/library.ads<gh_stars>100-1000
procedure Library (X : Integer);
|
7,028 | ada | 1 | jrcarter/Image_Random | image_random.ads | -- Image_Random: True random numbers from a digital camera
-- This works under Linux with the GNAT compiler; modification for other platforms or compilers is left as an exercise for the
-- despearate
-- Ideally, the camera should have its lens cap on, or have a similar dark covering, so the image is of the camera senso... |
7,029 | ada | 8 | darkestkhan/lumen | src/lumen-image.adb | <filename>src/lumen-image.adb<gh_stars>1-10
-- Lumen.Image -- Load and save image data
--
-- <NAME>, NiEstu, Phoenix AZ, Spring 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee ... |
7,030 | ada | 0 | TNO/Rejuvenation-Ada | src/rejuvenation-pretty_print.adb | <filename>src/rejuvenation-pretty_print.adb
with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Interfaces.C; use Interfaces.C;
with Rejuvenation.File_Utils; use Rejuvenation.File_Utils;
with ... |
7,031 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-fixed.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
-- Fixed function pipeline. Deprecated in OpenGL 3.0.
package body GL.Fixed is
procedure Set_Vertex_Pointer (Length : Vertex_Length;
Stride, Offset : Size) is... |
7,032 | ada | 0 | Fabien-Chouteau/libriscv | examples/simulator/src/gdb_remote-agent.adb | <filename>examples/simulator/src/gdb_remote-agent.adb<gh_stars>0
package body GDB_Remote.Agent is
subtype Dispatch is Class;
--------------
-- Received --
--------------
function Received (This : in out Instance; C : Character) return Event is
begin
case This.State is
when Waiting_F... |
7,033 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-runtime_loading.adb | <reponame>onox/orka<filename>orka/src/gl/implementation/gl-runtime_loading.adb
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain... |
7,034 | ada | 79 | Roldak/OpenGLAda | tests/glfw3/glfw_test-windows.adb | <filename>tests/glfw3/glfw_test-windows.adb
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Windows;
with Glfw.Monitors;
with Glfw.Input.Keys;
procedure Glfw_Test.Windows is
type My_Window is new Glfw.Windows.Window with null record;
ove... |
7,035 | ada | 0 | melwyncarlo/ProjectEuler | problems/067/a067.adb | with Ada.Text_IO;
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A067 is
use Ada.Text_IO;
use Ada.Integer_Text_IO;
FT : File_Type;
Last_Index : Natural;
File_Name : constant String :=
"problems/067/p067_triangle.txt";
Triangle_Num_... |
7,036 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-activity_nodes.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,037 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43205e.ada | <reponame>best08618/asylo
-- C43205E.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... |
7,038 | ada | 0 | sebsgit/textproc | src/morphology.ads | <filename>src/morphology.ads
with PixelArray;
package Morphology is
function erode(image: PixelArray.ImagePlane; size: Positive) return PixelArray.ImagePlane
with Pre => size mod 2 /= 0;
function dilate(image: PixelArray.ImagePlane; size: Positive) return PixelArray.ImagePlane
with Pre => size mod 2 /=... |
7,039 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-counters/src/awa-counters.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-counters --
-- 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 License.
-- You m... |
7,040 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-application.ads | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O... |
7,041 | ada | 4 | faelys/gela-asis | source/asis/asis-exceptions.ads | -------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 5 package Asis.Exceptions
-------------------------------------------------------------------------------
--------------------------------------------------... |
7,042 | ada | 0 | persan/AUnit-addons | src/framework/aunit-test_filters-list_filters.adb | <reponame>persan/AUnit-addons
pragma Ada_2012;
with Ada.Strings.Fixed;
with Ada.Text_IO;
with GNAT.Regpat;
with AUnit.Test_Cases;
package body AUnit.Test_Filters.List_Filters is
use Ada.Text_IO;
use GNAT.Regpat;
function Is_Active
(Filter : List_Filter;
T : AUnit.Tests.Test'Class) return Boole... |
7,043 | ada | 4 | ytomino/gmp-ada | source/gmp-random.adb | <reponame>ytomino/gmp-ada<gh_stars>1-10
package body GMP.Random is
use type C.unsigned_long;
function Initialize return Generator is
begin
return (State => Initialize);
end Initialize;
function Initialize (Initiator : Long_Integer) return Generator is
begin
return (State => Initialize (Initiator));
end In... |
7,044 | ada | 4 | Lucretia/ether | apps/test.adb | <gh_stars>1-10
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters.Latin_1;
with Interfaces.C; use Interfaces.C;
with Ada.Streams; use Ada.Streams;
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ether.Requests;
w... |
7,045 | ada | 2 | SMerrony/dgemua | aosvs/aosvs-agent.ads | <reponame>SMerrony/dgemua
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... |
7,046 | ada | 76 | yannickmoy/SPARKNaCl | src/sparknacl-scalar.ads | <gh_stars>10-100
package SPARKNaCl.Scalar
with Pure,
SPARK_Mode => On
is
--------------------------------------------------------
-- Scalar multiplication
--------------------------------------------------------
function Mult (N : in Bytes_32;
P : in Bytes_32) return Bytes_32
... |
7,047 | ada | 0 | AntonMeep/pbkdf2 | tests/src/pbkdf2-tests.ads | with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
package PBKDF2.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 PBKDF2_HMAC_SHA_1_Test (Object : in out Fixture);
procedure PBKDF2_HMAC_SHA_256_Test... |
7,048 | ada | 0 | thierr26/ada-apsepp | src/apsepp-generic_array_operations.ads | <filename>src/apsepp-generic_array_operations.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Discrete_Operations;
generic
type Index_Type is (<>);
type Element_Type is private;
type Array_Type is array (Index_Type range <>) of Element_Type;
... |
7,049 | ada | 0 | hfegran/efx32_ada_examples | ada-blinky-zfp/src/main.adb | <reponame>hfegran/efx32_ada_examples
with Leds; use Leds;
procedure Main is
begin
Led_Init;
loop
Blink(LED0, Blue);
Blink(LED1, Green);
Blink(LED0, Cyan);
Blink(LED1, Red);
Blink(LED0, Magenta);
Blink(LED1, Yellow);
Blink(LED0, White);
Blink(LED1, Blue);
B... |
7,050 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deref2.ads | with deref1;
package deref2 is
type NT is tagged limited private;
function PT_View (Obj : not null access NT)
return not null access deref1.T'Class;
private
type PT (Obj : not null access NT) is new deref1.T with null record;
type NT is tagged limited record
PT_View : aliased PT (NT'Acces... |
7,051 | ada | 24 | svn2github/matreshka | source/xml/dom/xml-dom-attributes.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,052 | ada | 24 | svn2github/matreshka | source/league/arch/x86_generic/matreshka-simd-intel-sse.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,053 | ada | 33 | ytomino/drake | source/containers/a-cwacho.ads | pragma License (Unrestricted);
-- implementation unit for Ada.Containers.Access_Holders
with System.Reference_Counting;
private package Ada.Containers.Weak_Access_Holders is
pragma Preelaborate;
type Data;
type Data_Access is access all Data;
type Weak_Holder;
type Weak_Holder_Access is access all Wea... |
7,054 | ada | 236 | jquorning/septum | src/common/sp-filters.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
7,055 | ada | 4 | ytomino/yaml-ada | source/serialization.ads | <reponame>ytomino/yaml-ada
with Ada.Containers;
with Ada.Iterator_Interfaces;
with Ada.Strings.Unbounded;
package Serialization is
pragma Preelaborate;
type Stream_Element_Kind is (
Value,
Enter_Mapping,
Leave_Mapping,
Enter_Sequence,
Leave_Sequence,
End_Of_Stream);
type Direction is (Reading, Writin... |
7,056 | ada | 0 | persan/midnightsun-ctf-LoveLacedLetter | src/hide-bmp.adb | <filename>src/hide-bmp.adb
pragma Ada_2012;
with Hide.Value;
package body Hide.BMP is
MAX_TEXT_LENGTH : constant := 1024;
------------
-- Encode --
------------
type Bit_Vector is array (Natural range <>) of Boolean with Pack => True;
function Encode (Src : Pixel_ARGB32; As : Boolean ) return Pixel_A... |
7,057 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Anagrams-Deranged-anagrams/Ada/anagrams-deranged-anagrams.ada | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Generic_Array_Sort;
with Ada.Containers.Indefinite_Vectors;
procedure Danagrams is
package StringVector is new Ada.Containers.Indefinite_Vectors
(Positive, String);
procedure StrSort is new Ada.Containers.Generic_Array_Sort
(Index_Type => Positive... |
7,058 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-strings-maps-constants.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
7,059 | ada | 60 | Letractively/ada-util | src/util-beans-objects-pairs.adb | -----------------------------------------------------------------------
-- Util.Beans.Objects.Pairs -- Pairs of objects
-- 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 Licens... |
7,060 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Boolean-values/Ada/boolean-values.ada | type Boolean is (False, True);
|
7,061 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/enum1.adb | -- { dg-do run }
-- { dg-options "-O2" }
with Enum1_Pkg; use Enum1_Pkg;
procedure Enum1 is
function Cond return Boolean is
begin
return My_N = Two or My_N = Three;
end;
begin
if Cond then
raise Constraint_Error;
end if;
end;
|
7,062 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5lml-tgt.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,063 | ada | 30 | jscparker/math_packages | ordinary/orbit_2.adb |
with Ada.Numerics.Generic_Elementary_Functions;
package body Orbit_2 is
package mth is new Ada.Numerics.Generic_Elementary_Functions(Real);
use mth;
function Norm (Y : Dynamical_Variable)
return Real
is
Sum : Real := +0.0;
begin
for i in Dyn_Index loop
Sum := Sum + Abs Y(i);
... |
7,064 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/all_modes.ads | <reponame>ouankou/rose
procedure All_Modes
(Default_In_Parm : Integer;
In_Parm : in Integer;
Out_Parm : out Integer;
In_Out_Parm : in out Integer;
Access_Parm : access Integer);
|
7,065 | ada | 0 | My-Colaborations/ada-servlet | src/servlet-routes.adb | <reponame>My-Colaborations/ada-servlet
-----------------------------------------------------------------------
-- servlet-routes -- Request routing
-- Copyright (C) 2015, 2016, 2017, 2018, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ... |
7,066 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-strings-c.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,067 | ada | 33 | ytomino/drake | source/a-except.adb | <reponame>ytomino/drake
with Ada.Unchecked_Conversion;
with System.Unwind.Occurrences;
with System.UTF_Conversions.From_8_To_16;
with System.UTF_Conversions.From_8_To_32;
package body Ada.Exceptions is
pragma Suppress (All_Checks);
use type System.Unwind.Exception_Data_Access;
-- for Exception_Information
... |
7,068 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32f469_discovery/framebuffer_otm8009a.ads | <reponame>TUM-EI-RCS/StratoX
with HAL; use HAL;
with HAL.Framebuffer; use HAL.Framebuffer;
with HAL.Bitmap;
private with STM32.Device;
private with STM32.DMA2D_Bitmap;
private with STM32.LTDC;
private with OTM8009A;
private with HAL.DSI;
package Framebuffer_OTM8009A is
LCD_Natural_Width : constant :=... |
7,069 | ada | 0 | micahwelf/Password_Encode | password_encode.adb | with Ada.Strings,
Ada.Strings.UTF_Encoding,
Ada.Strings.UTF_Encoding.Wide_Strings,
Ada.Wide_Text_IO;
use Ada.Strings.UTF_Encoding;
package body Password_Encode is
--
--
package body Base64 is
--
procedure Decode(Source : in String;
Target : out Byte... |
7,070 | ada | 17 | jquorning/swagger-ada | regtests/server/src/server/testapi-skeletons.adb | -- REST API Validation
-- API to validate
--
-- The version of the OpenAPI document: 1.0.0
-- Contact: <EMAIL>
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1-SNAPSHOT.
-- https://openapi-generator.tech
-- Do not edit the class manually.
pragma Warnings (Off, "*is not referenced");
with Sw... |
7,071 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/exp_ch4.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,072 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-images-bitmaps.adb | <reponame>micahwelf/FLTK-Ada
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Images.Bitmaps is
procedure free_fl_bitmap
(I : in System.Address);
pragma Import (C, free_fl_bitmap, "free_fl_bitmap");
pragma Inline (free_fl_bitmap);
function fl_bitmap_... |
7,073 | ada | 0 | jhumphry/Ada_BinToAsc | src/bintoasc.ads | -- BinToAsc
-- Binary data to ASCII codecs
-- Copyright (c) 2015, <NAME>
--
-- 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 appear in all copies.
--
-- THE SOFTWARE I... |
7,074 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Averages-Simple-moving-average/Ada/averages-simple-moving-average-2.ada | with Ada.Containers.Vectors;
package body Moving is
use Ada.Containers;
package Number_Vectors is new Ada.Containers.Vectors
(Element_Type => Number,
Index_Type => Natural);
Current_List : Number_Vectors.Vector := Number_Vectors.Empty_Vector;
procedure Add_Number (N : Number) is
begin
... |
7,075 | ada | 9 | Kidev/AdaPhysics2D | rectangles.ads | <reponame>Kidev/AdaPhysics2D<filename>rectangles.ads
with Entities; use Entities;
with Materials; use Materials;
with Vectors2D; use Vectors2D;
package Rectangles is
type Rectangle is new Entities.Entity with record
Dim : Vec2D; -- (x => width, y => height)
end record;
pragma Pack (Rectangle);
type... |
7,076 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-colire.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
7,077 | ada | 60 | RREE/ada-util | src/core/concurrent/asm-x86/util-concurrent-counters.ads | -----------------------------------------------------------------------
-- Util.Concurrent -- Concurrent Counters
-- Copyright (C) 2009, 2010, 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 ... |
7,078 | ada | 33 | ytomino/drake | source/s-unwfor.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- runtime unit
package System.Unwind.Foreign is
pragma Preelaborate;
-- This is the substitute name of any exceptions propagated from any other
-- runtimes. (s-except.ads)
Foreign_Exception : exception
with Export,
Convention => Ada,
... |
7,079 | ada | 263 | jfouquart/synth | src/portscan-ops.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Display;
package PortScan.Ops is
package DPY renames Display;
function port_name (id : port_id) return String;
function next_ignored_port return port_id;
function ignore_reason (id : port_id) re... |
7,080 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testpalette_sprogs.ads | <reponame>Lucretia/old_nehe_ada95<gh_stars>0
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public ... |
7,081 | ada | 10 | jrmarino/libsodium-ada | examples/hash_single/demo_ada.adb | <reponame>jrmarino/libsodium-ada<filename>examples/hash_single/demo_ada.adb
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "Arbitrary text to hash";
key : constant String := "123456789 123456789 123456789 12";
begin
if not... |
7,082 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/msp430g2553/svd/msp430_svd-system_clock.ads | <reponame>ekoeppen/MSP430_Generic_Ada_Drivers<gh_stars>0
-- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- System Clock
package MSP430_SVD.SYSTEM_CLOCK is
pragma Preelaborate;
------------... |
7,083 | ada | 5 | jedb/esoteric | src/Brainfuck/brainfuck.adb |
with Ada.Text_IO;
with Ada.Direct_IO;
with Ada.Command_Line;
procedure Brainfuck is
package CL renames Ada.Command_Line;
package Text_IO renames Ada.Text_IO;
package Direct_IO is new Ada.Direct_IO(Character);
use type Direct_IO.Count;
type Cell is mod 256;
type Tape_Position is mod 500... |
7,084 | ada | 8 | flyx/OpenCLAda | src/implementation/cl-queueing.adb | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <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... |
7,085 | ada | 0 | mgrojo/smk | src/smk-run_files.adb | <gh_stars>0
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache License, Version 2.0 (the "Lic... |
7,086 | ada | 1 | procrastiraptor/euler | ada/euler7.adb | with Ada.Integer_Text_IO;
with Primes;
procedure Euler7 is
Ps: constant Primes.List := Primes.First(10_001);
begin
Ada.Integer_Text_IO.Put(Ps(Ps'Last));
end Euler7;
|
7,087 | ada | 33 | ytomino/drake | source/tasking/required/s-taasde.adb | package body System.Tasking.Async_Delays is
function Enqueue_Duration (
T : Duration;
D : not null access Delay_Block)
return Boolean is
begin
raise Program_Error; -- unimplemented
return Enqueue_Duration (T, D);
end Enqueue_Duration;
procedure Cancel_Async_Delay (D : not nul... |
7,088 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-wchcon.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,089 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/mspgd-uart.ads | with MSP430_SVD; use MSP430_SVD;
package MSPGD.UART is
pragma Preelaborate;
type Clock_Source_Type is (UCLK, ACLK, SMCLK);
end MSPGD.UART;
|
7,090 | ada | 4 | jfuica/bingada | src/q_bingo.ads | <filename>src/q_bingo.ads
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_bingo.ads
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
package Q_Bingo wi... |
7,091 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_mixer/playwave_sprogs.adb |
--
-- PLAYWAVE: Port to the Ada programming language of a test application for the
-- the SDL mixer library.
--
-- The original code was written in C by <NAME> http://www.libsdl.org.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Publ... |
7,092 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-generic_procedure_renaming_declarations.adb | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Generic_Procedure_Renaming_Declarations is
function Create
(Generic_Token : not null Program.Lexical_Elements
.... |
7,093 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-storio.adb | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
7,094 | ada | 33 | ytomino/drake | examples/filename.adb | with Ada.Directories.Equal_File_Names;
with Ada.Directories.Hierarchical_File_Names;
with Ada.Directories.Less_File_Names;
with Ada.Directories.Volumes;
with Ada.Hierarchical_File_Names;
procedure filename is
Windows : constant Boolean := Ada.Hierarchical_File_Names.Is_Path_Delimiter ('\');
package AD renames Ada.Dir... |
7,095 | ada | 20 | charlie5/lace | 1-base/math/source/generic/pure/geometry/any_math-any_geometry-any_d2.adb | <gh_stars>10-100
package body any_Math.any_Geometry.any_d2
is
---------
-- Sites
--
function Distance (From, To : Site) return Real
is
use Functions;
begin
return SqRt ( (To (1) - From (1)) ** 2
+ (To (2) - From (2)) ** 2);
end Distance;
function to_Polar (S... |
7,096 | ada | 0 | jfitz/code-stat | test/data/Ada-83/adabkend.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,097 | ada | 0 | Letractively/ada-util | samples/date.adb | -----------------------------------------------------------------------
-- date -- Print the date
-- 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 in compliance with the License.
-- You may obtain ... |
7,098 | ada | 0 | faelys/natools | src/natools-gnat_hmac.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
7,099 | ada | 1 | mullikine/RosettaCodeData | Task/Parsing-RPN-to-infix-conversion/Ada/parsing-rpn-to-infix-conversion-2.ada | with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Generic_Stack;
procedure RPN_to_Infix is
-- The code above
begin
Put_Line ("3 4 2 * 1 5 - 2 3 ^ ^ / + = ");
Put_Line (Convert ("3 4 2 * 1 5 - 2 3 ^ ^ / +"));
Put_Line ("1 2 + 3 4 + ^ 5 6 + ^ = ");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.