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 |
|---|---|---|---|---|---|
3,300 | ada | 0 | HeisenbugLtd/msg_passing | examples/simple_lmp/receiver.ads | <reponame>HeisenbugLtd/msg_passing<gh_stars>0
------------------------------------------------------------------------
-- Copyright (C) 2010-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,
-- Ve... |
3,301 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt37.adb | -- { dg-compile }
-- { dg-options "-O2 -gnato -fdump-tree-optimized" }
package body Opt37 is
function To_Unchecked (Bits : T_Bit_Array) return Unsigned32 is
Value : Unsigned32 := 0;
begin
for I in Bits'Range loop
Value := Value * 2 + Unsigned32 (Bits(I));
end loop;
return Value;... |
3,302 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Find-the-missing-permutation/Ada/find-the-missing-permutation.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO;
procedure Missing_Permutations is
subtype Permutation_Character is Character range 'A' .. 'D';
Character_Count : constant :=
1 + Permutation_Character'Pos (Permutation_Character'Last)
- Permutation_Character'Pos (Permutation_Character'First... |
3,303 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_64.ads | <filename>Ada/inc/Problem_64.ads
package Problem_64 is
procedure Solve;
end Problem_64;
|
3,304 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-type_conversions.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Type_Conversions;
with Program.Element_Visitors;
package Program.Nodes.Type_Conver... |
3,305 | ada | 0 | iyan22/AprendeAda | ejercicios1/numtriangular.adb | <filename>ejercicios1/numtriangular.adb
procedure numtriangular (n1: in Integer; resultado: out Integer) is
indice:integer:=0;
begin
resultado:=0;
indice:=n1;
while indice/=0 loop
resultado:=resultado+indice;
indice:=indice-1;
end loop;
end numtriangular;
|
3,306 | ada | 80 | thindil/steamsky | tests/game-saveload-test_data-tests.adb | -- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
3,307 | ada | 1 | stcarrez/babel | src/babel-streams-cached.adb | -----------------------------------------------------------------------
-- babel-streams-cached -- Cached stream management
-- Copyright (C) 2014, 2015 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
3,308 | ada | 1 | Fabien-Chouteau/littlefs-ada | src/littlefs.adb | package body Littlefs is
------------
-- C_Type --
------------
function Kind (Info : Entry_Info) return File_Kind
is (File_Kind'Enum_Val (Info.c_type));
----------
-- Size --
----------
function Size (Info : Entry_Info) return LFS_Size
is (Info.size);
----------
-- Name --
-... |
3,309 | ada | 4 | Fabien-Chouteau/ada-voxel-space | src/ada_voxel.ads | <reponame>Fabien-Chouteau/ada-voxel-space
generic
type Color (<>) is private;
Screen_Width : Positive;
Screen_Height : Positive;
with function Color_Map (X, Y : Integer) return Color;
with function Height_Map (X, Y : Integer) return Integer;
with procedure Draw_Vertical_Line (X, Start_Y, Stop_Y : I... |
3,310 | ada | 18 | kraileth/ravenadm | ravenadm.adb | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: License.txt
with Ada.Command_Line;
with Ada.Text_IO;
with Parameters;
with Pilot;
with Unix;
procedure Ravenadm is
package CLI renames Ada.Command_Line;
package TIO renames Ada.Text_IO;
type mandate_type is (unset, he... |
3,311 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_rtsp_gstrtspurl_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtsptransport_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_rtsp_gstrtspdefs_h;
with glib;
with glib.Values;
with System;
with GLIB; -- with GStreamer.GS... |
3,312 | ada | 2 | sparre/aYAML | src/yaml-vector.ads | with YAML.Abstract_Object;
package YAML.Vector is
subtype Parent is Abstract_Object.Instance;
subtype Parent_Class is Abstract_Object.Class;
type Instance is new Parent with private;
subtype Class is Instance'Class;
overriding
function Get (Item : in Instance;
Name : in Stri... |
3,313 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled_record.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O2" }
with Ada.Text_IO; use Ada.Text_IO;
with Assert;
package body Controlled_Record is
procedure Assert_Invariants (PA : Point_T) is
PB : Point_T;
begin
Assert.Assert (PB.Pos = PA.Pos);
end;
end Controlled_Record;
|
3,314 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/gnarl-common/s-multip.ads | <reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/gnarl-common/s-multip.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENT... |
3,315 | ada | 0 | reznikmm/gela | source/oasis/program-elements-procedure_instantiations.ads | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.Expressions;
with Program.Elemen... |
3,316 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/generic_function_renaming_declaration.ads | package generic_function_renaming_declaration is
generic
function test(X : Integer) return Integer ;
generic function newtest renames test;
end generic_function_renaming_declaration;
|
3,317 | ada | 1 | alvaromb/Compilemon | src/semantica-declsc3a.ads | with Decls.Dgenerals,
Semantica,
Decls.Dtdesc,
Ada.Sequential_Io,
Ada.Text_Io,
Decls.D_Taula_De_Noms,
Semantica.Ctipus,
Ada.Strings,
Ada.Strings.Fixed,
Ada.Strings.Maps;
use Decls.Dgenerals,
Semantica,
Decls.Dtdesc,
Decls.D_Taula_De_Noms,
Semantica.Ctipus,
Ada.Strings,
Ada.Strings.Fixed,
... |
3,318 | ada | 1 | selroc/Renaissance-Ada | src/libraries/Rewriters_Lib/src/placeholder_relations.ads | with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
package Placeholder_Relations is
function Is_Referenced_In
(Match : Match_Pattern;
Definition, Context : String)
return Boolean;
function Is_Constant_Expression
(Match : Match_Pattern;
Expression : String)
... |
3,319 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_c_main.adb | with Ada.Text_IO;
with c_code_h;
procedure Ada_C_Main is
package ATI renames Ada.Text_Io;
begin
ATI.Put_Line ("Ada_C_Main: Calling c_func");
c_code_h.c_func;
ATI.Put_Line ("Ada_C_Main: Returned from c_func");
end Ada_C_Main;
|
3,320 | ada | 269 | ProtonAOSP-platina/android_external_libncurses | Ada95/samples/ncurses2-genericputs.adb | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
3,321 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-uml_regions.ads | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,322 | ada | 0 | reznikmm/lace | source/core/lace-element_flat_kinds.adb | <filename>source/core/lace-element_flat_kinds.adb
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Procedure_Body_Declarations;
with Program.Safe_Element_Visitors;
package body Lace.Element_Flat_Ki... |
3,323 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-nodes-remotes.adb | <gh_stars>1-10
with ACO.Protocols.Service_Data;
package body ACO.Nodes.Remotes is
overriding
procedure Set_State
(This : in out Remote;
State : in ACO.States.State)
is
begin
This.NMT.Request_State (State);
-- If there is no heartbeat or node guarding, just assume the reques... |
3,324 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-wire_frame.ads | pragma Warnings (Off);
pragma Style_Checks (Off);
package GLOBE_3D.Wire_frame is
type Segment is record
P1, P2 : Positive; -- Indices to o.Point
colour : GL.RGBA_Color;
end record;
type Segment_array is array (Positive range <>) of Segment;
type p_Segment_array is access Segment_array;
... |
3,325 | ada | 0 | AntonMeep/sha1 | tests/src/sha1_streams_tests.adb | pragma Ada_2012;
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Caller;
with Ada.Streams; use Ada.Streams;
with SHA1; use SHA1;
package body SHA1_Streams_Tests is
package Caller is new AUnit.Test_Caller (Fixture);
Test_Suite : aliased AUnit.Test_Suites.Test_Suite;
function Suite retur... |
3,326 | ada | 3 | JackShen1/parallel-programming | PP-Lab1/src/lab1.adb | ------------------------------------------------------
--| Labwork #1 |
------------------------------------------------------
--| Author | Jack (Yevhenii) Shendrikov |
--| Group | IO-82 |
--| Variant | #25 ... |
3,327 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-crdlli.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-crdlli.ads
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
3,328 | ada | 2 | thindil/tashy2 | tests/tk-labelframe-label_frame_options_test_data.ads | <filename>tests/tk-labelframe-label_frame_options_test_data.ads
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a ... |
3,329 | ada | 12 | jquorning/ada-asf | src/asf-converters-dates.ads | -----------------------------------------------------------------------
-- asf-converters-dates -- Date Converters
-- Copyright (C) 2011, 2014, 2016 <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... |
3,330 | ada | 1 | rveenker/sdlada | src/audio/sdl-types.adb | <reponame>rveenker/sdlada
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Thin binding to Simple Direct Media Layer --
-- Copyright (C) 2000-2012 A.M.F.Vargas --
-- ... |
3,331 | ada | 8 | pvrego/adaino | project/src/avr-pwm_simplest.ads | <filename>project/src/avr-pwm_simplest.ads
with AVR.TIMERS;
-- =============================================================================
-- Package AVR.PWM_SIMPLEST
--
-- Implements Pulsed Wavelength Modulation for MCU in a simple way.
-- ============================================================================... |
3,332 | ada | 0 | Sinbad-The-Sailor/Ada-Snake | main.adb | -- Ada Standard Libraries
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- TJa. Libraries
with TJa.Keyboard; use TJa.Keyboard;
with TJa.Window.Elementary; use TJa.Window.Elementary;
-- Internal Libraries
with logic; use lo... |
3,333 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-chtgke.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
3,334 | ada | 24 | svn2github/matreshka | source/sql/sqlite3/matreshka-internals-sql_drivers-sqlite3-queries.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,335 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada-server/mojang-api/src/server/com-github-asyncmc-mojang-api-ada-server-model-skeletons.ads | -- Mojang API
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- OpenAPI spec version: 2020_06_05
--
--
-- NOTE: This package is auto generated by the swagger code generator 3.3.4.
-- https://openapi-generator.tech
-- Do not edit the class manuall... |
3,336 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/LSM303D/LSM303D-registers.ads | <gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: LSM303D Driver
--
-- Authors: <NAME> (<EMAIL>)
--
-- Description: Register definitions for the LSM303D
--
-- ToDo:
-- [ ] Implementation
package LSM303D is
ADDR_WHO... |
3,337 | ada | 3 | albinjal/ada_basic | Lab4/lab4fg.adb | <reponame>albinjal/ada_basic
with Date_Package; use Date_Package;
with Ada.Text_IO; use Ada.Text_IO;
procedure Lab4fg is
type Dates is array (1..10) of Date_Type;
procedure Sort(Arrayen_Med_Talen: in out Dates) is
procedure Swap(Tal_1,Tal_2: in out Date_Type) is
Tal_B : Date_Type; -- Temporary buffer
... |
3,338 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug7.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug7.ads
package Debug7 is
function Next (I : Integer) return Integer;
function Renamed_Next (I : Integer) return Integer renames Next;
end Debug7;
|
3,339 | ada | 45 | alkalinin/raytracer | ada/src/lights.adb | <gh_stars>10-100
package body Lights is
function Create_Light(Position: Vector; Color: Color_Type) return Light_Type
is ( ( Position => Position, Color => Color ) );
function Position_Of(Light: Light_Type) return Vector
is ( Light.Position );
function Color_Of(Light: Light_Type) return Color_Type
i... |
3,340 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-return_object_specifications.ads | <filename>source/nodes/program-nodes-return_object_specifications.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expr... |
3,341 | ada | 7 | jwhitham/x86determiniser | tests/ada/test_queue.adb | <reponame>jwhitham/x86determiniser
with Ada . Text_IO ;
with Ada . Integer_Text_IO ;
with Ada . Float_Text_IO ;
with Binary_Heap ;
with Measure_Time ;
use Ada . Text_IO ;
use Ada . Integer_Text_IO ;
use Ada . Float_Text_IO ;
with Ada.Numerics.Discrete_Random ;
procedure test_queue is
arr_size : constant Natural ... |
3,342 | ada | 33 | ytomino/drake | source/image/required/s-wwdenu.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.WWd_Enum is
pragma Pure;
-- (s-wchcon.ads)
type WC_Encoding_Method is range 1 .. 6;
-- required for Enum'Wide_Width by compiler (s-wwdenu.ads)
function Wide_Width_Enumeration_8 (
Names : String;
Ind... |
3,343 | ada | 60 | RREE/ada-util | src/sys/processes/util-processes.ads | -----------------------------------------------------------------------
-- util-processes -- Process creation and control
-- Copyright (C) 2011, 2012, 2016, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
3,344 | ada | 4 | davidkristola/vole | kv-avm-machines.adb | <filename>kv-avm-machines.adb<gh_stars>1-10
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Actors;
with kv.avm.Messages;
with kv.avm.Actor_Pool;
with kv.avm.Executables;
with kv.avm.Actor_References.Sets;
package body kv.avm.Machines is
use Interfaces;
u... |
3,345 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled5_pkg.ads | with Ada.Finalization; use Ada.Finalization;
package Controlled5_Pkg is
type Root is tagged private;
type Inner is new Ada.Finalization.Controlled with null record;
type T_Root_Class is access all Root'Class;
function Dummy (I : Integer) return Root'Class;
private
type Root is tagged record
... |
3,346 | ada | 4 | albinjal/Ada_Project | Klient/klient_assets_package.ads | <gh_stars>1-10
with TJa.Sockets; use TJa.Sockets;
package klient_assets_package is
type Arr is array (1..5) of Integer;
type Protocoll_Type is array (1..15) of Integer;
type Rolls_Type is private;
DATATYPE_ERROR: exception;
---------------------------------------------------------------------------------... |
3,347 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/dynamics/joints/impact-d3-joint-any.adb | <reponame>charlie5/lace
-- #include "impact.d3.Joint.any.h"
-- #include "BulletDynamics/Dynamics/impact.d3.Object.rigid.h"
-- #include "LinearMath/impact.d3.TransformUtil.h"
-- #include "LinearMath/impact.d3.TransformUtil.h"
-- #include <new>
with impact.d3.Transform; use impact.d3.Transform;
with impact.d3.Scala... |
3,348 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt52.adb | -- { dg-do compile }
-- { dg-options "-O -fdump-tree-optimized" }
procedure Opt52 (I : Integer) is
begin
if I + 1 < I then
raise Program_Error;
end if;
end;
-- { dg-final { scan-tree-dump-not "check_PE_Explicit_Raise" "optimized" } }
|
3,349 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45253a.ada | -- C45253A.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... |
3,350 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32l0/stm32gd-i2c.ads | <filename>stm32l0/stm32gd-i2c.ads
with STM32_SVD.I2C;
with STM32_SVD; use STM32_SVD;
package STM32GD.I2C is
pragma Preelaborate;
I2C_1 : STM32_SVD.I2C.I2C_Peripheral renames STM32_SVD.I2C.I2C1_Periph;
I2C_2 : STM32_SVD.I2C.I2C_Peripheral renames STM32_SVD.I2C.I2C2_Periph;
end STM32GD.I2C;
|
3,351 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/orbs/dynamics/impact-d2-orbs-world.adb | with impact.d2.orbs.Fixture,
impact.d2.orbs.Island,
impact.d2.orbs.Time_of_impact,
impact.d2.orbs.toi_Solver,
impact.d2.orbs.Distance,
impact.d2.orbs.Broadphase,
ada.unchecked_Deallocation;
package body impact.d2.orbs.World
is
use type int32, uint32;
use type impact.d2.orbs.Joi... |
3,352 | ada | 0 | jquorning/CELLE | source/macros.ads | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
package Macros is
procedure Append (Na... |
3,353 | ada | 1 | GauBen/Arbre-Genealogique | src/date.adb | package body Date is
function D1_Inf_D2 (Date1 : T_Date; Date2 : T_Date) return Boolean is
begin
if Date1.Annee < Date2.Annee then
return True;
elsif Date1.Annee > Date2.Annee then
return False;
elsif Date1.Mois < Date2.Mois then
return True;
elsif Date1.Mois >... |
3,354 | ada | 20 | charlie5/lace | 4-high/gel/source/concrete/gel-keyboard-local.adb | <gh_stars>10-100
with
ada.unchecked_Deallocation;
package body gel.Keyboard.local
is
package body Forge
is
function to_Keyboard (of_Name : in String) return Item
is
begin
return Self : constant Item := (lace.Subject.local.Forge.to_Subject (of_Name)
... |
3,355 | ada | 4 | davidkristola/vole | vole_tokens.ads | with Kv.avm.vole_Tree;
package Vole_Tokens is
type YYSType is
record
Node : kv.avm.vole_tree.Node_Pointer;
end record;
YYLVal, YYVal : YYSType;
type Token is
(End_Of_Input, Error, Key_Import, Id_Token,
Eos_Token, Block_Begin, Block_End,
Key_Attribute, Key_P... |
3,356 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/transport-serial.ads | --===========================================================================
--
-- This package provides the serial specific procedures for input requests
--
--===========================================================================
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
w... |
3,357 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2104d.ada | <reponame>best08618/asylo<gh_stars>1-10
-- CE2104D.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and docume... |
3,358 | ada | 24 | svn2github/matreshka | tools/scanner_transformer/scanner_generator.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,359 | ada | 2 | thindil/tashy2 | tests/tk-frame-frame_options_test_data-frame_options_tests.ads | <filename>tests/tk-frame-frame_options_test_data-frame_options_tests.ads
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.Frame.Frame_Options_Test_Data.Frame_Options_Tests... |
3,360 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c4a012b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c4a012b.ada<gh_stars>1-10
-- C4A012B.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 ... |
3,361 | ada | 24 | svn2github/matreshka | source/league/matreshka-atomics-counters__portable.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,362 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-utils.ads | package ACO.Utils is
pragma Pure;
end ACO.Utils;
|
3,363 | ada | 204 | lenzomj/whitakers-words | src/commands/makestem.adb | <filename>src/commands/makestem.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... |
3,364 | ada | 33 | ytomino/drake | source/image/required/s-imglli.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Img_LLI is
pragma Pure;
-- required for Long_Long_Integer'Image by compiler (s-imgint.ads)
procedure Image_Long_Long_Integer (
V : Long_Long_Integer;
S : in out String;
P : out Natural);
end System.I... |
3,365 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/execute-matrices.adb | --
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Interfaces;
with HAL;
with Matrix_Area_Word;
with Matrix_Area_Double_Word;
package body Execute.Matrices is
--------------------------------------------------------------------------
-- Conversion functions from Character/S... |
3,366 | ada | 0 | alexcamposruiz/dds-requestreply | src/dds-request_reply-impl.ads | <filename>src/dds-request_reply-impl.ads
with DDS.Publisher;
with DDS.Subscriber;
package DDS.Request_Reply.Impl is
type Ref is limited new Request_Reply.Ref with private;
type Ref_Access is access all Ref'Class;
procedure Log_Exception (Log : Standard.String) is null;
function Create_Request_Topic_Name_... |
3,367 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/tests/test_bytebuffers.adb | <filename>src/ada/src/tests/test_bytebuffers.adb<gh_stars>10-100
with Ada.Text_IO; use Ada.Text_IO;
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Test_ByteBuffers is
Byte_Input ... |
3,368 | ada | 20 | HeisenbugLtd/spat | src/util/spat-string_tables.adb | <filename>src/util/spat-string_tables.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... |
3,369 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/common/hil/hil.adb | <gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
-- @summary
-- target-independent functions of HIL.
package body HIL with
SPARK_Mode => Off
is
procedure set_Bits( register : in out Unsig... |
3,370 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/ada_packages.adb | with Ada.Calendar;
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Ada.Command_Line;
with Ada.Environment_Variables;
with Ada.Integer_Text_IO;
with Ada.Numerics;
with Ada.Numerics.Aux;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
-- NOT IN STANDARD ADA ??... |
3,371 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-objects-programs.adb | <gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <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 a copy of the License at
--
-- http://www.apache.org/lic... |
3,372 | ada | 33 | ytomino/drake | source/nls/a-eenzst.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- extended unit
with Ada.Environment_Encoding.Generic_Strings;
package Ada.Environment_Encoding.Wide_Wide_Strings is
new Generic_Strings (
Wide_Wide_Character,
Wide_Wide_String);
-- Encoding / decoding between Wide_Wide_String and various encodings.
prag... |
3,373 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array18.adb | <gh_stars>1-10
-- { dg-do compile }
with Array18_Pkg; use Array18_Pkg;
procedure Array18 is
A : String (1 .. 1);
begin
A := F;
end;
|
3,374 | ada | 0 | optikos/oasis | source/oasis/program-elements-function_calls.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Parameter_Associations;
package Program.Elements.Function_Call... |
3,375 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37008a.ada | -- C37008A.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... |
3,376 | ada | 33 | ytomino/drake | source/strings/a-stwiun.ads | pragma License (Unrestricted);
with Ada.Strings.Unbounded_Wide_Strings.Functions.Maps;
with Ada.Strings.Wide_Maps;
package Ada.Strings.Wide_Unbounded is
pragma Preelaborate;
-- type Unbounded_Wide_String is private;
-- pragma Preelaborable_Initialization (Unbounded_Wide_String);
subtype Unbounded_Wide_String i... |
3,377 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-memtyp.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,378 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3102a.ada | -- CE3102A.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... |
3,379 | ada | 1 | Fabien-Chouteau/ada-lvgl-simulator | src/sdl_display.ads | <filename>src/sdl_display.ads
with Interfaces; use Interfaces;
with LV.Area;
generic
Width : Interfaces.Integer_16;
Height : Interfaces.Integer_16;
package SDL_Display is
Screen_Rect : constant LV.Area.Area_T := (0, 0, Width - 1, Height - 1);
procedure Initialize;
subtype SDL_Pixel is Unsigned_1... |
3,380 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversL5/stm32-rng.ads | <filename>arch/ARM/STM32/driversL5/stm32-rng.ads
with System;
with STM32.Device; use STM32.Device;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RNG; use STM32_SVD.RNG;
package STM32.RNG is
RNG : aliased RNG_Peripheral with Import, Volatile, Address => S_NS_Periph (RNG_Base);
procedure Enable_Rng;
... |
3,381 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0027.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,382 | ada | 80 | thindil/steamsky | src/ui/ships-ui-modules.adb | <gh_stars>10-100
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-... |
3,383 | ada | 19 | jquorning/ada-security | src/security-controllers.ads | -----------------------------------------------------------------------
-- security-controllers -- Controllers to verify a security permission
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
3,384 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Harshad-or-Niven-series/Ada/harshad-or-niven-series.ada | with Ada.Text_IO;
procedure Harshad is
function Next(N: in out Positive) return Positive is
function Sum_Of_Digits(N: Natural) return Natural is
( if N = 0 then 0 else ((N mod 10) + Sum_Of_Digits(N / 10)) );
begin
while not (N mod Sum_Of_Digits(N) = 0) loop
N := N + 1;
end loop;
r... |
3,385 | ada | 33 | ytomino/drake | source/strings/a-chaasc.ads | <filename>source/strings/a-chaasc.ads<gh_stars>10-100
pragma License (Unrestricted);
-- extended unit
pragma Style_Checks (Off, Standard.Ascii);
-- package ASCII is "ASCII" in standard, but "Ascii" in GNAT style...
package Ada.Characters.ASCII is
-- Alternative version of Standard.ASCII.
pragma Pure;
NUL :... |
3,386 | ada | 0 | faelys/natools | src/natools-s_expressions-conditionals-generic_evaluate.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,387 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | ADL/drivers/stm32f334/stm32-opamp.ads | private with STM32_SVD.SYSCFG;
package STM32.OPAMP is
type Operational_Amplifier is limited private;
procedure Enable (This : in out Operational_Amplifier)
with Post => Enabled (This);
procedure Disable (This : in out Operational_Amplifier)
with Post => not Enabled (This);
function Enabled (T... |
3,388 | ada | 1 | michalkonecny/polypaver | tools/SPARK2005/packages/polypaver/pp_f_exact.ads | <gh_stars>1-10
package PP_F_Exact is
-- Various SPARK functions for use in SPARK assertions.
-- These functions are then featured in VCs and PolyPaver will
-- understand their meaning. For each of these functions,
-- its semantics is the exact real interpretation of its name.
--
-- The F in the packa... |
3,389 | ada | 33 | ytomino/drake | source/strings/a-suenco.adb | <gh_stars>10-100
with Ada.Exception_Identification.From_Here;
with System.Storage_Elements;
with System.UTF_Conversions;
package body Ada.Strings.UTF_Encoding.Conversions is
use Exception_Identification.From_Here;
use type System.Storage_Elements.Storage_Offset;
use type System.UTF_Conversions.From_Status_Type... |
3,390 | ada | 2 | sinkinben/pok | examples/arinc653-threads/sample-ada/cpu/part1/activity.adb | <filename>examples/arinc653-threads/sample-ada/cpu/part1/activity.adb
package body Activity is
procedure Printf (String : in Interfaces.C.char_array);
pragma Import (C, Printf, "printf");
procedure Thr1_Job is
Ret : Return_Code_Type;
begin
loop
Printf ("beep ");
Timed_Wait (10... |
3,391 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization18_pkg.ads | with Unchecked_Conversion;
package Loop_Optimization18_Pkg is
type Arr is array (Integer range <>) of Natural;
type Rec (UB : Integer) is record
L : Arr (1 .. UB);
end record;
type Byte_Array_Type is new String (1..4);
function Conv is new Unchecked_Conversion (Byte_Array_Type, Integer);
end ... |
3,392 | ada | 1 | rn7s2/src | ada/prime/prime_ada.adb | <reponame>rn7s2/src
with Ada.Text_IO; use Ada.Text_IO;
package body Prime_Ada is
procedure Get_Prime (n : Integer) is
prime : array (1 .. n) of Integer;
is_prime : array (1 .. n) of Boolean := (False, others => True);
begin
cnt := 0;
for i in 2 .. n loop
if is_prime (i) then
... |
3,393 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/HTTP/Ada/http.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO; use Ada.Text_IO;
with AWS.Client;
with AWS.Response;
procedure HTTP_Request is
begin
Put_Line (AWS.Response.Message_Body (AWS.Client.Get (URL => "http://www.rosettacode.org")));
end HTTP_Request;
|
3,394 | ada | 12 | TUM-EI-RCS/StratoX | software/lib/generic_pid_controller.ads | <filename>software/lib/generic_pid_controller.ads
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: PID controller
--
-- Authors: <NAME> (<EMAIL>)
--
-- Description: PID Controller based on the Ada firmware for crazyflie
-- See http... |
3,395 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-error_control-masters.ads | <gh_stars>1-10
with Ada.Real_Time;
with ACO.CANopen;
private with ACO.Events;
private with ACO.Utils.Generic_Alarms;
private with ACO.Slave_Monitors;
package ACO.Protocols.Error_Control.Masters is
type Master
(Id : ACO.Messages.Node_Nr;
Handler : not null access ACO.CANopen.Handler;
Od ... |
3,396 | ada | 0 | faelys/natools | generated/natools-static_maps-s_expressions-templates-dates-cmds.adb | <reponame>faelys/natools<filename>generated/natools-static_maps-s_expressions-templates-dates-cmds.adb
with Interfaces; use Interfaces;
package body Natools.Static_Maps.S_Expressions.Templates.Dates.Cmds is
P : constant array (0 .. 5) of Natural :=
(1, 2, 5, 11, 12, 15);
T1 : constant array (0 .. 5) of Un... |
3,397 | ada | 6 | yannickmoy/SPARKZumo | src/algos/line_finder/geo_filter.adb | pragma SPARK_Mode;
package body Geo_Filter is
procedure FilterState (State : in out LineState;
Thresh : out Boolean)
is
Current_Point : constant Point_Type := State2PointLookup (State);
X_Sum, Y_Sum : Integer := 0;
X_Avg, Y_Avg : Integer;
begin
case Stat... |
3,398 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/glut-windows.ads | ------------------------------------------------------------------------------
-- File : GLUT-Windows.ads
-- Description : A Windowed viewer for GLOBE_3D, based on GLUT
-- Copyright (c) <NAME>/<NAME> 2006 .. 2008
------------------------------------------------------------------------------
-- ... |
3,399 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deref1.ads | <gh_stars>1-10
package deref1 is
type T is tagged limited null record;
procedure Op (Obj : in out T);
end deref1;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.