id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
7,600 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-link_end_destruction_datas.ads | <filename>source/amf/uml/amf-uml-link_end_destruction_datas.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,601 | ada | 18 | jrmarino/ravenadm | src/display.adb | <filename>src/display.adb
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with HelperText;
package body Display is
package HT renames HelperText;
--------------------------------------------------------------------------------------------
-- insert... |
7,602 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Fibonacci-sequence/Ada/fibonacci-sequence-4.ada | <reponame>LaudateCorpus1/RosettaCodeData
with ada.text_io;
use ada.text_io;
procedure fast_fibo is
-- We work with biggest natural integers in a 64 bits machine
type Big_Int is mod 2**64;
-- We provide an index type for accessing the fibonacci sequence terms
type Index is new Big_Int;
-- fibo is a generic func... |
7,603 | ada | 0 | Asier98/AdaCar | src/adacar.ads | with STM32.GPIO;
with Pins_STM32F446; use Pins_STM32F446;
with Ada.Real_Time; use type Ada.Real_Time.Time; use Ada;
package AdaCar is
--------------
-- Unidades --
--------------
type Unidades_AI is new Integer range 0..4095;
type Estado_Digital is new Integer range 0..1;
type Unidades_Distanci... |
7,604 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline4.adb | <reponame>best08618/asylo
-- { dg-do compile }
with Inline4_Pkg; use Inline4_Pkg;
procedure Inline4 is
begin
Test (0);
end;
|
7,605 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503h.ada | <reponame>best08618/asylo
-- C35503H.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contai... |
7,606 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/stm32l/stm32l5x2/svd/i-stm32-syscfg.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<filename>bb-runtimes/arm/stm32l/stm32l5x2/svd/i-stm32-syscfg.ads
--
-- Copyright (C) 2021, AdaCore
--
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32L562.svd
with System;
package Interfaces.STM32.SYSCFG is
pragma Preelaborate;
pragma ... |
7,607 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | SVD2ada/svd/stm32_svd-ucpd.ads | <filename>SVD2ada/svd/stm32_svd-ucpd.ads
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.UCPD is
pragma Preelaborate;
---------------
-- Registers --
---------------
su... |
7,608 | ada | 1 | mullikine/RosettaCodeData | Task/100-doors/Ada/100-doors-1.ada | with Ada.Text_Io; use Ada.Text_Io;
procedure Doors is
type Door_State is (Closed, Open);
type Door_List is array(Positive range 1..100) of Door_State;
The_Doors : Door_List := (others => Closed);
begin
for I in 1..100 loop
for J in The_Doors'range loop
if J mod I = 0 then
... |
7,609 | ada | 5 | onox/dcf-ada | dcf/src/dcf-streams-calendar.ads | <reponame>onox/dcf-ada<gh_stars>1-10
with Ada.Calendar;
package DCF.Streams.Calendar is
-- Set_Time again, but with the standard Ada Time type.
-- Overriding is useless and potentially harmful, so we prevent it with
-- a class-wide profile.
procedure Set_Time (S : out Root_Zipstream_Type'Class; Modific... |
7,610 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/egl/opengl-surface_profile.ads | <reponame>charlie5/lace
with
openGL.Display,
openGL.Screen;
private
with
eGL;
package opengl.surface_Profile
--
-- Models an openGL surface profile.
--
is
type Item is tagged private;
type View is access all Item'Class;
type Items is array (Positive range <>) of Item;
-- Surface Q... |
7,611 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic6_8.adb | -- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with Atomic6_Pkg; use Atomic6_Pkg;
procedure Atomic6_8 is
Ptr : Int_Ptr := new Int;
Temp : Integer;
begin
Ptr.all := Counter1;
Counter1 := Ptr.all;
Ptr.all := Int(Timer1);
Timer1 := Integer(Ptr.all);
Temp := Integer(Ptr.all);
Ptr.all := I... |
7,612 | ada | 22 | FardaleM/metalang | out/euler36.adb |
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
procedure euler36 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
7,613 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/xr_tabls.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,614 | ada | 10 | jrmarino/libsodium-ada | examples/msg_authentication/demo_ada.adb | <gh_stars>1-10
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : String := "Are you sure I wrote this?";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
end if;
declare
tag : Auth_Tag;
... |
7,615 | ada | 24 | svn2github/matreshka | tools/configure/configure-architecture.adb | <reponame>svn2github/matreshka<filename>tools/configure/configure-architecture.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
7,616 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/requeue_statement_2.adb | -- This code is for compiler front end testing only. It does nothing at run time.
procedure Requeue_Statement_2 is
protected Protected_1 is
entry Entry_1;
entry Entry_2;
private
Barrier_Open : Boolean := False;
end Protected_1;
protected body Protected_1 is
entry Entry_1
wh... |
7,617 | ada | 4 | davidkristola/vole | volec.adb | -- This file is freely given to the Public Domain.
--
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Streams.Stream_IO;
with Vole_Tokens;
with kv.avm.Vole_Lex;
with Vole_Lex_IO;
with kv.avm.vole_parser;
with kv.avm.vole_tree;
with kv.av... |
7,618 | ada | 0 | evgenijaZ/PP-labs | lab01/src/lab1.adb | with Ada.Text_IO;
use Ada.Text_IO;
with Data;
use Data;
with Ada.Integer_Text_IO;
with Ada.Integer_Text_IO;
with System.Multiprocessors;
use System.Multiprocessors;
procedure lab1 is
cpu1 : CPU_Range := 1;
cpu2 : CPU_Range := 1;
cpu3 : CPU_Range := 1;
N : Integer := 50;
task T1 is
pragma Priorit... |
7,619 | ada | 0 | reznikmm/gela | source/oasis/program-elements-function_instantiations.ads | <filename>source/oasis/program-elements-function_instantiations.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names... |
7,620 | ada | 0 | Letractively/ada-gen | src/gen-model-mappings.adb | <reponame>Letractively/ada-gen
-----------------------------------------------------------------------
-- gen-model-mappings -- Type mappings for Code Generator
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
7,621 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43214a.ada | -- C43214A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
7,622 | ada | 33 | ytomino/drake | source/numerics/a-nuds21.ads | pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from dSFMT (dSFMT-params216091.h)
with Ada.Numerics.dSFMT;
package Ada.Numerics.dSFMT_216091 is
new dSFMT (
MEXP => 216091,
POS1 => 1890,
SL1 => 23,
MSK1 => 16#000bf7df7fefcfff#,
MSK2 => 16#000e7ffffef737ff#,
FIX1 ... |
7,623 | ada | 3 | jwarwick/aoc_2020 | day19/src/day.adb | <filename>day19/src/day.adb
-- AoC 2020, Day 19
with Ada.Text_IO;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers.Vectors;
use Ada.Containers;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
package body Day is
package TIO renames Ada.Text_IO;
type Rule_Type is (term, nonterm);
package Rule_Vect... |
7,624 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/vectors_3d.ads | <reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10
--
-- Jan & <NAME>, Australia, July 2011
--
with Real_Type; use Real_Type;
with Vectors_xD; pragma Elaborate_All (Vectors_xD);
package Vectors_3D is
type Coordinates is (x, y, z);
package Vectors_3Di is new Vectors_xD (Real, Coordinates);
... |
7,625 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Multiplication-tables/Ada/multiplication-tables.ada | <filename>Task/Multiplication-tables/Ada/multiplication-tables.ada
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
procedure Multiplication_Table is
package IO is new Integer_IO (Integer);
use IO;
begin
Put (" | ");
for Row in 1..12 loop
Put (Row, Width => 4);
en... |
7,626 | ada | 33 | ytomino/drake | source/strings/a-stuten.ads | pragma License (Unrestricted);
-- Ada 2012
private with System;
package Ada.Strings.UTF_Encoding is
pragma Pure;
-- Declarations common to the string encoding packages
-- modified
-- UTF-32 support is added.
type Encoding_Scheme is (
UTF_8, UTF_16BE, UTF_16LE,
UTF_32BE, UTF_32LE); -- add... |
7,627 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-hexagon_column.ads | package openGL.Model.hexagon_Column
--
-- Models a column with six sides.
--
is
type Item is abstract new Model.item with
record
Radius : Real := 1.0;
Height : Real := 1.0;
end record;
private
Normal : constant Vector_3 := (0.0, 0.0, 1.0);
end openGL.Model.hexagon_Column;
|
7,628 | ada | 204 | spr93/whitakers-words | src/support_utils/support_utils-char_utils.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... |
7,629 | ada | 0 | silentTeee/ada_wavefiles_gtk_app | src/wavefiles_gtk--menu.ads |
package WaveFiles_Gtk.Menu is
procedure Create;
end WaveFiles_Gtk.Menu;
|
7,630 | ada | 60 | RREE/ada-util | src/base/commands/util-commands-consoles-text.ads | -----------------------------------------------------------------------
-- util-commands-consoles-text -- Text console interface
-- Copyright (C) 2014, 2017, 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... |
7,631 | ada | 0 | persan/a-cups | src/gen/cups-time_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.bits_types_h;
with Interfaces.C.Strings;
with CUPS.xlocale_h;
with CUPS.sys_types_h;
limited with CUPS.bits_siginfo_h;
with System;
private package CUPS.time_h is
TIME_UTC : constant := 1; -- time.h:182
-- Copyright (... |
7,632 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-storages/src/awa-storages-stores.ads | -----------------------------------------------------------------------
-- awa-storages-stores -- The storage interface
-- 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 Licens... |
7,633 | ada | 1 | lkujaw/ada-blake2 | common/octearra.ads | -----------------------------------------------------------------------
-- Copyright 2021 <NAME> --
-- --
-- Permission is hereby granted, free of charge, to any person --
-- obtaining a copy of this software ... |
7,634 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-strops.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,635 | ada | 0 | KLOC-Karsten/adaoled | src/oled_sh1106.ads | <filename>src/oled_sh1106.ads
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
with Bitmap_Graphics; use Bitmap_Graphics;
package OLED_SH1106 is
function Start_Driver return Boolean;
procedure Stop_Driver ;
procedure Init_Display;
procedure Show;
-- Graphics Routine.
procedure ... |
7,636 | ada | 0 | Letractively/ada-awa | awa/samples/src/atlas-server.adb | -----------------------------------------------------------------------
-- Atlas-server -- Application server
-- Copyright (C) 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 compliance with the Lice... |
7,637 | ada | 1 | charlie5/lace-alire | 1-base/xml/applet/demo/outline/launch_outline.adb | <reponame>charlie5/lace-alire<filename>1-base/xml/applet/demo/outline/launch_outline.adb<gh_stars>1-10
with
ada.command_Line,
ada.Text_IO,
ada.Strings.unbounded,
xml.Reader;
procedure launch_Outline
is
use ada.command_Line,
ada.Text_IO,
ada.Strings.unbounded,
XML.Reader;
... |
7,638 | ada | 0 | My-Colaborations/ada-ado | src/sqlite/ado-sqlite.ads | <gh_stars>0
-----------------------------------------------------------------------
-- ado-sqlite -- SQLite Database Drivers
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the L... |
7,639 | ada | 0 | Fabien-Chouteau/COBS | src/cobs-queue-encoder.adb | with BBqueue; use BBqueue;
package body COBS.Queue.Encoder is
procedure Ensure_Buffer (This : in out Instance;
Success : out Boolean);
procedure Set (This : in out Instance;
Index : Storage_Offset;
Data : Storage_Element)
with ... |
7,640 | ada | 192 | rocher/Ada_Drivers_Library | hal/src/hal.ads | <reponame>rocher/Ada_Drivers_Library
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
7,641 | ada | 2 | egustafson/sandbox | Ada/gnat/network.ada | -- network.ada
--
-- Title: Network
-- Created: Tue Apr 13 00:56:28 1993
-- Author: <NAME>
-- <<EMAIL>>
--
-- Interface:
-- All nodes will be lettered sequentially from 'A' nodes are
-- case insensitive. lambda and gama values are integer values
-- in the range of 0..max_int.
with TEXT_IO;
procedure NET... |
7,642 | ada | 0 | aeszter/sharepoint2ics | src/convert.adb | with Ada.Text_IO; use Ada.Text_IO;
with DOM; use DOM;
with Events;
procedure Convert (Input : DOM.Core.Node_List; Output : File_Type) is
begin
Events.Read (Input);
Events.Write (Output);
end Convert;
|
7,643 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca1005a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca1005a.ada<gh_stars>1-10
-- CA1005A.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 ... |
7,644 | ada | 5 | leo-brewin/ada-lapack | tests/tdsysv.adb | with Ada.Text_IO;
with Ada.Text_IO.Complex_IO;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada_Lapack;
use Ada.Text_IO;
procedure ... |
7,645 | ada | 52 | onox/orka | orka/src/orka/interface/orka-futures-slots.ads | <filename>orka/src/orka/interface/orka-futures-slots.ads
-- 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 a... |
7,646 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/trains.adb | package body Trains with
SPARK_Mode
is
procedure Update_Track_Signal (Track : Track_Id) with
Global => (Input => (Trains, Cur_Num_Trains),
In_Out => Track_Signals),
Pre => Track_Signals (Track) = Orange,
Post => (if (for some T in Train_Id range 1 .. Cur_Num_Trains =>
... |
7,647 | ada | 1 | simonjwright/Quaternions | src/quaternions.ads | <filename>src/quaternions.ads
with Generic_Quaternions;
package Quaternions is new Generic_Quaternions (Float);
|
7,648 | ada | 24 | svn2github/matreshka | source/amf/ocl/amf-internals-tables-ocl_string_data_00.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,649 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48009j.ada | -- C48009J.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
7,650 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_ch8.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,651 | ada | 1 | Fabien-Chouteau/Renaissance-Ada | src/libraries/Rewriters_Lib/src/rewriters_sequence.ads | with Ada.Containers.Vectors;
with Rewriters; use Rewriters;
package Rewriters_Sequence is new Ada.Containers.Vectors
(Positive, Any_Constant_Rewriter);
|
7,652 | ada | 13 | annexi-strayline/AURA | user_notices.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
7,653 | ada | 4 | reznikmm/torrent | source/torrent-initiators.ads | -- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with GNAT.Sockets;
with Torrent.Connections;
with Torrent.Downloaders;
limited with Torrent.Contexts;
package Torrent.Initiators is
task type Ini... |
7,654 | ada | 0 | skill-lang/adaCommon | src/skill-containers-vectors.adb | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ skills vector container implementation --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- ... |
7,655 | ada | 0 | anajmedd/ENSEEIHT-Projects | 1A/PIM/projet/matrice_pleine.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.float_Text_IO; use Ada.float_Text_IO;
with Ada.integer_Text_IO; use Ada.integer_Text_IO;
package body matrice_pleine is
procedure initialiser(M : out T_Matrice) is
begin
M(1..Capacite)(1..Capacite) := (1..Capacite =>(1..Capacite => 0.0));
end init... |
7,656 | ada | 0 | reznikmm/slimp | source/slim-players-play_files_visiters.adb | <reponame>reznikmm/slimp<filename>source/slim-players-play_files_visiters.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
with Slim.Messages.cont;
package body Slim.Players.Pl... |
7,657 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/host/startup.ads | package Startup is
pragma Pure;
end Startup;
|
7,658 | ada | 80 | thindil/steamsky | tests/game-test_data-tests-natural_container.ads | package Game.Test_Data.Tests.Natural_Container is
end Game.Test_Data.Tests.Natural_Container;
|
7,659 | ada | 24 | svn2github/matreshka | source/xml/sax/xml-sax-input_sources-streams-files-naming_utilities__posix.adb | <reponame>svn2github/matreshka<filename>source/xml/sax/xml-sax-input_sources-streams-files-naming_utilities__posix.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ... |
7,660 | ada | 5 | docandrew/troodon | include/bits_sched_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
package bits_sched_h is
SCHED_OTHER : constant := 0; -- /usr/include/bits/sched.h:28
SCHED_FIFO : constant := 1; -- /usr/include/bits/sched.h:29
SCHED_RR : constant := 2; -- /usr/include/bits/sched.h:30
S... |
7,661 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/samv71/svd/i-sam-efc.ads | --
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from ATSAMV71Q21.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.EFC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
su... |
7,662 | ada | 11 | charlie5/aShell | test/wait_on_process/test_wait_on_process.adb | <gh_stars>10-100
with
Shell,
Ada.Text_IO;
procedure Test_Wait_On_Process
is
use Ada.Text_IO;
begin
Put_Line ("Begin 'Wait_On_Process' test.");
New_Line (2);
declare
use Shell;
Sleep : Shell.Process := Start (Program => "sleep",
Arguments => (... |
7,663 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/objects/globe_3d-impostor-simple.adb | <reponame>ForYouEyesOnly/Space-Convoy
pragma Warnings (Off);
pragma Style_Checks (Off);
with GLOBE_3D.Textures,
GLOBE_3D.Math;
with glut.Windows; use glut.Windows;
with GL.Errors;
with GLU;
package body GLOBE_3D.Impostor.Simple is
package G3DT renames GLOBE_3D.Textures;
package G3DM renames ... |
7,664 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/src/serial_ports.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Universidad Politécnica de Madrid --
-- --
-- ... |
7,665 | ada | 10 | Ada-Audio/wavefiles | src/audio-wavefiles-write.adb | ------------------------------------------------------------------------------
-- --
-- WAVEFILES --
-- --
-- ... |
7,666 | ada | 1 | TNO/Rejuvenation-Ada | examples/src/examples-navigation.ads | package Examples.Navigation is
procedure Demo (File_Name : String);
end Examples.Navigation;
|
7,667 | ada | 3 | mosteo/uri-ada | src/uri-test.adb | -- with Ada.Text_IO; use Ada.Text_IO;
procedure URI.Test is
T_1 : constant String :=
"http://anon:1234@www.dummy.com/highway/to/?sure&really#hell";
T_2 : constant String := "urn:example:animal:ferret:nose";
begin
-- Individual parts
pragma Assert (Extract ("", Scheme) = "");
pragma Assert... |
7,668 | ada | 0 | 97kovacspeter/ADA | aircraft.adb | with Card_Dir;
use Card_Dir;
with Coords;
use Coords;
with Ada.Numerics.Discrete_Random;
package body Aircraft is
procedure Ascend(A: in out Aircraft_Type) is
begin
A.Is_In_The_Air:=true;
end Ascend;
procedure Land(A: in out Aircraft_Type) is
begin
A.Is_In_The_Air:=false;
end Land;
function Get_Is_In... |
7,669 | ada | 10 | jrmarino/libsodium-ada | examples/signatures/demo_ada.adb | <filename>examples/signatures/demo_ada.adb
with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
message : constant String := "JRM wrote this note.";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
end if;
... |
7,670 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-times-time_expressions.adb | -- with Ada.Text_IO; use Ada.Text_IO;
package body EU_Projects.Times.Time_Expressions is
-------------
-- Extract --
-------------
function Extract (X : Symbolic_Instant_Array) return Time_Expr.Expression_Array
is
Result : Time_Expr.Expression_Array (X'Range);
begin
for I in X'Range lo... |
7,671 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_prio.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_prio.adb<gh_stars>1-10
-- { dg-do run }
-- { dg-options "-gnatws" }
pragma Locking_Policy (Ceiling_Locking);
with test_prio_p;use test_prio_p;
with text_io; use text_io;
procedure Test_Prio is
task Tsk is
pragma Priority (10);
end Tsk;
task body... |
7,672 | ada | 0 | SSOCsoft/Log_Reporter | src/nso-json-gnoga_object.adb | <filename>src/nso-json-gnoga_object.adb<gh_stars>0
Pragma Ada_2012;
With
Ada.Unchecked_Conversion,
NSO.Types,
--NSO.Types.Report_Objects,
Gnoga.Server.Connection;
Package Body NSO.JSON.Gnoga_Object is
JS_Make_Path : Constant String :=
"let pathing = (str) => "&
" {return Array.from(str).reduc... |
7,673 | ada | 0 | bracke/Meaning | source/Controller_Dummy.adb |
package body Controller_Dummy is
--
procedure Handle (The : in TEL_Dummy) is
begin
null;
end Handle;
--
end Controller_Dummy;
|
7,674 | ada | 2 | heharkon/cmd_ada | example_app/src/test_procs.adb | <filename>example_app/src/test_procs.adb<gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Test_Procs is
procedure Test1 (Params : Cmd_ada.Cb_Parameters.Vector) is
begin
Put_Line ("I got called with: ");
for P of Params loo... |
7,675 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Synchronous-concurrency/Ada/synchronous-concurrency-1.ada | <filename>Task/Synchronous-concurrency/Ada/synchronous-concurrency-1.ada
package Synchronous_Concurrent is
task Printer is
entry Put(Item : in String);
entry Get_Count(Count : out Natural);
end Printer;
end Synchronous_Concurrent;
|
7,676 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-strings.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
7,677 | ada | 2 | SMerrony/dgemua | processor/processor-nova_op_p.adb | <filename>processor/processor-nova_op_p.adb<gh_stars>1-10
-- 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 witho... |
7,678 | ada | 0 | My-Colaborations/ada-ado | src/ado-statements-create.ads | <reponame>My-Colaborations/ada-ado<filename>src/ado-statements-create.ads
-----------------------------------------------------------------------
-- ADO Statements -- Database statements
-- Copyright (C) 2009, 2010, 2011, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.... |
7,679 | ada | 0 | xuedong/mini-ada | tests/typing/good/testfile-rec-2.adb | <filename>tests/typing/good/testfile-rec-2.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
function F return character is begin return f; end;
begin
put(f);
end;
|
7,680 | ada | 25 | thierr26/ada-keystore | gtk/akt-gtk.adb | -----------------------------------------------------------------------
-- akt-gtk -- Ada Keystore Tool GTK Application
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Licens... |
7,681 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_05.ads | <reponame>Tim-Tom/project-euler
package Problem_05 is
procedure Solve;
end Problem_05;
|
7,682 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Model/duck_p.ads | <reponame>ForYouEyesOnly/Space-Convoy
--
-- Jan & <NAME>, Australia, July 2011
--
with GLOBE_3D;
package Duck_P is
procedure Create (object : in out GLOBE_3D.p_Object_3D;
object_scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D);
end Duck_P;
|
7,683 | ada | 0 | bracke/Meaning | source/RASCAL-FileInternal.adb | <filename>source/RASCAL-FileInternal.adb
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
7,684 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-fmc.ads | <gh_stars>10-100
with System;
package STM32F4.FMC is
FMC_Bank1_SDRAM : constant := 16#00000000#;
FMC_Bank2_SDRAM : constant := 16#00000001#;
FMC_Bank1_NORSRAM1 : constant := 16#00000000#;
FMC_Bank1_NORSRAM2 : constant := 16#00000002#;
FMC_Bank1_NORSRAM3 : constant := 16#00000004#;
FMC_Bank1_NORSRAM4... |
7,685 | ada | 0 | xuedong/mini-ada | tests/syntax/bad/testfile-params-6.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin P(); end;
|
7,686 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.2.1/wisitoken-parse-lr-mckenzie_recover-explore.adb | -- Abstract :
--
-- See spec.
--
-- 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
-- Software Foundation; either version 3, or (at your option) ... |
7,687 | ada | 32 | persan/AdaYaml | src/annotation_processor/implementation/yaml-events-context.adb | <reponame>persan/AdaYaml
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Yaml.Events.Context is
use type Store.Optional_Reference;
use type Text.Reference;
use type Store.Anchor_Cursor;
use type ... |
7,688 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-error.ads | <reponame>Fabien-Chouteau/sdlada<gh_stars>1-10
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be h... |
7,689 | ada | 0 | fintatarta/protypo | src/API/protypo-api-callback_utilities.ads | <gh_stars>0
with Protypo.Api.Engine_Values.Engine_Value_Vectors;
use Protypo.Api.Engine_Values;
package Protypo.Api.Callback_Utilities is
type Class_Array is array (Positive range <>) of Engine_Value_Class;
function Match_Signature (Parameters : Engine_Value_Vectors.Vector;
Signatu... |
7,690 | ada | 6 | mosteo/yeison | demo/src/experiments.adb | <reponame>mosteo/yeison
with Ada.Text_IO; use Ada.Text_IO;
with Yeison_Experiments; use Yeison_Experiments;
procedure Experiments is
LS : constant List := ("a", "b", "c");
-- LI : constant List := (1, 2, 3);
-- Ideally, this should be allowed in the future
begin
null;
end Experiments;
|
7,691 | ada | 1 | mullikine/RosettaCodeData | Task/Bitcoin-address-validation/Ada/bitcoin-address-validation.ada | <gh_stars>1-10
with Ada.Exceptions, Interfaces;
with Ada.Streams;
use Ada.Exceptions, Interfaces;
use Ada.Streams;
package Bitcoin is
subtype BT_Raw_Addr is Stream_Element_Array(1..25);
subtype BT_Checksum is Stream_Element_Array(1..4);
subtype BT_Addr is String(1..34);
subtype Sha256String is String(1... |
7,692 | ada | 5 | DependableSystemsLab/Trident | llvm-2.9/test/FrontendAda/debug_var_size.ads | -- RUN: %llvmgcc -S -g %s
package Debug_Var_Size is
subtype Length_Type is Positive range 1 .. 64;
type T (Length : Length_Type := 1) is record
Varying_Length : String (1 .. Length);
Fixed_Length : Boolean;
end record;
end;
|
7,693 | ada | 1 | Martin-Molinero/coinapi-sdk | oeml-sdk/ada/src/.ads | <filename>oeml-sdk/ada/src/.ads
-- OEML _ REST API
-- This section will provide necessary information about the `CoinAPI OEML REST API` protocol. This API is also available in the Postman application: <a href=\"https://postman.coinapi.io/\" target=\"_blank\">https://postman.coinapi.io/</a>
-- ------------ EDI... |
7,694 | ada | 1 | persan/A-gst | tests/src/gstreamer-rtsp-transport-tests.adb | <reponame>persan/A-gst
pragma Ada_2012;
with GNAT.Source_Info;
package body GStreamer.Rtsp.Transport.Tests is
----------
-- Name --
----------
Test_Name : constant String := GNAT.Source_Info.Enclosing_Entity;
function Name (Test : Test_Case) return Message_String is
pragma Unreferenced (Test);
... |
7,695 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cdlili.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
7,696 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3123a.ada | <reponame>best08618/asylo
-- CC3123A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contai... |
7,697 | ada | 0 | SKNZ/BezierToSTL | src/beziertostl.adb | with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with STL; use STL;
with Parser_Svg; use Parser_Svg;
with Normalisation; use Normalisation;
with Courbes; use Courbes;
with Interpolations_Lineaires; use Interpolations_Lineaires;
with Vecteurs; use ... |
7,698 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-box.ads | package openGL.Model.box
--
-- Provides an abstract model of a box.
--
is
type Item is abstract new openGL.Model.item with private;
type Side is (Front, Rear,
Upper, Lower,
Left, Right);
function Size (Self : in Item) return Vector_3;
private
type Item is abstract n... |
7,699 | ada | 0 | thierr26/ada-keystore | src/keystore-logs.adb | -----------------------------------------------------------------------
-- keystore-logs -- Log support 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 the Licen... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.