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,500 | ada | 15 | mgrojo/adalib | ada-text_io-text_streams.ads | -- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-... |
2,501 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/main/resources/project-templates/aws_simple_web_server/src/@_project_name_@-callbacks.adb |
with AWS.Messages;
with AWS.MIME;
package body @_Project_Name_@.Callbacks is
-------------
-- Default --
-------------
function Default (Request : in Status.Data) return Response.Data is
URI : constant String := Status.URI (Request);
begin
if URI = "/" then
return Response.Build
... |
2,502 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_fixd.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/exp_fixd.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
2,503 | ada | 12 | TUM-EI-RCS/StratoX | software/modules/buildinfo.adb | with MyStrings; use MyStrings;
package body Buildinfo with SPARK_Mode is
function Short_Datetime return String is
l_date : constant String := Compilation_ISO_Date;
b_time : constant String := Strip_Non_Alphanum (Compilation_Time);
b_date : constant String := Strip_Non_Alphanum (l_date (l_date'Fir... |
2,504 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-uml_parameters.adb | <filename>source/amf/uml/amf-internals-uml_parameters.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,505 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/collision/shapes/impact-d2-shape-polygon.ads | <filename>3-mid/impact/source/2d/collision/shapes/impact-d2-shape-polygon.ads<gh_stars>10-100
package impact.d2.Shape.polygon
--
-- A convex polygon. It is assumed that the interior of the polygon is to the left of each edge.
--
is
type b2PolygonShape is new b2Shape with
record
m_centroid : ... |
2,506 | ada | 33 | kqr/qweyboard | src/qweyboard/qweyboard.ads | with Unicode_Strings; use Unicode_Strings;
with Ada.Containers.Ordered_Sets;
package Qweyboard is
use Unbounded;
-- Letter keys declared in the order they're likely to appear in words
--
-- Quoted from patent, although not strictly followed here...
--
-- > For example, in English, the initial co... |
2,507 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-regexps.adb | <filename>source/league/matreshka-internals-regexps.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,508 | ada | 5 | ianloic/unladen-swallow | Util/llvm/bindings/ada/target/llvm_target-binding.ads | <filename>Util/llvm/bindings/ada/target/llvm_target-binding.ads
-- This file is generated by SWIG. Do *not* modify by hand.
--
with llvm;
with Interfaces.C.Strings;
package LLVM_Target.Binding is
LLVMBigEndian : constant := 0;
LLVMLittleEndian : constant := 1;
procedure LLVMInitializeAllTargets;
fu... |
2,509 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-osprim-mingw.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
2,510 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/orka-simd-sse3-singles-arithmetic.ads | <filename>orka_simd/src/x86/gnat/orka-simd-sse3-singles-arithmetic.ads<gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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 ... |
2,511 | ada | 24 | svn2github/matreshka | tools/ayacc/src/parser.adb | <reponame>svn2github/matreshka<filename>tools/ayacc/src/parser.adb
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Se... |
2,512 | ada | 2 | drm343/Space-War-3000 | src/player.adb | <filename>src/player.adb
package body Player is
function Build (Race : String;
Good_Ability : Good_Type;
Bad_Ability : Bad_Type;
Victory_Condition : Victory;
Homeworld : Planet.Object)
retur... |
2,513 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-contt.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
2,514 | ada | 10 | Ada-Audio/wavefiles | test/wavefiles_test/src/generic_fixed_wave_test.adb | <reponame>Ada-Audio/wavefiles
------------------------------------------------------------------------------
-- --
-- THIS IS AN AUTOMATICALLY GENERATED FILE! DO NOT EDIT! --
-- ... |
2,515 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/abstractstrategypackage.ads | <reponame>rewriting/tom
with ObjectPack, StrategyPackage, EnvironmentPackage, IntrospectorPackage, VisitablePackage, PositionPackage;
use ObjectPack, StrategyPackage, EnvironmentPackage, IntrospectorPackage, VisitablePackage, PositionPackage;
package AbstractStrategyPackage is
type AbstractStrategy is abstract new ... |
2,516 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-5.3.1/debug_gps_indent.adb | <filename>.emacs.d/elpa/ada-mode-5.3.1/debug_gps_indent.adb
-- Abstract :
--
-- call the GPS indentation engine with debug text
--
-- Copyright (C) 2017 All Rights Reserved.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- publis... |
2,517 | ada | 0 | dfilatov/loc | tests/data/ada.ada | <gh_stars>0
procedure scan_for_file_ghosts (
directory_path : in String;
file_ghosts : out Filename_Container.Vector;
directory_ghosts : out Filename_Container.Vector);
-- Given an existing directory path, the procedure will produce
-- both a list of deleted directories and a list of files delet... |
2,518 | ada | 18 | jquorning/ada-wiki | src/wiki-render.ads | -----------------------------------------------------------------------
-- wiki-render -- Wiki renderer
-- Copyright (C) 2015, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-... |
2,519 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/a-reatim.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
2,520 | ada | 9 | 98devin/ada-wfc | src/wfc.adb | <reponame>98devin/ada-wfc
package body WFC is
function Modular_Index (Matrix : in Element_Matrix; X, Y : Natural) return Element_Type
with Inline
is
Matrix_X : constant Natural := ((X - Matrix'First(1)) mod Matrix'Length(1)) + Matrix'First(1);
Matrix_Y : constant Natural := ((Y - Matrix'First(2)) mod ... |
2,521 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_vectors-gen_sorted.ads | <reponame>caqg/linux-home<gh_stars>0
-- Abstract :
--
-- Add sorted behavior to parent.
--
-- Copyright (C) 2018, 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
--... |
2,522 | ada | 13 | annexi-strayline/AURA | build-linking.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation ... |
2,523 | ada | 0 | fintatarta/protypo | src/Internals/protypo-code_trees-interpreter-compiled_functions.adb | <reponame>fintatarta/protypo
pragma Ada_2012;
with Protypo.Code_Trees.Interpreter.Statements;
with Protypo.Code_Trees.Interpreter.Expressions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_IO; use Ada.Text_IO;
package body Protypo.Code_Trees.Interpreter.Compiled_Functions is
... |
2,524 | ada | 30 | jscparker/math_packages | ordinary/runge_8th_order_demo_2.adb | <gh_stars>10-100
with Runge_8th;
with Text_IO; use Text_IO;
with Orbit;
procedure runge_8th_order_demo_2 is
type Real is digits 15;
package One_Electron_Atom is new Orbit (Real);
use One_Electron_Atom;
package Orb_Integrate is new
Runge_8th (Real, Dyn_Index, Dynamical_Variable, F, "*", "+", "-",... |
2,525 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-sysadmin/src/model/awa-sysadmin-models.adb | -----------------------------------------------------------------------
-- AWA.Sysadmin.Models -- AWA.Sysadmin.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-... |
2,526 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-ztcoio.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/a-ztcoio.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
2,527 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-text_codecs-utf8.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
2,528 | ada | 18 | kraileth/ravenadm | src/information.adb | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Text_IO;
package body Information is
package TIO renames Ada.Text_IO;
--------------------------------------------------------------------------------------------
-- display_usage
---------... |
2,529 | ada | 0 | tyudosen/DualStack | randfloat.ads | <reponame>tyudosen/DualStack
package randfloat is --Generates a uniformly distributed random real
function next_float(x: in out integer) return float; -- between 0.0 <= next <= 1.0.
end randfloat; |
2,530 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-io_bank0.ads | -- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.IO_BANK0 is
pragma Preelabora... |
2,531 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/weak2.ads | package Weak2 is
Var : Integer;
pragma Import (Ada, Var, "var_name");
pragma Weak_External (Var);
function F return Integer;
end Weak2;
|
2,532 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-grid.adb | with
openGL.Palette,
openGL.Primitive.non_indexed;
package body openGL.Model.grid
is
function Line_Count (Extent : in Positive) return Positive
is
begin
if Extent mod 2 /= 0
then
return Extent;
else
return Extent + 1;
end if;
end Line_Count;
----... |
2,533 | ada | 52 | onox/orka | orka/src/orka/interface/orka-resources-locations.ads | <reponame>onox/orka
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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/li... |
2,534 | ada | 20 | charlie5/lace | 3-mid/physics/implement/box2d/source/thin/box2d_c-joint_cursor.ads | <filename>3-mid/physics/implement/box2d/source/thin/box2d_c-joint_cursor.ads
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with interfaces.C;
package box2d_c.joint_Cursor is
-- Item
--
type Item is
record
Joint : access box2d_c.b2Joint;
end record;
-- Items
... |
2,535 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-bnf.adb | -- Abstract :
--
-- see spec
--
-- Copyright (C) 2012 - 2015, 2017 - 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,536 | ada | 0 | SKNZ/BezierToSTL | src/util/liste_generique.adb | with Ada.Unchecked_Deallocation;
package body Liste_Generique is
procedure Liberer is new Ada.Unchecked_Deallocation(Cellule, Pointeur);
procedure Vider(L : in out Liste) is
Cour : Pointeur := L.Debut;
Next : Pointeur;
begin
while Cour /= null loop
Next := Cour.Suivant... |
2,537 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/gramar_items.adb | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
2,538 | ada | 24 | svn2github/matreshka | source/xml/sax/xml/xml-sax-simple_readers.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,539 | ada | 0 | Letractively/ada-security | src/security-policies-roles.adb | -----------------------------------------------------------------------
-- security-policies-roles -- Role based policies
-- Copyright (C) 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
2,540 | ada | 0 | Lucretia/old_nehe_ada95 | adagl/linux/gl.ads | <gh_stars>0
--
-- Copyright (c) 2002-2003, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are
-- met:
--
-- * Redistributions of source code must retain the above copyright notice,
-- ... |
2,541 | ada | 1 | faelys/natools-web | src/natools-web-filters-text_blocks.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
2,542 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/smartfusion2/svd/i-sf2.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
--
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from M2Sxxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Microcontroller Subsystem (MSS)
-- - Hard 166 MHz 32-Bit ARM Cortex-M3 Processor (r2p1)
-- Embedded Trace Macro... |
2,543 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/pack3_pkg.ads | <reponame>best08618/asylo
-- { dg-excess-errors "no code generated" }
package Pack3_Pkg is
function F return Integer;
end Pack3_Pkg;
|
2,544 | ada | 1 | annexi-strayline/ASAP-JSON | json-unbounded_codecs-slab_strings.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- ... |
2,545 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_bound.adb | <reponame>best08618/asylo
-- { dg-do compile }
procedure loop_bound is
package P is
type Base is new Integer;
Limit : constant Base := 10;
type Index is private;
generic package Gen is end;
private
type Index is new Base range 0 .. Limit;
end P;
package body P is
pack... |
2,546 | ada | 0 | fintatarta/eugen | src/Command_Line/project_processor-configuration.adb | <reponame>fintatarta/eugen
with Ada.Containers.Vectors;
with Line_Parsers.Receivers.Multi_Receivers;
with Utilities;
with Plugins;
with Ada.Directories;
with Tokenize.Token_Vectors;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Project_Processor.Configuration is
package Call_Lists is
... |
2,547 | ada | 19 | jrcarter/Ada_GUI | tables-names.ads | -- --
-- package Tables.Names Copyright (c) <NAME> --
-- Interface Luebeck --
-- Spring, 2003 --
-- ... |
2,548 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_14/problem_14.adb | package body problem_14 is
function Solution_1 return Integer is
Upper : constant Integer := 1_000_000;
Max : Integer := 0;
Ret : Integer;
Num : Integer;
Current : Int64;
begin
for I in reverse 1 .. Upper loop
Num := 1;
Current := Int64(I)... |
2,549 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/switch-c.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,550 | ada | 24 | svn2github/matreshka | tools/ayacc/src/shift_reduce_file.adb | <reponame>svn2github/matreshka
with Text_IO, Ayacc_File_Names;
use Text_IO, Ayacc_File_Names;
package body Shift_Reduce_File is
SCCS_ID : constant String := "@(#) shift_reduce_file.ada, Version 1.2";
Rcs_ID : constant String := "$Header: /dc/uc/self/arcadia/ayacc/src/RCS/shift_reduce_file.a,v 1.2 1993/05/31 2... |
2,551 | ada | 10 | persan/gdnative_ada | src/gdnative-objects.adb |
with System.Address_To_Access_Conversions;
with Interfaces.C.Strings;
with Ada.Tags;
with Ada.Exceptions;
with GDNative.Thin;
with GDNative.Context;
with GDNative.Console;
with GDNative.Exceptions;
package body GDNative.Objects is
package S renames System;
package IC renames Interfaces.C;
package ICS ren... |
2,552 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/orbs/dynamics/contacts/impact-d2-orbs-contact.ads | with impact.d2.orbs.Fixture,
impact.d2.Math;
limited
with impact.d2.orbs.Solid,
impact.d2.orbs.world_Callbacks;
with impact.d2.orbs.Collision;
package impact.d2.orbs.Contact
--
--
--
is
use impact.d2.Math;
-- The class manages contact between two shapes. A contact exists for each overlapping
... |
2,553 | ada | 0 | Letractively/ada-el | src/el-expressions-nodes.adb | <reponame>Letractively/ada-el<filename>src/el-expressions-nodes.adb
-----------------------------------------------------------------------
-- EL.Expressions -- Expression Nodes
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (... |
2,554 | ada | 15 | AdaCore/training_material | extern/game_support/src/backends/opengl_sdl_gnat_sdl/display-basic-fonts.ads | with Display.Basic.Utils; use Display.Basic.Utils;
with SDL_SDL_stdinc_h; use SDL_SDL_stdinc_h;
with SDL_SDL_video_h; use SDL_SDL_video_h;
package Display.Basic.Fonts is
type BMP_Font is (Font8x8, Font12x12, Font16x24);
procedure Draw_Char
(S : access SDL_Surface;
P : Screen_Point;
Char : Cha... |
2,555 | ada | 60 | RREE/ada-util | samples/facebook.adb | -----------------------------------------------------------------------
-- facebook -- Get information about a Facebook user using the Facebook API
-- Copyright (C) 2012, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
2,556 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/color_32/lv-color_types.ads | <gh_stars>1-10
package Lv.Color_Types is
type Color_T_Comp is record
Blue : aliased Uint8_T;
Green : aliased Uint8_T;
Red : aliased Uint8_T;
Alpha : aliased Uint8_T;
end record
with Pack, Object_Size => 32;
pragma Convention (C_Pass_By_Copy, Color_T_Comp);
subtype Color_Int_T... |
2,557 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cofuse.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
2,558 | ada | 3 | pyjarrett/archaic_terminal | src/windows/trendy_terminal-windows.ads | <reponame>pyjarrett/archaic_terminal<gh_stars>1-10
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
2,559 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/a-rttiev.ads | <reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/gnarl-common/a-rttiev.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
2,560 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network-socketselector.ads | <reponame>Fabien-Chouteau/ASFML<gh_stars>0
--//////////////////////////////////////////////////////////
-- 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 f... |
2,561 | ada | 45 | alkalinin/raytracer | ada/src/raytracer.adb | --
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- implementation of Scene type and the ray tracer
--
pragma Ada_2020;
-- Ada packages
with Ada.Numerics.Generic_Elementary_Functions; -- needed for sqrt function
-- local packages
with Colors; use Colors;
with Objects; use Obj... |
2,562 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt18_pkg.ads | package Opt18_Pkg is
pragma Pure;
type Limit_Type is record
Low : Float;
High : Float;
end record;
function First_Order_Trig return Float;
type Trig_Pair_Type is
record
Sin : Float;
Cos : Float;
end record;
function Atan2 (Trig : in Trig_Pair_Type) return Float;
... |
2,563 | ada | 0 | sonneveld/adazmq | examples/src/taskvent.adb | <gh_stars>0
-- Task ventilator
-- Binds PUSH socket to tcp://localhost:5557
-- Sends batch of tasks to workers via that socket
with Ada.Command_Line;
with Ada.Text_IO;
with Ada.Numerics.Discrete_Random;
with GNAT.Formatted_String;
with ZMQ;
procedure TaskVent is
use type GNAT.Formatted_String.Formatted_String... |
2,564 | ada | 20 | charlie5/lace | 2-low/neural/source/neural-forge.ads |
with neural.Set;
package Neural.Forge
--
-- Declares a factory for creation/destruction of core types.
--
is
-- Pattern
--
function Creation (From : in Pattern) return Pattern;
procedure Destroy (Self : in out Pattern);
-- Patterns
--
function Creation (Fr... |
2,565 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-ac.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.AC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ITCMCR_SZ_Field is HAL.UInt4;
-- ... |
2,566 | ada | 7 | 98devin/ada-gba-dev | zfp-gba/gnat_user/s-allare.ads | <gh_stars>1-10
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with System.Storage_Elements;
--
-- Linear allocators which manage a particular address space.
-- Memory can be recovered only in blocks.
--
package System.Allocation.Arenas is
package SSE renames System.Storage_Elements;... |
2,567 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503e.ada | -- C35503E.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,568 | ada | 5 | Componolit/AZ3 | tests/az3_suite.adb | <filename>tests/az3_suite.adb
with Z3.Tests;
package body AZ3_Suite is
use AUnit.Test_Suites;
-- Statically allocate test suite:
Result : aliased Test_Suite;
-- Statically allocate test cases:
Z3_Tests : aliased Z3.Tests.Test_Case;
function Suite return Access_Test_Suite is
begin
Add_T... |
2,569 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-unicode-characters-latin.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,570 | ada | 14 | Fabien-Chouteau/usb_embedded | tests/src/usb_testing-udc_scenarios.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- ... |
2,571 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic6_6.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with Atomic6_Pkg; use Atomic6_Pkg;
procedure Atomic6_6 is
Temp : Integer;
begin
Counter(1) := Counter(2);
Timer(1) := Timer(2);
Counter(1) := Int(Timer(1));
Timer(1) := Integer(Counter(1));
Temp := Integer(Counter(1)... |
2,572 | ada | 0 | Lucretia/old_nehe_ada95 | utils/sphere.adb | ---------------------------------------------------------------------------------
-- Copyright 2004-2005 © <NAME>
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
-------------------------------------------------------------------... |
2,573 | ada | 14 | Fabien-Chouteau/usb_embedded | tests/src/tests-device.adb | <gh_stars>10-100
with AAA.Strings;
with HAL; use HAL;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with USB_Testing; use USB_Testing;
with USB.HAL.Device; use USB.HAL.Device;
with USB; use USB;
package body Tests.Device is
------------
-- Set_Up --
------------
o... |
2,574 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-containers-ring_buffers.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- 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 at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
2,575 | ada | 0 | JeremyGrosser/the_grid | src/midi.adb | with Ada.Unchecked_Conversion;
with USB.Device.MIDI;
with USB.Device;
with RP.Device;
with Sound;
with HAL;
package body MIDI is
USB_Stack : USB.Device.USB_Device_Stack (Max_Classes => 1);
USB_MIDI : aliased USB.Device.MIDI.Default_MIDI_Class
(TX_Buffer_Size => 64,
RX_Buffer_Size => 64);
type C... |
2,576 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/models/vehic001.adb | pragma Warnings (Off);
pragma Style_Checks (Off);
-- Space vehicle #001 3D model. Copyright (c) <NAME> 1999 - 2000
-- CH - 2000 Neuchatel
-- SWITZERLAND
-- Permission granted to use the herein contained 3D model for any purpose,
-- provided this copyright note remains attached and unmodified.
with G... |
2,577 | ada | 0 | Letractively/ada-security | src/security-auth.ads | -----------------------------------------------------------------------
-- security-auth -- Authentication Support
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complia... |
2,578 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada-server/mojang-sessions/src/server/com-github-asyncmc-mojang-sessions-ada-server-model-skeletons.ads | <filename>generated-sources/ada-server/mojang-sessions/src/server/com-github-asyncmc-mojang-sessions-ada-server-model-skeletons.ads
-- Mojang Session API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NO... |
2,579 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled6.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-O -gnatn" }
with Ada.Text_IO; use Ada.Text_IO;
with Controlled6_Pkg;
with Controlled6_Pkg.Iterators;
procedure Controlled6 is
type String_Access is access String;
package My_Q is new Controlled6_Pkg (String_Access);
package My_Iterators is ne... |
2,580 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect6.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect6.ads
with Vect6_Pkg;
package Vect6 is
-- Unconstrained array types are vectorizable, possibly with special
-- help for the programmer
type Varray is array (Vect6_Pkg.Index_Type range <>) of Long_Float;
for Varray'Alignment use 16;
function "+"... |
2,581 | ada | 9 | SALLYPEMDAS/DW1000 | bsp-examples/dwm1001/nrf52-spi.ads | -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice,
-... |
2,582 | ada | 2 | thindil/tashy2 | tests/tk-ttkentry-ttk_entry_options_test_data-ttk_entry_options_tests.ads | <reponame>thindil/tashy2
-- 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.TtkEntry.Ttk_Entry_Options_Test_Data.Ttk_Entry_Options_Tests is
type Test_Ttk_Entry_Options i... |
2,583 | ada | 1 | skill-lang/skillAdaTestSuite | test/aircraft/test_aircraft-write.ads | <gh_stars>1-10
with Ada.Directories;
with Ada.Strings.Unbounded;
with Ahven.Framework;
with Aircraft.Api;
package Test_Aircraft.Write is
package Skill renames Aircraft.Api;
use Aircraft;
use Aircraft.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Te... |
2,584 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Problem-of-Apollonius/Ada/problem-of-apollonius-1.ada | <reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10
package Apollonius is
type Point is record
X, Y : Long_Float := 0.0;
end record;
type Circle is record
Center : Point;
Radius : Long_Float := 0.0;
end record;
type Tangentiality is (External, Internal);
function Solve_CCC
... |
2,585 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg1.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization8_pkg1.adb
with Loop_Optimization8_Pkg2;
package body Loop_Optimization8_Pkg1 is
Data : Loop_Optimization8_Pkg2.T
:= new Loop_Optimization8_Pkg2.Obj_T'(Length =>1, Elements => (1 => 1));
procedure Iter is
begin
for I in 1 .. Loop_Op... |
2,586 | ada | 3 | daveshields/AdaEd | demos/hilbert.ada | <reponame>daveshields/AdaEd
with screen_io, maze; use screen_io , maze;
with integer_text_io; use integer_text_io ;
procedure hilbert is
here: position ;
this_way: direction := up;
last_d: direction := up;
order: integer ;
procedure draw_line(l: integer) is
c: character ;
steps: integer := ... |
2,587 | ada | 33 | ytomino/drake | source/tasking/machine-w64-mingw32/s-nattas.adb | <filename>source/tasking/machine-w64-mingw32/s-nattas.adb
with Ada.Unchecked_Conversion;
with System.Storage_Map;
with C.basetsd;
with C.winternl;
package body System.Native_Tasks is
use type C.char_array;
use type C.windef.DWORD;
use type C.windef.WINBOOL;
use type C.winnt.HANDLE; -- C.void_ptr
type st... |
2,588 | ada | 0 | joewing/arbitrary | arbitrary.ads | --------------------------------------------------------------------------
-- Arbitrary Precision Math Library
-- <NAME> 20020320 <> 20020327
--------------------------------------------------------------------------
with Ada.Finalization;
package Arbitrary is
-- Set to false for increased speed
DEBUG_CHECKS : boo... |
2,589 | ada | 12 | jquorning/ada-asf | samples/beans/countries.adb | -----------------------------------------------------------------------
-- countries - A simple bean example
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You ... |
2,590 | ada | 0 | reznikmm/declarative-regions | source/regions/regions-entities-packages.ads | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
-- with Regions.Symbols;
package Regions.Entities.Packages is
pragma Pure;
type Package_Entity is limited interface
and Regions.Entities.Entity
and Regi... |
2,591 | ada | 2 | SMerrony/dgemua | devices/devices-bus.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... |
2,592 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_ch3.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,593 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Colour-bars-Display/Ada/colour-bars-display.ada | with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Video.Palettes;
with SDL.Events.Events;
with SDL.Events.Keyboards;
procedure Colour_Bars_Display is
use type SDL.Events.Event_Types;
use SDL.C;
Colours : constant array (0 .. 7) of SDL.Video.Palettes.Colour :=
((0, 0, 0, 255), ... |
2,594 | ada | 3 | albinjal/ada_basic | Lab5/person_handling.ads | <filename>Lab5/person_handling.ads
with Date_Package; use Date_Package;
package Person_Handling is
type Person is private;
function "="(Person1, Person2: in Person) return Boolean;
function ">"(Person1, Person2: in Person) return Boolean;
function "<"(Person1, Person2: in Person) return Boolean;
... |
2,595 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt35_pkg.adb | package body Opt35_Pkg is
function F (I : Integer) return Integer is
begin
if I = 0 then
raise E;
end if;
return -I;
end;
end Opt35_Pkg;
|
2,596 | ada | 7 | jquorning/trendy_test | src/trendy_test-generics.ads | <gh_stars>1-10
with Trendy_Locations;
package Trendy_Test.Generics is
use Trendy_Locations;
-- A generic assertion of a discrete type, which can be compared using a
-- binary operator. This operation includes a string which can be used
-- during reporting.
generic
type T is (<>);
... |
2,597 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversL5/stm32-pka.ads | with System;
with STM32.Device; use STM32.Device;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.PKA; use STM32_SVD.PKA;
generic
Curve_Name : String;
Num_Bits : UInt32;
Hash_Size : UInt32 := 256;
package STM32.PKA is
N_By_8 : constant UInt32 := (Num_Bits / 8) + (if (Num_Bits mod 8) > 0 then ... |
2,598 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-contt-sd.ads | <reponame>My-Colaborations/dynamo
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
2,599 | ada | 0 | alexcamposruiz/dds-requestreply | src/dds-request_reply-requester-impl.adb | pragma Ada_2012;
package body DDS.Request_Reply.Requester.Impl is
-----------------------------
-- Get_Request_Data_Writer --
-----------------------------
function Get_Request_Data_Writer
(Self : not null access Ref) return DDS.DataWriter.Ref_Access
is
begin
pragma Compile_Time_Warning (... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.