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 |
|---|---|---|---|---|---|
28,200 | ada | 7 | jquorning/trendy_test | src/trendy_test-generics.adb | <filename>src/trendy_test-generics.adb
package body Trendy_Test.Generics is
procedure Assert_Discrete (Op : in out Operation'Class;
Left : T;
Right : T;
Loc : Source_Location := Make_Source_Lo... |
28,201 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-objects-buffers.ads | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Pointers;
with GL.Low_Level;
private with GL.Low_Level.Enums;
with GL.Pixels;
package GL.Objects.Buffers is
pragma Preelaborate;
type Buffer_Usage is (Stream_Draw, ... |
28,202 | ada | 0 | sebsgit/textproc | src/trainingdata.ads | <reponame>sebsgit/textproc<filename>src/trainingdata.ads
with MathUtils;
with NNClassifier;
with DataBatch;
with PixelArray;
with Ada.Strings.Unbounded;
package TrainingData is
pragma Elaborate_Body;
pragma Assertion_Policy (Pre => Check,
Post => Check,
Ty... |
28,203 | ada | 2 | onox/evdev-ada | src/event_device-input_dev.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2021 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
-... |
28,204 | ada | 0 | AdamSzerszen/Concurrency_v.2.0 | src/units/units.adb | package body Units is
procedure Dummy is
begin
null;
end Dummy;
end Units;
|
28,205 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-trig.ads | <gh_stars>1-10
--------------------------------------------------------------------------------
-- 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
-- in the Sof... |
28,206 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-slices.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Slices is
function Create
(Prefix : not null Program.Elements.Expressions
.Expression_Access;
Left_Bracket_To... |
28,207 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-5.3.1/gps_source/generic_stack.adb | <gh_stars>0
------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2001-2016, AdaCore ... |
28,208 | ada | 33 | ytomino/drake | source/a-excide.ads | <filename>source/a-excide.ads
pragma License (Unrestricted);
-- extended unit
private with System.Unwind;
package Ada.Exception_Identification is
-- "Pure" version of Ada.Exceptions.
pragma Pure;
type Exception_Id is private;
pragma Preelaborable_Initialization (Exception_Id);
Null_Id : constant Excep... |
28,209 | ada | 33 | ytomino/drake | source/strings/a-ucd.ads | <filename>source/strings/a-ucd.ads
pragma License (Unrestricted);
-- implementation unit
private package Ada.UCD is
-- This is the parent package of Unicode Character Database.
pragma Pure;
Version : constant String (1 .. 11) := "Unicode 6.1";
-- difference between two code points
type Difference_Ba... |
28,210 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-broadphase-bounding_volume_tree.ads | <reponame>charlie5/lace
with impact.d3.collision.Broadphase,
impact.d3.collision.Proxy,
impact.d3.collision.bounding_volume_Tree,
ada.containers.Vectors;
with impact.d3.Dispatcher;
with System;
with impact.d3.collision.overlapped_pair_Callback.cached;
with Interfaces;
package impact.d3.collision.Broad... |
28,211 | ada | 0 | SSOCsoft/Log_Reporter | src/nso-json.ads | Pragma Ada_2012;
With
Interfaces,
Ada.Streams,
Ada.Wide_Wide_Characters.Unicode,
Ada.Containers.Indefinite_Holders,
Ada.Containers.Indefinite_Ordered_Maps,
Ada.Containers.Indefinite_Vectors;
Package NSO.JSON with Elaborate_Body is
Type Value_Kind is ( VK_Object, VK_Array, VK_String, VK_Number,
... |
28,212 | ada | 0 | Fabien-Chouteau/ASFML | tests/window/main.adb | <reponame>Fabien-Chouteau/ASFML
with Ada.Text_IO; use Ada.Text_IO;
with Sf.Window.Window; use Sf, Sf.Window, Sf.Window.Window;
with Sf.Window.VideoMode; use Sf.Window.VideoMode;
with Sf.Window.Event; use Sf.Window.Event;
with Sf.Window.Keyboard; use Sf.Window.Keyboard;
with Sf.Window.Clipboard;
with Sf.... |
28,213 | ada | 0 | jhumphry/aLua | internal/lua-auxinternal.ads | <reponame>jhumphry/aLua
-- Lua.Interface
-- Contains the raw interfaces with the Lua auxiliary library written in C
-- Generated from lauxlib.h and then manually tidied up
-- Copyright (c) 2015, <NAME>
-- Derived from the original Lua work
-- Copyright (C) 1994-2015 Lua.org, PUC-Rio.
-- See LICENSE for details
with... |
28,214 | ada | 1 | ytomino/openssl-ada | examples/test_sha1.adb | <reponame>ytomino/openssl-ada<filename>examples/test_sha1.adb
with Ada.Streams;
with Ada.Text_IO;
with Crypto.SHA1; use Crypto.SHA1;
procedure Test_SHA1 is
procedure Test_01 is
use type Ada.Streams.Stream_Element_Array;
C : Context := Initial;
D : Fingerprint;
begin
Update (C, "a");
Final (C, D);
pragma A... |
28,215 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | host/stm32gd-gpio-polled.adb | <filename>host/stm32gd-gpio-polled.adb
package body STM32GD.GPIO.Polled is
T : Boolean;
procedure Wait_For_Trigger is
begin
while Pin.Is_Set loop
null;
end loop;
T := True;
end Wait_For_Trigger;
procedure Clear_Trigger is
begin
T := False;
end Clear_Trigger;
... |
28,216 | ada | 1 | stcarrez/babel | src/babel-stores-local.ads | -----------------------------------------------------------------------
-- babel-stores-local -- Store to access local files
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
28,217 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/thin/freetype_c-ft_charmap.ads | <reponame>charlie5/lace<gh_stars>10-100
with
freetype_c.FT_CharMapRec;
package freetype_c.FT_CharMap
is
subtype Item is FT_CharMapRec.Pointer;
type Item_array is array (interfaces.C.Size_t range <>) of aliased FT_CharMap.Item;
type Pointer is access all FT_CharMap.Item;
type Pointer_a... |
28,218 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-return-3.adb | <reponame>xuedong/mini-ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F return integer is begin return; end;
begin put('a'); end;
|
28,219 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network-http.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this... |
28,220 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/comperr.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,221 | ada | 0 | sebsgit/textproc | src/opencl/layermodeltests.adb | with AUnit.Assertions; use AUnit.Assertions;
with Ada.Text_IO;
with Tensor;
with NN2;
package body LayerModelTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine (T, testDense'Access, "Layer Model: Dense");
Register_Routine (T, te... |
28,222 | ada | 0 | micahwelf/ada_launch | ada_time.adb | <gh_stars>0
with Ada.Text_IO;
with Ada.Streams;
with Ada.Characters.Latin_1;
with Ada.Text_IO.Text_Streams;
with Ada.Streams.Stream_IO;
with Ada.Calendar;
with Ada.Calendar.Time_Zones;
with Ada.Calendar.Formatting;
with Ada.Command_Line;
with GNAT.Calendar.Time_IO;
with GNAT.Regpat;
with GNAT.Formatted_String;
with Ada... |
28,223 | ada | 0 | SKNZ/BezierToSTL | src/courbes/courbes.adb | <reponame>SKNZ/BezierToSTL<filename>src/courbes/courbes.adb<gh_stars>0
with Ada.Unchecked_Deallocation;
with Courbes.Visiteurs; use Courbes.Visiteurs;
package body Courbes is
use Liste_Points;
procedure Liberer_Courbe (Self : in out Courbe_Ptr) is
procedure Liberer_Delivrer is new Ada.Unchecked_Deallo... |
28,224 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-trafor-default.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
28,225 | ada | 5 | alkhimey/Ada_Curve | src/curve.adb | -- The MIT License (MIT)
--
-- Copyright (c) 2015-2017 <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 u... |
28,226 | ada | 0 | thierr26/ada-keystore | src/keystore-io.adb | -----------------------------------------------------------------------
-- keystore-ios -- IO low level operation for the keystore
-- 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... |
28,227 | ada | 0 | alynnefs/STRTF | trabalho04.adb | <filename>trabalho04.adb
With Ada.Integer_Text_IO, Ada.Text_IO, Ada.Calendar;
Use Ada.Integer_Text_IO, Ada.Text_IO, Ada.Calendar;
procedure trabalho04 is
X:Integer;
indice: Integer:= 1;
i: Integer:= 1;
flag1: Integer:=1; -- flag para Mostra1
flag2: Integer:=0; -- flag para Mostra2
flag3: Integer:=0; -- fl... |
28,228 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b62b.ada | <reponame>best08618/asylo
-- C87B62B.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... |
28,229 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1301a.ada | -- CC1301A.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... |
28,230 | ada | 0 | zdimension/tdinfo302 | src/tri_base.adb | procedure tri_base is
begin
end tri_base; |
28,231 | ada | 0 | thierr26/ada-apsepp | src/_for_debug_purposes/apsepp-debug_trace.ads | <filename>src/_for_debug_purposes/apsepp-debug_trace.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Generic_Shared_Instance;
with Apsepp.Debug_Trace_Class; use Apsepp.Debug_Trace_Class;
package Apsepp.Debug_Trace is
package Shared_Instance
is ne... |
28,232 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/case_function.ads | <reponame>ouankou/rose<gh_stars>100-1000
function Case_Function(X : in Integer) return Integer;
|
28,233 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/layout.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/layout.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
28,234 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a74106a.ada | -- A74106A.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... |
28,235 | ada | 20 | HeisenbugLtd/spat | src/app/run_spat-print_entities.adb | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
28,236 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-pixels.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
package GL.Pixels is
pragma Preelaborate;
use GL.Types;
type Internal_Format is (Depth_Component, Red, Alpha, RGB, RGBA, Luminance,
... |
28,237 | ada | 0 | optikos/oasis | source/nodes/program-nodes-parameter_associations.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Parameter_Associations is
function Create
(Formal_Parameter : Program.Elements.Expressions.Expression_Access;
A... |
28,238 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-triggers.adb | -- 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 required by applicable law or agreed to in writi... |
28,239 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_8/problem_8.adb | package body Problem_8 is
Number : constant String :=
"73167176531330624919225119674426574742355349194934" &
"96983520312774506326239578318016984801869478851843" &
"85861560789112949495459501737958331952853208805511" &
"12540698747158523863050715693290963295227443043557" &
"... |
28,240 | ada | 3 | onox/weechat-ada | src/weechat.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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
-... |
28,241 | ada | 0 | Letractively/ada-asf | src/asf-components-html-pages.adb | -----------------------------------------------------------------------
-- html-pages -- HTML Page Components
-- Copyright (C) 2011, 2014 <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.
-... |
28,242 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_rtsp_gstrtspconnection_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtspurl_h;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtspdefs_h;
with glib;
with glib.Values;
with System;
wi... |
28,243 | ada | 18 | jquorning/ada-wiki | src/wiki-nodes.adb | <filename>src/wiki-nodes.adb
-----------------------------------------------------------------------
-- wiki-nodes -- Wiki Document Internal representation
-- Copyright (C) 2016, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this... |
28,244 | ada | 5 | jhumphry/auto_counters | src/kvflyweights/kvflyweights-untracked_ptrs.ads | -- kvflyweights-untracked_ptrs.ads
-- A package of generalised references which point to resources inside a
-- KVFlyweight. Resources are associated with a key that can be used to
-- create them if they have not already been created.
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribut... |
28,245 | ada | 24 | svn2github/matreshka | source/league/os/windows/matreshka-internals-settings-registry.adb | <reponame>svn2github/matreshka<filename>source/league/os/windows/matreshka-internals-settings-registry.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka... |
28,246 | ada | 0 | VitalijBondarenko/AdaNLS | test/src/nls_test.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2017 <NAME> <<EMAIL>> --
-- --
----------------... |
28,247 | ada | 204 | lenzomj/whitakers-words | src/tools/dictflag.adb | -- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission i... |
28,248 | ada | 4 | ytomino/gmp-ada | source/mpc.ads | <reponame>ytomino/gmp-ada
with GMP;
with MPFR;
private with C.mpc;
package MPC is
pragma Preelaborate;
pragma Linker_Options ("-lmpc");
function Version return String;
subtype Number_Base is GMP.Number_Base;
type Rounding is private;
function Compose (
Real_Rounding : MPFR.Rounding;
Imaginary_Rounding... |
28,249 | ada | 24 | svn2github/matreshka | tools/ayacc/src/string_lists.ads |
-- Module : string_lists.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:34:39
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_lists.ada
with String_Pkg;
with Lists;
package String_Lists is new Lists(String_Pkg.String_Type, String_Pkg.Equal);
|
28,250 | ada | 0 | Letractively/ada-util | src/util-beans-factory.ads | -----------------------------------------------------------------------
-- Util.beans.factory -- Bean Registration and Factory
-- Copyright (C) 2010 <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... |
28,251 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l5x2/stm32_svd-sau.ads | <filename>arch/ARM/STM32/svd/stm32l5x2/stm32_svd-sau.ads<gh_stars>1-10
-- This spec has been automatically generated from STM32L5x2.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SAU is
pragma Preelaborate;
---------------
... |
28,252 | ada | 0 | Sawchord/Ada_Drivers_Library | components/src/motion/mpu60x0/mpu60x0.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- Redis... |
28,253 | ada | 0 | thomas070605/shoot-n-loot | src/chests.ads | <filename>src/chests.ads
-- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Game_Assets; use Game_Assets;
with GESTE;
package Chests is
Max_Nbr_Of_Chests : constant := 3;
procedure Init (Objects : Object_Array)
with Pre => Objects'Length <= Max_Nbr_Of_Chests;
procedure Check_Chest_Found (Pt : GESTE.P... |
28,254 | ada | 33 | ytomino/drake | source/required/s-exnint.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Exponentiations;
package System.Exn_Int is
pragma Pure;
-- required for "**" without checking by compiler (s-exnint.ads)
function Exn_Integer is
new Exponentiations.Generic_Exp_Integer_No_Check (Integer);
end Syste... |
28,255 | ada | 0 | sebsgit/textproc | src/histogramgenerator.ads | <filename>src/histogramgenerator.ads
with Histogram;
with PixelArray;
with ImageRegions;
with ImageThresholds;
package HistogramGenerator is
pragma Assertion_Policy (Pre => Check,
Post => Check,
Type_Invariant => Check);
function verticalProjection(image: ... |
28,256 | ada | 1 | io7m/coreland-openal-ada | UNIT_TESTS/init_001.adb | <reponame>io7m/coreland-openal-ada
with Test;
with OpenAL.Context;
with OpenAL.Context.Error;
procedure init_001 is
package ALC renames OpenAL.Context;
package ALC_Error renames OpenAL.Context.Error;
Device : ALC.Device_t;
Context : ALC.Context_t;
Current_OK : Boolean;
TC : Test.Conte... |
28,257 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-sphere.adb | package body openGL.Model.sphere
is
overriding
function Bounds (Self : in Item) return openGL.Bounds
is
Radius : constant Real := Self.Scale (1) / 2.0;
begin
return (Ball => Radius,
Box => (Lower => (-Radius, -Radius, -Radius),
Upper => ( Radius, Radius, ... |
28,258 | ada | 286 | auzkok/libagar | ada/gui/agar-init_gui.ads | <reponame>auzkok/libagar<gh_stars>100-1000
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . I N I T _ G U I --
-- S p e... |
28,259 | ada | 0 | Tim-Tom/scratch | magic-puzzle/ada/src/MagicPuzzle.adb | with Ada.Text_IO;
with Ada.Integer_Text_IO;
procedure MagicPuzzle is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
goal : constant := 34;
width : constant := 4;
wm : constant := width - 1;
wp : constant := width + 1;
size : constant := width * width;
type Extended_Ch... |
28,260 | ada | 7 | Fabien-Chouteau/coffee-clock | src/alarm_handling.adb | -------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
28,261 | ada | 1 | io7m/coreland-openal-ada | openal-buffer.ads | with OpenAL.Types;
package OpenAL.Buffer is
--
-- Types
--
type Buffer_t is private;
type Buffer_Array_t is array (Positive range <>) of Buffer_t;
No_Buffer : constant Buffer_t;
--
-- API
--
-- proc_map : alGenBuffers
procedure Generate_Buffers
(Buffers : in out Buffer_Array_t);
... |
28,262 | ada | 0 | Sinbad-The-Sailor/Ada-Snake | logic.adb | package body logic is
--------------------------------------------------------------------------------
procedure Update_Position(X_Pos, Y_Pos: in out Integer) is
begin
X_Pos := X_Pos + dx;
Y_Pos := Y_Pos + dy;
end Update_Position;
---------------------------------------------------------------------------... |
28,263 | ada | 0 | thierr26/ada-apsepp | src/apsepp-output_class-quiet-create.adb | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
function Apsepp.Output_Class.Quiet.Create return Output_Quiet is
begin
return (Output_Interfa with null record);
end Apsepp.Output_Class.Quiet.Create;
|
28,264 | ada | 2 | Fabien-Chouteau/motherlode | src/title_screen.adb | <reponame>Fabien-Chouteau/motherlode<filename>src/title_screen.adb
-- Motherlode
-- Copyright (c) 2020 <NAME>
with HAL; use HAL;
with PyGamer; use PyGamer;
with PyGamer.Time;
with PyGamer.Controls; use PyGamer.Controls;
with PyGamer.Screen;
with Parameters;
with Render; use Render;
with World; use World;
with Soun... |
28,265 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Define-a-primitive-data-type/Ada/define-a-primitive-data-type-1.ada | type My_Type is range 1..10;
|
28,266 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-wchstw.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
28,267 | ada | 20 | HeisenbugLtd/spat | src/core/spat-spark_info-heuristics.adb | <reponame>HeisenbugLtd/spat<filename>src/core/spat-spark_info-heuristics.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do ... |
28,268 | ada | 33 | ytomino/drake | source/image/required/s-imgcha.adb | -- This implementation violates some ACATS intentionally.
-- Violated ACATS tests: C352001
with System.Formatting;
with System.Long_Long_Integer_Types;
package body System.Img_Char is
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
-- implementation
procedure Image_Character_05 (
V ... |
28,269 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/stack_usage1.adb | -- { dg-do compile }
-- { dg-options "-fstack-usage" }
with Stack_Usage1_Pkg; use Stack_Usage1_Pkg;
procedure Stack_Usage1 is
A : Integer := Ident_Int (123);
begin
case A is
when 0 =>
My_Proc (R'(Ident_Int(0), Ident_Int(1), Ident_Int(2), Ident_Int(3), Ident_Int(4), Ident_Int(5), Ident_Int(6),... |
28,270 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt42.ads | <gh_stars>1-10
package Opt42 is
type Index_Type is range 1 .. 7;
type Row_Type is array (Index_Type) of Float;
type Array_Type is array (Index_Type) of Row_Type;
function "*" (Left, Right : in Array_Type) return Array_Type;
end Opt42;
|
28,271 | ada | 81 | stcarrez/ada-awa | awa/plugins/awa-images/regtests/awa-images-tests.adb | <reponame>stcarrez/ada-awa
-----------------------------------------------------------------------
-- awa-images-tests -- Unit tests for images module
-- Copyright (C) 2018, 2019, 2020, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
28,272 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f0/rfm69_moter/modem/serial.ads | with STM32GD.USART; use STM32GD.USART;
with STM32_SVD;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
package Serial is
subtype Line_Length is Integer range 1 .. 64;
type Serial_Data is
record
Data : USART_Data (Line_Length);
Length : Natural;
end record;
prote... |
28,273 | ada | 33 | ytomino/drake | examples/nls.adb | with Ada.IO_Exceptions;
with Ada.Environment_Encoding.Encoding_Streams;
with Ada.Environment_Encoding.Names;
with Ada.Environment_Encoding.Strings;
with Ada.Environment_Encoding.Wide_Strings;
with Ada.Environment_Encoding.Wide_Wide_Strings;
with Ada.Streams.Unbounded_Storage_IO;
procedure nls is
package USIO renames A... |
28,274 | ada | 0 | AntonMeep/fastpbkdf2_ada | src/fastpbkdf2_generic.adb | pragma Ada_2012;
with Interfaces;
with Interfaces.C;
with fastpbkdf2_h_generic;
package body Fastpbkdf2_Generic is
package fastpbkdf2 is new fastpbkdf2_h_generic
(Element, Interfaces.Unsigned_32, Interfaces.C.size_t);
use fastpbkdf2;
procedure PBKDF2_HMAC_SHA1
(Password : Element_Array; Salt ... |
28,275 | ada | 24 | svn2github/matreshka | source/web/servlet/servlet-contexts.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
28,276 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3125b.ada | -- CC3125B.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... |
28,277 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Fractal-tree/Ada/fractal-tree.ada | <filename>Task/Fractal-tree/Ada/fractal-tree.ada
with Ada.Numerics.Elementary_Functions;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Video.Rectangles;
with SDL.Events.Events;
procedure Fractal_Tree is
Width : constant := 600;
Height : constant := 600;
Level : constant := 13... |
28,278 | ada | 0 | fintatarta/eugen | src/Utilities/xml_scanners.ads | with DOM.Core;
with Ada.Finalization;
package XML_Scanners is
--
-- As well knnown, an XML document is a tree. An XML_Scanner is
-- an object associated to a tree of the node that allows to
-- iterate over the node children. At every time there is a
-- "current child." The function Scan returns the c... |
28,279 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt57_pkg.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt57_pkg.ads<gh_stars>1-10
with System.Storage_Pools; use System.Storage_Pools;
with Ada.Finalization; use Ada.Finalization;
package Opt57_Pkg is
type GC_Pool is abstract new Root_Storage_Pool with null record;
type Pinned (Pool : access GC_Pool'Class) is... |
28,280 | ada | 0 | cborao/Ada-P4-chat | hash_maps_g_open/hash_maps_test.adb | <filename>hash_maps_g_open/hash_maps_test.adb<gh_stars>0
-- Práctica 4: <NAME> (Hash_Maps_G_Open, Test Program)
with Ada.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Numerics.Discrete_Random;
with Hash_Maps_G;
procedure Hash_Maps_Test is
package ASU renames Ada.Strings.Unbounded;
package... |
28,281 | ada | 2 | marcbejerano/ada-tools | Logging/src/logging-appender.ads | -- @(#)File: logging-appender.ads
-- @(#)Last changed: Jul 21 2015 13:08:00
-- @(#)Purpose: Application and system logging
-- @(#)Author: <NAME> <<EMAIL>>
-- @(#)Copyright: Copyright (C) 2015, <NAME>, All Rights Reserved
-- @(#)Product: None
-- @(#)License: BSD3
--
-... |
28,282 | ada | 1 | charlie5/lace-alire | 4-high/gel/source/human/gel-human_types.ads | <filename>4-high/gel/source/human/gel-human_types.ads<gh_stars>1-10
package gel.human_Types
--
-- Provides core types for defining a Human.
--
is
pragma Pure;
type controller_joint_Id is (MasterFloor,
Root,
Hips,
Up... |
28,283 | ada | 0 | SKNZ/BoiteMaker | src/halfbox_info.ads | <filename>src/halfbox_info.ads
package halfbox_info is
type halfbox_info_t is
record
-- longueur de la demi boite
length : integer;
-- largeur de la demi boite
width : integer;
-- hauteur de la demi boite
height : integer;
... |
28,284 | ada | 0 | ytomino/iconv-ada | examples/test_nop.adb | -- test for uninitialized objects
with Ada.Streams;
with Ada.Text_IO;
with iconv;
with iconv.Streams;
procedure test_nop is
use type Ada.Streams.Stream_Element_Offset;
begin
declare
C : iconv.Converter;
pragma Unmodified (C);
begin
begin
declare
In_Last : Ada.Streams.Stream_Element_Offset;
Out_Item ... |
28,285 | ada | 0 | djgoku/RosettaCodeData | Task/Ethiopian-multiplication/Ada/ethiopian-multiplication-3.ada | <filename>Task/Ethiopian-multiplication/Ada/ethiopian-multiplication-3.ada<gh_stars>0
with Ethiopian; use Ethiopian;
with Ada.Text_Io; use Ada.Text_Io;
procedure Ethiopian_Test is
First : Integer := 17;
Second : Integer := 34;
begin
Put_Line(Integer'Image(First) & " times " &
Integer'Image(Second) & " ... |
28,286 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-tag_pages.ads | <reponame>faelys/natools-web<filename>generated/natools-static_maps-web-tag_pages.ads
-- Generated at 2015-03-03 23:00:05 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-tag_pages-maps.sx
package Natools.Static_Maps.Web.Tag_Pages is
pragma Pure;
type Command is
(Unknown_Command,
Current_T... |
28,287 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-vertexs.ads | <filename>source/amf/uml/amf-uml-vertexs.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
28,288 | ada | 0 | xuedong/mini-ada | tests/exec/power.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Power is
procedure PrintInt(N: Integer) is
C: Integer := N rem 10;
begin
if N > 9 then PrintInt(N / 10); end if;
Put(Character'Val(48 + C));
end;
procedure PrintSInt(N: Integer) is
C: Integer := N rem 10;
begin
if N >= 0 then Pr... |
28,289 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Subtractive-generator/Ada/subtractive-generator-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
package Subtractive_Generator is
type State is private;
procedure Initialize (Generator : in out State; Seed : Natural);
procedure Next (Generator : in out State; N : out Natural);
private
type Number_Array is array (Natural range <>) of Natural;
type State is rec... |
28,290 | ada | 1 | MatrixMike/AdaDemo1 | Example.adb | <reponame>MatrixMike/AdaDemo1
with Ada.Text_IO;
package body example is
i : Number := Number'First;
procedure Print_and_Increment (j: in out Number) is
function Next (k: in Number) return Number is
begin
return k + 1;
end Next;
begin
Ada.Text_IO.Put_Line ( "The total is: " & Number'Image... |
28,291 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-widlli.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-widlli.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,292 | ada | 7 | Fabien-Chouteau/Giza | src/giza-events.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Giza --
-- ... |
28,293 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_usart_polling/src/demo_usart_polling.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
28,294 | ada | 0 | M1nified/Ada-Samples | concurrent.adb | with Ada.Text_Io;
use Ada.Text_Io;
procedure Concurrent is
task type Task1 is
entry Insert (In1 : in Integer);
end Task1;
task body Task1 is
Value : Integer;
begin
Value := 10;
accept Insert(In1 : in Integer) do
Value := In1;
end Insert;
Put_Line(Integer'Image(Value));
end Task... |
28,295 | ada | 0 | stcarrez/hyperion | src/model/hyperion-agents-models.ads | <reponame>stcarrez/hyperion
-----------------------------------------------------------------------
-- Hyperion.Agents.Models -- Hyperion.Agents.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xht... |
28,296 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/expander.adb | <reponame>vidkidz/crossbridge<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
28,297 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/dac_u2502/sam-dac.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- ... |
28,298 | ada | 0 | faelys/natools | generated/natools-static_maps-s_expressions-templates-dates-zones.ads | <reponame>faelys/natools
package Natools.Static_Maps.S_Expressions.Templates.Dates.Zones is
pragma Pure;
function Hash (S : String) return Natural;
end Natools.Static_Maps.S_Expressions.Templates.Dates.Zones;
|
28,299 | ada | 24 | reznikmm/matreshka | source/league/matreshka-internals-strings-operations.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.