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 |
|---|---|---|---|---|---|
400 | ada | 5 | Kidev/DemoAdaPhysics2D | src/adaphysics2ddemo.ads | with Menus; use Menus;
package AdaPhysics2DDemo is
procedure Start(This : in out Menu);
end AdaPhysics2DDemo;
|
401 | ada | 0 | persan/advent-of-code-2020 | src/day-24/adventofcode-day_24-main.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_24.Main is
begin
Put_Line ("Day-24");
end Adventofcode.Day_24.Main;
|
402 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cbmutr.adb | <reponame>orb-zhuchen/Orb
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
403 | ada | 33 | ytomino/drake | source/s-startu.adb | package body System.Startup is
pragma Suppress (All_Checks);
-- weak reference for System.Unwind.Mapping
procedure Install_Exception_Handler (SEH : Address)
with Import, -- weak linking
Convention => Ada,
External_Name => "__drake_install_exception_handler";
pragma Weak_External (I... |
404 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Haversine-formula/Ada/haversine-formula.ada | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure Haversine_Formula is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Long_Float); use Math;
-- Compute great circle distance, given latitude and l... |
405 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/common/adainclude/last_chance_handler.adb | -- -*- Mode: Ada -*-
-- Filename : last_chance_handler.adb
-- Description : Implementation of the exception handler for the kernel.
-- Author : <NAME>
-- Created On : Thu Jun 14 12:06:48 2012
-- Licence : See LICENCE in the root directory.
-- with Cons... |
406 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/bit_types.ads | <gh_stars>10-100
with Interfaces;
package Bit_Types is
pragma Preelaborate;
type Word is new Interfaces.Unsigned_32; -- for shift/rotate
type Half_Word is new Interfaces.Unsigned_16; -- for shift/rotate
type Byte is new Interfaces.Unsigned_8; -- for shift/rotate
type Unsigned_8 is mod ... |
407 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-csparse.ads | <reponame>sciencylab/lagrangian-solver<filename>src/numerics-sparse_matrices-csparse.ads<gh_stars>0
with Interfaces.C, Interfaces.C.Pointers;
package Numerics.Sparse_Matrices.CSparse is
------- Define Matrix --------------------------------------------
type LU_Type is private;
------ Basic Getter funct... |
408 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-limited_views.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
409 | ada | 0 | csb6/libtcod-ada | src/generated/console_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with color_h;
with Interfaces.C.Extensions;
with System;
package console_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redistribution and... |
410 | ada | 2 | ytomino/web-ada | source/web.adb | with Ada.Calendar.Time_Zones;
with Ada.Environment_Variables;
with Ada.Strings.Fixed;
package body Web is
Month_T : constant String := "JanFebMarAprMayJunJulAugSepOctNovDec";
Day_T : constant String := "MonTueWedThuFriSatSun";
function Environment_Variables_Value (Name : String) return String is
begin
if Ada.... |
411 | ada | 1 | selroc/Renaissance-Ada | src/examples/Rejuvenation_Workshop/src/import_examples.ads |
with Mismatch;
with Default_Value; use Mismatch;
with Prefix_Notation; use Prefix_Notation;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Characters; -- With Comment and Whitespaces
use Ada.Characters;
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Calendar, Ada.Directories; use Ada.Calendar, Ada.Direc... |
412 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-times-time_expressions-solving.adb | pragma Ada_2012;
package body EU_Projects.Times.Time_Expressions.Solving is
------------------
-- Add_Equation --
------------------
procedure Add_Equation (Equations : in out Time_Equation_System;
Left : Dotted_Identifier;
Right : Symbolic_D... |
413 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/thin/freetype_c-ft_library.ads | with
freetype_c.Pointers;
package freetype_c.FT_Library
is
subtype Item is Pointers.FT_LibraryRec_Pointer;
type Item_array is array (C.Size_t range <>) of aliased FT_Library.Item;
type Pointer is access all freetype_c.FT_Library.Item;
type Pointer_array is array (C.Size_t range <>) o... |
414 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-billboard.adb | <reponame>charlie5/lace<gh_stars>10-100
package body openGL.Model.billboard
is
--------------
--- Attributes
--
function Width (Self : in Item) return Real
is
begin
case Self.Plane
is
when xy =>
return Self.Scale (1); -- TODO: Use own width and height dimensions r... |
415 | ada | 1 | leo-brewin/adm-bssn-numerical | adm/code/src/admbase-data_io.adb | <filename>adm/code/src/admbase-data_io.adb
with Support.CmdLine; use Support.CmdLine;
with Support.Strings; use Support.Strings;
with Ada.Streams.Stream_IO;
with Ada.Directories;
package body ADMBase.Data_IO is
data_directory : String := read_command_arg ('D',"data/");
results_directory : Strin... |
416 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/interfac.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
417 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
418 | ada | 76 | yannickmoy/SPARKNaCl | tests/box8.adb | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Cryptobox; use SPARKNaCl.Cryptobox;
with SPARKNaCl.Stream;
with Random; use Random;
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
procedure Box8
is
Raw_SK : Bytes_32;
AliceSK,... |
419 | ada | 9 | stcarrez/ada-search | src/search-tokens-factories-default.adb | -----------------------------------------------------------------------
-- search-tokens-factories -- Factory definition to create tokens
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
420 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/arbre_binaire.adb | <filename>1A/S5/PIM/projet/src/arbre_binaire.adb
--------------------------------------------------------------------------------
-- Fichier : arbre_binaire.adb
-- Auteur : <NAME> & <NAME>
-- Objectif : Implantation du module Arbre_Binaire.
-- Créé : <NAME> 25 2019
-------------------------------------------... |
421 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43205g.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43205g.ada
-- C43205G.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
-- unlimi... |
422 | ada | 0 | iyan22/AprendeAda | ejercicios4/escribir_matriz.adb | with Matriz, Ada.Text_IO, Ada.Integer_Text_IO;
use Matriz, Ada.Text_IO, Ada.Integer_Text_IO;
procedure escribir_matriz (M : in Matriz_de_Enteros) is
begin
for I in M'range(1) loop
for J in M'range(2) loop
Put(M(I,J),3);
end loop;
New_Line;
end loop;
end escribir_matriz; |
423 | ada | 0 | thierr26/ada-apsepp | src/apsepp-test_event_class-generic_timestamp_mixin.adb | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Test_Event_Class.Generic_Timestamp_Mixin is
----------------------------------------------------------------------------
overriding
procedure Set (Obj : in out Child_W_T... |
424 | ada | 33 | ytomino/drake | source/streams/a-sequio.ads | <filename>source/streams/a-sequio.ads
pragma License (Unrestricted);
with Ada.IO_Exceptions;
with Ada.IO_Modes;
private with Ada.Streams; -- [gcc-5] can not find it by below "with Stream_IO"
private with Ada.Streams.Stream_IO;
generic
type Element_Type (<>) is private;
package Ada.Sequential_IO is
type File_Type... |
425 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate-packrat.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 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) any lat... |
426 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/text/opengl-glyph.adb | <gh_stars>10-100
with
ada.unchecked_Deallocation;
package body openGL.Glyph
is
---------
-- Forge
--
procedure define (Self : in out Item; glyth_Slot : in freetype_c.FT_GlyphSlot.item)
is
begin
Self.Impl := new GlyphImpl.item;
Self.Impl.define (glyth_Slot);
end define;
p... |
427 | ada | 30 | jscparker/math_packages | polynomial/least_sq_poly/orthogonal_polys.adb | <gh_stars>10-100
-------------------------------------------------------------------------------
-- package body Orthogonal_Polys, Gram-Schmidt polynomials on discrete grid points.
-- Copyright (C) 2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee... |
428 | ada | 1 | charlie5/lace-alire | 3-mid/physics/implement/libbullet/src/libbullet.ads | package Libbullet is
end Libbullet;
|
429 | ada | 1 | io7m/coreland-openal-ada | openal-extension-efx_thin.ads | <gh_stars>1-10
-- Automatically generated, do not edit.
with System;
with OpenAL.Types;
package OpenAL.Extension.EFX_Thin is
ALC_EFX_MAJOR_VERSION : constant := 16#20001#;
ALC_EFX_MINOR_VERSION : constant := 16#20002#;
ALC_MAX_AUXILIARY_SENDS ... |
430 | ada | 15 | My-Colaborations/dynamo | src/gen-artifacts-mappings.ads | <reponame>My-Colaborations/dynamo
-----------------------------------------------------------------------
-- gen-artifacts-mappings -- Type mapping artifact for Code Generator
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
431 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-generic-in-package.d/input.ads | <filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-generic-in-package.d/input.ads
-- Taken from #2925 submitted by @koenmeersman
package My_Package is
generic
type Num is digits <>;
package Conversions is
function From_Big_Real (Arg : Integer) return Num;
end Conversions;
type Missing... |
432 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/samv71/svd/i-sam.ads | <gh_stars>0
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from ATSAMV71Q21.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Microchip ATSAMV71Q21 Microcontroller
package Interfaces.SAM is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
----------... |
433 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gaming/game_control.ads | <filename>Sources/Globe_3d/gaming/game_control.ads
------------------------------------------------------------------------------
-- File : Game_control.ads
-- Description : Command set for games, based on GLUT
-- Copyright (c) <NAME> 2002, 2005 .. 2008
----------------------------------------... |
434 | ada | 0 | strenkml/EE368 | memsim-master/src/test-dram.ads | <reponame>strenkml/EE368
package Test.DRAM is
procedure Run_Tests;
end Test.DRAM;
|
435 | ada | 4 | reznikmm/torrent | source/torrent-connections.adb | -- Copyright (c) 2019-2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Interfaces;
with GNAT.SHA1;
with Torrent.Downloaders;
with Torrent.Handshakes; use Tor... |
436 | ada | 1 | kylelk/ada-examples | hello.adb | with Ada.Text_IO;
use Ada;
procedure hello is
begin
Text_IO.Put_Line("hello world");
end hello;
|
437 | ada | 24 | svn2github/matreshka | source/league/codecs/matreshka-internals-text_codecs-shiftjis.adb | <filename>source/league/codecs/matreshka-internals-text_codecs-shiftjis.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
438 | ada | 22 | FardaleM/metalang | out/euler33.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 euler33 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
439 | ada | 24 | svn2github/matreshka | source/web/soap/web_services-soap-message_decoders.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
440 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-acl.adb | <reponame>faelys/natools-web
-- Generated at 2017-03-27 17:51:44 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-acl-maps.sx
with Natools.Static_Maps.Web.ACL.Commands;
package body Natools.Static_Maps.Web.ACL is
function To_Command (Key : String) return Command is
N : constant Natural
:=... |
441 | ada | 0 | xuedong/mini-ada | tests/syntax/bad/testfile-for-3.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is begin
for i in 1 .. 10 p; end loop;
end;
|
442 | ada | 33 | ytomino/drake | source/required/s-addima.adb | function System.Address_Image (A : Address)
return Storage_Elements.Formatting.Address_String
is
pragma Suppress (All_Checks);
begin
return Storage_Elements.Formatting.Image (A);
end System.Address_Image;
|
443 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcpsp__spe.adb | <filename>bb-runtimes/src/s-bbcpsp__spe.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
444 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-wait_lists.ads | -- Copyright 2016,2017 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in ... |
445 | ada | 18 | kraileth/ravenadm | src/port_specification-buildsheet.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Port_Specification.Buildsheet is
-- This generates the port buildsheet from the specification based on given parameters
-- The output_file must be blank (stdout) or a file to (over)write a file wit... |
446 | ada | 0 | persan/advent-of-code-2020 | src/adventofcode-file_line_readers.adb | pragma Ada_2012;
package body Adventofcode.File_Line_Readers is
use Ada.Text_IO;
----------------
-- Read_Lines --
----------------
function Read_Lines (From_Path : String) return File_Reader is
begin
return Ret : File_Reader do
Ada.Text_IO.Open (Ret.F, In_File, From_Path);
end r... |
447 | ada | 33 | ytomino/drake | source/numerics/a-nscoty.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
package Ada.Numerics.Short_Complex_Types is
new Generic_Complex_Types (Short_Float);
pragma Pure (Ada.Numerics.Short_Complex_Types);
|
448 | ada | 10 | jrmarino/libsodium-ada | examples/nonce/demo_ada.adb | with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
FF : constant Character := Character'Val (255);
n1 : String (1 .. 3) := (others => ASCII.NUL);
n2 : String (1 .. 3) := (others => FF);
n3 : String (1 .. 3) := (3 => Character'Val (254), others => ASCII.NUL... |
449 | ada | 204 | spr93/whitakers-words | src/words_engine/words_engine-search_english.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... |
450 | ada | 52 | onox/orka | orka/src/gl/interface/gl-toggles.ads | <reponame>onox/orka<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:/... |
451 | ada | 1 | TNO/Rejuvenation-Ada | src/string_sets_utils.ads | <reponame>TNO/Rejuvenation-Ada
with String_Sets; use String_Sets;
with String_Vectors; use String_Vectors;
package String_Sets_Utils is
function From_Vector (V : Vector) return Set;
function To_String (S : Set) return String;
end String_Sets_Utils;
|
452 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/return2.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/return2.ads
package Return2 is
type Kind_T is (One, Two);
type T is array (Kind_T) of Boolean;
type Result_Internal_T (Member : Boolean := False) is record
case Member is
when True =>
Data : Kind_T := Kind_T'First;
when False =>
... |
453 | ada | 24 | svn2github/matreshka | source/amf/utp/amf-internals-factories-utp_factories.adb | <filename>source/amf/utp/amf-internals-factories-utp_factories.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
... |
454 | ada | 0 | Letractively/ada-asf | src/asf-contexts-writer-string.adb | -----------------------------------------------------------------------
-- writer.string -- A simple string writer
-- Copyright (C) 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
455 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-rtc.ads | -- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.RTC is
pragma Preelaborate;
... |
456 | ada | 33 | ytomino/drake | examples/delays.adb | <filename>examples/delays.adb
with Ada.Calendar;
with Ada.Real_Time;
procedure delays is
use type Ada.Calendar.Time;
use type Ada.Real_Time.Time;
use type Ada.Real_Time.Time_Span;
begin
declare
Start : Ada.Calendar.Time := Ada.Calendar.Clock;
begin
delay 1.0;
delay until Ada.Calendar.Clock + 1.0;
pragma As... |
457 | ada | 6 | yannickmoy/SPARKZumo | src/fusion/zumo_motion.adb | pragma SPARK_Mode;
with Ada.Numerics.Long_Elementary_Functions;
use Ada.Numerics.Long_Elementary_Functions;
with Wire;
package body Zumo_Motion is
Pi : constant := 3.1415926;
function Get_Heading return Degrees
is
Mag : Axis_Data;
Heading : Degrees;
begin
Zumo_LSM303.Read_Mag (Data =>... |
458 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Amb/Ada/amb.ada | with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Amb is
type Alternatives is array (Positive range <>) of Unbounded_String;
type Amb (Count : Positive) is record
This : Positive := 1;
Left : access Amb;
List : Alternatives (1.... |
459 | ada | 81 | twdroeger/ada-awa | awa/src/awa-applications-configs.ads | <filename>awa/src/awa-applications-configs.ads
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 2017, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Vers... |
460 | ada | 7 | stcarrez/resource-embedder | regtests/are-generator-go-tests.adb | <filename>regtests/are-generator-go-tests.adb<gh_stars>1-10
-----------------------------------------------------------------------
-- are-generator-go-tests -- Tests for Go generator
-- Copyright (C) 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
461 | ada | 0 | vivianjia123/Password-Manager | Assignment/pin.adb | <filename>Assignment/pin.adb
package body PIN with SPARK_Mode is
function From_String(S : in String) return PIN is
Result : Natural := 0;
Count : Natural := 0;
begin
for I in S'Range loop
declare
Ch : Character := S(I);
begin
--pragma Assert (Character'... |
462 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/nordic/nrf51/svd/a-intnam.ads | <gh_stars>0
--
-- Copyright (C) 2018, AdaCore
--
-- Copyright (c) 2013, 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:
--
-- * Redistributions of source code m... |
463 | ada | 0 | optikos/oasis | source/nodes/program-nodes-procedure_access_types.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Parameter_Specifications;
with Program.Elements.Procedure_Access_Types;
with Program.Element_Visit... |
464 | ada | 0 | mgrojo/smk | src/smk-main-must_be_run.adb | <gh_stars>0
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache License, Version 2.0 (the "Lic... |
465 | ada | 0 | bracke/Meaning | source/RASCAL-Toolbox.ads | <gh_stars>0
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
466 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr11.adb | <gh_stars>1-10
-- { dg-do compile }
package body Discr11 is
function Create return DT_2 is
begin
return DT_2'(DT_1'(Create) with More => 1234);
end;
end Discr11;
|
467 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-bituti.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
468 | ada | 0 | likai3g/afmt | src/fmt-float_argument.ads | with Fmt.Generic_Float_Argument;
package Fmt.Float_Argument is
new Generic_Float_Argument(Float);
|
469 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf52/nrf_svd-pdm.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, t... |
470 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32gd-usb.ads | with STM32_SVD; use STM32_SVD;
with STM32_SVD.GPIO;
with STM32_SVD.USB;
with System;
package STM32GD.USB is
-----------------------------------------------------------------------------
-- Endpoint register and associated types and operations
-----------------------------------------------------------------... |
471 | ada | 0 | persan/a-libusb1 | src/usb.adb | pragma Ada_2012;
with GNAT.Calendar;
package body USB is
package Libusb_1_0_Libusb_H is
function Libusb_Init (Ctx : System.Address) return Int; -- /usr/include/libusb-1.0/libusb.h:1306
pragma Import (C, Libusb_Init, "libusb_init");
procedure Libusb_Exit (Ctx : System.Address); -- /usr/include/l... |
472 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sem_ch6.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/sem_ch6.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
473 | ada | 4 | davidkristola/vole | kv-avm-ini.adb | <filename>kv-avm-ini.adb
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Unchecked_Deallocation;
with Ada.Containers.Indefinite_Vectors;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Text_IO; --use Ada.Text_IO;
with Ada.Strings.Maps;
with Ada.Strings.Fixed;
with Ada.Characters.Latin_1;
with Interfaces;
with ... |
474 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-nbnbre.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
475 | ada | 0 | leo-brewin/Regge | regge.ads | <gh_stars>0
-- Copyright (c) 2017, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE... |
476 | ada | 1 | sourceryinstitute/rose-sourcery-institute | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/loop_statement.adb | procedure Loop_Statement is
begin
loop
null;
end loop;
end Loop_Statement;
|
477 | ada | 4 | ytomino/gmp-ada | examples/test_streams.adb | with Ada.Command_Line;
with Ada.Streams.Stream_IO;
with Ada.Strings.Fixed;
with Ada.Text_IO;
with GMP.Z;
procedure test_streams is
use Ada.Streams.Stream_IO;
use Ada.Strings;
use Ada.Strings.Fixed;
use Ada.Text_IO;
use GMP.Z;
Verbose : Boolean := False;
package Binary_IO is new Ada.Text_IO.Modular_IO (Ada.Stream... |
478 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-crtrun.ads | <filename>tools/scitools/conf/understand/ada/ada12/s-crtrun.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
479 | ada | 8 | mhatzl/spark_unbound | tests/src/Safe_Alloc/sa_arrays_tests.ads | with AUnit;
with AUnit.Test_Fixtures;
package SA_Arrays_Tests is
type Test_Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure TestAlloc_WithForcingStorageError_ResultNullReturned(T : in out Test_Fixture);
end SA_Arrays_Tests;
|
480 | ada | 33 | ytomino/drake | source/ada83/machcode.ads | pragma License (Unrestricted);
with System.Machine_Code;
package Machine_Code renames System.Machine_Code; -- If supported.
|
481 | ada | 1 | io7m/coreland-math_2d | math_2d-types.ads | <gh_stars>1-10
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
generic
type Real_Type is digits <>;
package Math_2D.Types is
package Functions is new Ada.Numerics.Generic_Elementary_Functions (Real_Type);
package Arrays is new Ada.Numerics.Generic_Real_Arrays (Real_Typ... |
482 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/common/adainclude/memory.ads | <gh_stars>10-100
-- -*- Mode: Ada -*-
-- Filename : memory.ads
-- Description : Memory routines.
-- Author : <NAME>
-- Created On : Thur Nov 17 15:04:08 2016
-- Licence : See LICENCE in the root directory.
with System;
package Memory is
function Cop... |
483 | ada | 2 | charlie5/cBound | tier-1/xcb/source/thin/xcb-xcb_arc_t.ads | <filename>tier-1/xcb/source/thin/xcb-xcb_arc_t.ads
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_arc_t is
-- Item
--
type Item is record
x : aliased Interfaces.Integer_16;
y : aliased ... |
484 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-containers-indefinite_ordered_sets.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 --
-- ... |
485 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-soflin.ads | <reponame>orb-zhuchen/Orb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
486 | ada | 1 | rveenker/sdlada | src/sdl-video.adb | <reponame>rveenker/sdlada
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any da... |
487 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-connector_info.adb | <filename>firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-connector_info.adb
--
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- 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 Foundati... |
488 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-images-pixmaps-xpm.ads | <gh_stars>1-10
package FLTK.Images.Pixmaps.XPM is
type XPM_Image is new Pixmap with private;
type XPM_Image_Reference (Data : not null access XPM_Image'Class) is
limited null record with Implicit_Dereference => Data;
package Forge is
function Create
(Filename : in St... |
489 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-use_clauses.ads | <reponame>reznikmm/gela<filename>source/nodes/program-nodes-use_clauses.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Use_Cla... |
490 | ada | 24 | svn2github/matreshka | testsuite/xml/sax_events_writers.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
491 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Higher-order-functions/Ada/higher-order-functions-1.ada | with Ada.Text_Io; use Ada.Text_Io;
procedure Subprogram_As_Argument is
type Proc_Access is access procedure;
procedure Second is
begin
Put_Line("Second Procedure");
end Second;
procedure First(Proc : Proc_Access) is
begin
Proc.all;
end First;
begin
First(Second'Access);
end Subpro... |
492 | ada | 0 | yannickmoy/spat | src/spat-gpr_support.ads | <gh_stars>0
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hoce... |
493 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-sphere-lit_colored_textured.ads | with
openGL.Font,
openGL.Geometry;
package openGL.Model.sphere.lit_colored_textured
--
-- Models a lit, colored, textured sphere.
--
is
type Item is new Model.sphere.item with
record
Image : asset_Name := null_Asset; -- Usually a mercator projection to be mapped onto the sphere.
... |
494 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_L3GD20_dataready_int/src/demo_l3gd20.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- ... |
495 | ada | 60 | RREE/ada-util | src/base/properties/util-properties-bundles.adb | <filename>src/base/properties/util-properties-bundles.adb
-----------------------------------------------------------------------
-- util-properties-bundles -- Generic name/value property management
-- Copyright (C) 2001 - 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2... |
496 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-utf_32.ads | <filename>gcc-gcc-7_3_0-release/gcc/ada/s-utf_32.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
497 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/text/private/opengl-glyphimpl.ads | <reponame>charlie5/lace
with
freetype_C.FT_GlyphSlot;
package openGL.GlyphImpl
--
-- Implements an openGL glyph.
--
is
type Item is tagged private;
type View is access all Item'Class;
---------
-- Types
--
subtype error_Kind is freetype_C.FT_Error;
no_Error : constant error_Kind;
--... |
498 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-exngen.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
499 | ada | 60 | Letractively/ada-util | src/util-serialize-mappers-vector_mapper.ads | <reponame>Letractively/ada-util
-----------------------------------------------------------------------
-- Util.Serialize.Mappers.Vector_Mapper -- Mapper for vector types
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you m... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.