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 |
|---|---|---|---|---|---|
5,000 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Image-convolution/Ada/image-convolution-3.ada | <filename>Task/Image-convolution/Ada/image-convolution-3.ada<gh_stars>1-10
F1, F2 : File_Type;
begin
Open (F1, In_File, "city.ppm");
declare
X : Image := Get_PPM (F1);
begin
Close (F1);
Create (F2, Out_File, "city_sharpen.ppm");
Filter (X, ((-1.0, -1.0, -1.0), (-1.0, 9.0, -1.0), (-1.... |
5,001 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c2/c25001a.ada | -- C25001A.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... |
5,002 | ada | 0 | JeremyGrosser/synack_misc | lch/last_chance_handler.ads | --
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.UART;
with System;
package Last_Chance_Handler is
procedure Initialize
(UART : not null HAL.UART.Any_UART_Port);
procedure Last_Chance_Handler
(Source_Location : System.Address;
Line ... |
5,003 | ada | 1 | jed-frey/e200-gcc | build_gnu/binutils/gdb/testsuite/gdb.ada/exprs/p.adb | <gh_stars>1-10
-- Copyright 2008-2014 Free Software Foundation, Inc.
--
-- 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 ... |
5,004 | ada | 80 | thindil/steamsky | src/ui/ordersmenu.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.
--
-... |
5,005 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-definitions.ads | <filename>src/asis/asis-definitions.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
5,006 | ada | 0 | persan/a-cups | src/gen/cups-bits_pthreadtypes_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
with System;
private package CUPS.bits_pthreadtypes_h is
-- Copyright (C) 2002-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software;... |
5,007 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-relational.ads | <reponame>zrmyers/VulkanAda
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
... |
5,008 | ada | 33 | ytomino/drake | source/strings/a-stzmap.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
with Ada.Strings.Maps;
package Ada.Strings.Wide_Wide_Maps is
pragma Preelaborate;
-- Representation for a set of Wide_Wide_Character values:
-- modified
-- type Wide_Wide_Character_Set is private;
subtype Wide_Wide_Character_Set is Maps.Character_Se... |
5,009 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/a-ngelfu.ads | <filename>tools/scitools/conf/understand/ada/ada12/a-ngelfu.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,010 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-detector-discrete-gjk_pair.ads | <gh_stars>10-100
with impact.d3.collision.Detector.discrete;
with impact.d3.collision.convex_penetration_depth_Solver;
with impact.d3.collision.simplex_Solver;
with impact.d3.Shape.convex;
with impact.d3.collision.Proxy;
-- #include "impact.d3.collision.Detector.discrete.h"
-- #include "BulletCollision/CollisionShap... |
5,011 | ada | 4 | davidkristola/vole | kv-avm-tree_rewrite.ads | <reponame>davidkristola/vole<filename>kv-avm-tree_rewrite.ads
with Ada.Text_IO;
with kv.avm.vole_tree; use kv.avm.vole_tree;
with kv.avm.Tree_Visitors; use kv.avm.Tree_Visitors;
package kv.avm.Tree_Rewrite is
type Rewriter_Class is limited new Visitor_Class with
record
Temp : Natural := 0;
... |
5,012 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l4x3/stm32_svd-crc.ads | -- This spec has been automatically generated from STM32L4x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.CRC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype IDR_IDR_Field is HAL.U... |
5,013 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array28_pkg.ads | package Array28_Pkg is
subtype Outer_Type is String (1 .. 8);
subtype Inner_Type is String (1 .. 5);
function F return Inner_Type;
end Array28_Pkg;
|
5,014 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38104a.ada | <gh_stars>1-10
-- C38104A.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.... |
5,015 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 2A/S7/SysConc/TP/TP6/lr-synchro-fifo.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions;
-- FIFO
package body LR.Synchro.Fifo is
function Nom_Strategie return String is
begin
return "Stratègie FIFO";
end Nom_Strategie;
task LectRedTask is
entry Demander_Lecture;
entry Demander_Ecriture;
entry Terminer_Lecture;... |
5,016 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstparse_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
-- with GStreamer.GST_Low_Level.glib_2_0_glib_gquark_h;
with glib;
with System;
with glib;
with glib.Values;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstelement_h;
packag... |
5,017 | ada | 0 | DerickEddington/tarmi | tarmi-evaluation.ads | <filename>tarmi-evaluation.ads
with Tarmi.Environments; use Tarmi.Environments;
package Tarmi.Evaluation is
function Eval (Form : Datum; Env : Environment) return Datum ;
end Tarmi.Evaluation;
|
5,018 | ada | 33 | ytomino/drake | source/tasking/a-cusyqu.adb | <filename>source/tasking/a-cusyqu.adb
package body Ada.Containers.Unbounded_Synchronized_Queues is
use type Implementation.Node_Access;
protected body Queue is
-- overriding
entry Enqueue (New_Item : Queue_Interfaces.Element_Type) when True is
New_Node : constant Implementation.Node_Access :=
... |
5,019 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-arit64.adb | <reponame>orb-zhuchen/Orb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,020 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-wikis/regtests/awa-wikis-tests.adb | -----------------------------------------------------------------------
-- awa-wikis-tests -- Unit tests for wikis module
-- Copyright (C) 2018, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
5,021 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/src/lib/gnat/i-c.adb | <reponame>fabiojna02/OpenCellular
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,022 | ada | 0 | Letractively/ada-asf | src/asf-components-core-factory.adb | <reponame>Letractively/ada-asf
-----------------------------------------------------------------------
-- core-factory -- Factory for Core UI Components
-- Copyright (C) 2009, 2010, 2011, 2012, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
5,023 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-dyntab.adb | <reponame>orb-zhuchen/Orb<filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-dyntab.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
5,024 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c39006g.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c39006g.ada
-- C39006G.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... |
5,025 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-perfect_prefetch.adb |
with Ada.Assertions; use Ada.Assertions;
package body Memory.Perfect_Prefetch is
function Create_Perfect_Prefetch(mem : access Memory_Type'Class)
return Perfect_Prefetch_Pointer is
result : constant Perfect_Prefetch_Pointer := new Perfect_Prefetch_Type;
begin
S... |
5,026 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-zzboio.adb | <reponame>orb-zhuchen/Orb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,027 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Extensible-prime-generator/Ada/extensible-prime-generator.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO, Miller_Rabin;
procedure Prime_Gen is
type Num is range 0 .. 2**63-1; -- maximum for the gnat Ada compiler
MR_Iterations: constant Positive := 25;
-- the probability Pr[Is_Prime(N, MR_Iterations) = Probably_Prime]
-- is 1 for prime N and < 4**... |
5,028 | ada | 0 | mgrojo/swagger-ada | src/server/openapi-servers.ads | -----------------------------------------------------------------------
-- openapi-server -- Rest server support
-- Copyright (C) 2017, 2018, 2020, 2022 <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... |
5,029 | ada | 10 | persan/gdnative_ada | src/gdnative-tokenizer.ads | package GDNative.Tokenizer is
type Character_Array is array (Positive range <>) of Character;
type Tokenizer_State (<>) is private;
function Initialize (Input : String; Separators : Character_Array) return Tokenizer_State;
procedure Skip (State : in out Tokenizer_State);
procedure Skip_Until ... |
5,030 | ada | 8 | flyx/OpenCLAda | tests/cl_test-hello_world.adb | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <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... |
5,031 | ada | 33 | ytomino/drake | source/s-unwsta.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- runtime unit
package System.Unwind.Standard is
pragma Preelaborate;
-- Standard.Constraint_Error / Numeric_Error (s-stalib.ads)
Constraint_Error_Name : aliased constant String (1 .. 17) :=
"CONSTRAINT_ERROR" & Character'Val (0);
Constraint_Error : ... |
5,032 | ada | 33 | ytomino/drake | source/image/required/s-widenu.ads | <reponame>ytomino/drake<filename>source/image/required/s-widenu.ads<gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Wid_Enum is
pragma Pure;
-- required for Enum'Width by compiler (s-widenu.ads)
function Width_Enumeration_8 (
Names : String;
... |
5,033 | ada | 0 | charlesincharge/Intro_to_Ada | threadsafe_containers.adb | package body Threadsafe_Containers is
-- Implementation
protected body Threadsafe_Circbuf is
-- Blocks if full
entry Insert (Value : in Integer)
when (Length < Size) is
begin
Buffer(Tail) := Value;
Tail := (Tail mod Size) + 1;
Length := Length + 1;
... |
5,034 | ada | 2 | landgraf/nanomsg-ada | src/nanomsg-socket_pools.adb | with Nanomsg.Socket;
with Interfaces.C;
package body Nanomsg.Socket_Pools is
procedure Add_Socket (Self : in out Pool_T;
Socket : in Nanomsg.Socket.Socket_T) is
begin
Pool_Container_P.Insert (Self.Pool, Socket.Get_Fd, Socket);
end Add_Socket;
procedure Remove_Socke... |
5,035 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-properties.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,036 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_bounded.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_bounded.adb
-- { dg-do run }
-- { dg-options "-gnatws" }
procedure Test_Bounded is
type Bounded (Length : Natural := 0) is
record
S : String (1..Length);
end record;
type Ref is access all Bounded;
X : Ref := new Bounded;
begin
... |
5,037 | ada | 2 | charlie5/cBound | tier-1/clib/source/thin/clib-binding.ads | <reponame>charlie5/cBound
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
with clib.lconv;
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with System;
package clib.Binding is
function setlocale
(a_a_category : in Interfaces.C.int;
a_a_locale : in Interfa... |
5,038 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1009w.ada | -- CD1009W.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... |
5,039 | ada | 0 | My-Colaborations/ada-ado | src/ado-utils.ads | -----------------------------------------------------------------------
-- ado-utils -- Utility operations for ADO
-- Copyright (C) 2013, 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 Licen... |
5,040 | ada | 0 | Jellix/virtual_clocks | src/clocks.ads | <filename>src/clocks.ads
------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the terms of t... |
5,041 | ada | 0 | mstewartgallus/linted | src/ada-libc/src/libc-time-gnu.ads | <reponame>mstewartgallus/linted<gh_stars>0
-- Copyright 2015 <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 requi... |
5,042 | ada | 1 | faelys/lithium3 | src/lithium-markdown.adb | <filename>src/lithium-markdown.adb
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this... |
5,043 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-wwboio.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,044 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | apps/rfm69_modem/host_message.ads | with Interfaces; use Interfaces;
with STM32GD.Board; use STM32GD.Board;
package Host_Message is
type Packet_Type is array (Unsigned_8 range <>) of Unsigned_8;
procedure Send_Hello;
procedure Send_Packet (Packet: Packet_Type; Length: Unsigned_8);
procedure Send_Heartbeat;
procedure Send_Error_Message (... |
5,045 | ada | 0 | optikos/oasis | source/oasis/program-elements-string_literals.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.String_Literals is
pragma Pure (Program.Elements.String... |
5,046 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Linear-congruential-generator/Ada/linear-congruential-generator-3.ada | with Ada.Text_IO, LCG;
procedure Run_LCGs is
type M31 is mod 2**31;
package BSD_Rand is new LCG(Base_Type => M31, Multiplyer => 1103515245,
Adder => 12345);
package MS_Rand is new LCG(Base_Type => M31, Multiplyer => 214013,
Adder => 2531011, Ou... |
5,047 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-valuti.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,048 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-rtc.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.RTC is
pragma Preelaborate;
---------------
-- Registers --
---------------
----------------------------------
-- RtcM... |
5,049 | ada | 33 | ytomino/drake | source/machine-pc-freebsd/s-termin.ads | pragma License (Unrestricted);
-- runtime unit specialized for POSIX (Darwin, FreeBSD, or Linux)
package System.Termination is
pragma Preelaborate;
-- write to standard error output
procedure Error_Put_Line (S : String);
-- force to abort
procedure Force_Abort;
pragma No_Return (Force_Abort);
... |
5,050 | ada | 11 | charlie5/aShell | source/shell-directory_iteration.ads | with
Ada.Iterator_Interfaces,
Ada.Directories,
Ada.Containers.Vectors;
private
with
Ada.Finalization;
package Shell.Directory_Iteration
is
type Directory is tagged private
with
Default_Iterator => Iterate,
Iterator_Element => Constant_Reference_Type,
Constant_Indexi... |
5,051 | ada | 11 | reznikmm/ada_lsp | source/server/ada_lsp-ada_parser_data.ads | <gh_stars>10-100
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Incr.Documents;
with Incr.Nodes;
with Incr.Parsers.Incremental;
package Ada_LSP.Ada_Parser_Data is
package P renames Incr.Pa... |
5,052 | ada | 2 | charlie5/cBound | tier-1/gmp/source/thin/gmp_c.ads | <filename>tier-1/gmp/source/thin/gmp_c.ads
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
with Interfaces.C.Strings;
with Interfaces.C;
package gmp_c is
-- mp_limb_t
--
subtype mp_limb_t is Interfaces.C.unsigned_long;
type mp_limb_t_array is
array (Interface... |
5,053 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32f103xx/svd/stm32_svd-gpio.ads | -- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.GPIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CRL_MODE0_Field is STM32_SVD.UI... |
5,054 | ada | 0 | xuedong/mini-ada | tests/typing/good/testfile-assign-1.adb | <reponame>xuedong/mini-ada<filename>tests/typing/good/testfile-assign-1.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type R is record A: Integer; end record;
X : access R;
begin
X := null;
end;
|
5,055 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/shader/opengl-program-lit-colored_skinned.adb | <gh_stars>1-10
with
ada.Strings.fixed;
package body openGL.Program.lit.colored_skinned
is
-- Old code kept for reference til new code is tested and stable ...
--
-- overriding
-- procedure define (Self : in out Item)
-- is
-- use openGL.Palette,
-- GL.lean,
-- GL.P... |
5,056 | ada | 11 | reznikmm/ada_lsp | source/server/ada_lsp-completions.adb | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Ada_LSP.Completions is
--------------
-- Document --
--------------
not overriding function Document
(Self : Context) r... |
5,057 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-io.ads | <reponame>brucegua/moocos
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
5,058 | ada | 80 | thindil/steamsky | src/maps.adb | -- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky 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) a... |
5,059 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-io.ads | ------------------------------------
-- Input and Output of 3D objects --
------------------------------------
-- NB : after reading/loading an object or a group of objects, don't
-- forget to use Rebuild_links for linking them together and
-- finding texture id's
with GLOBE_3D.BSP;
with Ada.S... |
5,060 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Statistics-Basic/Ada/statistics-basic-2.ada | <filename>Task/Statistics-Basic/Ada/statistics-basic-2.ada<gh_stars>1-10
with Ada.Text_IO, Ada.Command_Line, Ada.Numerics.Float_Random,
Ada.Numerics.Generic_Elementary_Functions;
procedure Long_Basic_Stat is
package FRG renames Ada.Numerics.Float_Random;
package TIO renames Ada.Text_IO;
type Counter is ra... |
5,061 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c58004c.ada | -- C58004C.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... |
5,062 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Seven-sided-dice-from-five-sided-dice/Ada/seven-sided-dice-from-five-sided-dice-3.ada | <filename>Task/Seven-sided-dice-from-five-sided-dice/Ada/seven-sided-dice-from-five-sided-dice-3.ada
with Ada.Text_IO, Random_57;
procedure R57 is
use Random_57;
type Fun is access function return Mod_7;
function Rand return Mod_7 renames Random_57.Random7;
-- change this to "... renames Random_57.Simpl... |
5,063 | ada | 2 | thindil/tashy2 | src/tcl-strings.ads | -- Copyright (c) 2020-2021 <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/licenses/LICENSE-2.0
--
-- Unless required by applicable law or... |
5,064 | ada | 5 | leo-brewin/ada-lapack | tests/tzsysv.adb | <filename>tests/tzsysv.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;
u... |
5,065 | ada | 20 | charlie5/lace | 1-base/math/source/precision/float/pure/float_math-geometry-d3-modeller-forge.ads | <reponame>charlie5/lace
with
any_Math.any_Geometry.any_d3.any_Modeller.any_Forge;
package float_math.Geometry.d3.Modeller.Forge is new float_Math.Geometry.d3.Modeller.any_Forge;
|
5,066 | ada | 2 | egustafson/sandbox | Ada/DataStructures/LinkedList/intlist.adb | with Ada.Integer_Text_IO, Ada.Text_IO;
use Ada.Integer_Text_IO, Ada.Text_IO;
package body IntList is
function IsInList( List: in T; Number: in Integer ) return Boolean is
begin
return Find_Element( List, Number ) /= null;
end IsInList;
------------------------------------------------------------... |
5,067 | ada | 1 | Fabien-Chouteau/ASFML | main.adb | <reponame>Fabien-Chouteau/ASFML<gh_stars>1-10
-- This file is used to illustrate all
-- the files in the library
-- Root package
with Sf;
-- Used in all modules
with Sf.Config;
-- System module
with Sf.System;
with Sf.System.Types;
with Sf.System.Clock;
with Sf.System.Mutex;
with Sf.System.Randomizer;
with Sf.System... |
5,068 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-graphics-transformable.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any damages arising from the use of this... |
5,069 | ada | 0 | optikos/oasis | source/nodes/program-nodes-null_components.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Null_Components;
with Program.Element_Visitors;
package Program.Nodes.Null_Components is
prag... |
5,070 | ada | 1 | Fabien-Chouteau/Renaissance-Ada | src/misc/Rejuvenation_Lib_Generator/src/main_rejuvenation_lib_generator.adb | with Generator.Match_Pattern_Specific;
procedure Main_Rejuvenation_Lib_Generator is
begin
Generator.Match_Pattern_Specific.Main;
end Main_Rejuvenation_Lib_Generator;
|
5,071 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-hexagon-lit_colored_textured.adb | with
openGL.Geometry.lit_colored_textured,
openGL.Primitive.indexed;
package body openGL.Model.hexagon.lit_colored_textured
is
type Geometry_view is access all Geometry.lit_colored_textured.item'Class;
---------
--- Forge
--
function new_Hexagon (Radius : in Real;
... |
5,072 | ada | 1 | ytomino/vampire | source/vampire-villages-village_io.ads | -- The Village of Vampire by YT, このソースコードはNYSLです
with Serialization;
package Vampire.Villages.Village_IO is
Yaml_Type : constant String := "vampire-village";
procedure IO (
Serializer : not null access Serialization.Serializer;
Name : in String; People : in out Villages.People.Vector);
procedure IO (
Seria... |
5,073 | ada | 0 | balintsoos/LearnAda | gyak/gyak11/hauntedHouse/demo.adb | <reponame>balintsoos/LearnAda<filename>gyak/gyak11/hauntedHouse/demo.adb
with hauntedhouse, tools;
use hauntedhouse;
procedure Demo is
-- Princess
task princess is
entry scare(ghostPos: Position);
end princess;
task body princess is
pos : Position := (1,3);
hp : Natural := 3;
be... |
5,074 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-context.adb | with Asis.Ada_Environments;
with Asis.Compilation_Units;
with Asis.Exceptions;
with Asis.Errors;
with Asis.Implementation;
with GNAT.Directory_Operations;
with Asis_Adapter.Unit;
with a_nodes_h.Support;
package body Asis_Adapter.Context is
procedure Set_Context
(Asis_Context : in Asis.Context;
A_Nodes ... |
5,075 | ada | 30 | jscparker/math_packages | linear_algebra/golub_svd_tst_2.adb |
with Golub_SVD;
with Rectangular_Test_Matrices;
with Ada.Text_IO;
use Ada.Text_IO;
-- Demonstrates use of SVD when No_of_Rows > No_of_Cols.
-- So you have more equations than unknowns in equation solving.
-- (Can't have No_of_Rows < No_of_Cols.)
procedure golub_svd_tst_2 is
type Real is digits 15;
Start ... |
5,076 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-signed_integer_types.ads | <reponame>reznikmm/gela<filename>source/nodes/program-nodes-signed_integer_types.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Prog... |
5,077 | ada | 52 | Watch-Later/NymphRPC | ada/src/nymph_logger.ads | -- nymph_logging.ads - Main package for use by NymphRPC clients (Spec).
--
-- 2017/07/01, <NAME>
-- (c) Nyanko.ws
type LogFunction is not null access procedure (level: in integer, text: in string);
|
5,078 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/afrl-impact-impactpointsearchtask-spark_boundary.ads | package afrl.impact.ImpactPointSearchTask.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
-- This wrapper is only introduced for termination
function Get_SearchLocationID (X : ImpactPointSearchTask) return Int64;
end afrl.impact.ImpactPointSearchTask.SPARK_Boundar... |
5,079 | ada | 1 | charlie5/lace-alire | 3-mid/physics/interface/source/private/bullet/bullet_physics-joint.adb | <gh_stars>1-10
with
bullet_c.Binding,
bullet_physics.Object,
c_math_c.Vector_3,
c_math_c.Matrix_4x4,
c_math_c.Conversion,
Swig,
interfaces.C,
ada.unchecked_Conversion,
ada.unchecked_Deallocation,
ada.Text_IO;
package body bullet_Physics.Joint
is
use c_math_c.Conv... |
5,080 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-random_extrusions.adb | <reponame>ForYouEyesOnly/Space-Convoy
pragma Warnings (Off);
pragma Style_Checks (Off);
-- Algorithm to generate a Sci - Fi - style extruded surface
-- Copyright (c) <NAME> 2006
-- CH - 8810 Horgen
-- SWITZERLAND
-- Permission granted to use the herein contained algorithm for any purpose,
-- provide... |
5,081 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming4.ads | package Renaming4 is
type Big_Array is array (Natural range <>) of Integer;
subtype Index is Natural range 1..4;
subtype My_Array is Big_Array(Index);
A : constant My_Array := (1, 2, 3, 4);
subtype Small is Index range 1..2;
subtype Small_Array is Big_Array(Small);
B : Small_Array renames A(In... |
5,082 | ada | 0 | optikos/oasis | source/oasis/program-elements-null_literals.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
package Program.Elements.Null_Literals is
pragma Pure (Program.Elements.Null_Lit... |
5,083 | ada | 30 | Componolit/libsparkcrypto | src/shared/generic/lsc-sha2-hmac_generic.adb | -------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author <NAME>
-- @date 2019-01-21
--
-- Copyright (C) 2018-2019 Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- m... |
5,084 | ada | 0 | sebsgit/textproc | src/opencl/gpuimageproc.adb | with opencl; use opencl;
with cl_objects; use cl_objects;
with PixelArray.Gpu;
with Interfaces.C;
with System;
with System.Address_To_Access_Conversions;
with ImageFilters;
with Ada.Unchecked_Deallocation;
with Ada.Characters.Latin_1;
with Ada.Text_IO;
package body GpuImageProc is
NL: constant Character := Ada.Cha... |
5,085 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/xeinfo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT SYSTEM UTILITIES --
-- --
-- ... |
5,086 | ada | 0 | HeisenbugLtd/cache-sim | src/caches-access_patterns-linear.adb | <filename>src/caches-access_patterns-linear.adb
------------------------------------------------------------------------------
-- Copyright (C) 2012-2020 by Heisenbug Ltd.
--
-- 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 ... |
5,087 | ada | 4 | ytomino/gmp-ada | source/gmp-q.ads | with GMP.Z;
private with Ada.Finalization;
private with Ada.Streams;
package GMP.Q is
pragma Preelaborate;
type MP_Rational is private;
function Num (X : MP_Rational) return Z.MP_Integer;
function Den (X : MP_Rational) return Z.MP_Integer;
-- formatting
function Image (Value : MP_Rational; Base : Number_B... |
5,088 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/e28005d.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/e28005d.ada<gh_stars>1-10
PRAGMA PAGE;
-- E28005D.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. Governme... |
5,089 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/nordic/nrf52/nrf52840/s-bbbopa.ads | <filename>bb-runtimes/arm/nordic/nrf52/nrf52840/s-bbbopa.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,090 | ada | 0 | jwarwick/aoc_2019_ada | day01/src/day1.ads | -- AOC, Day 1
package Day1 is
type Mass is new Natural;
procedure load_modules(filename : in String);
function fuel_for_modules return Mass;
function total_fuel return Mass;
private
function fuel_required(weight : in Mass) return Integer;
function recursive_fuel_required(weight : in Mass) return Mass;
... |
5,091 | ada | 0 | sebsgit/textproc | src/opencl/cl_objects.adb | <filename>src/opencl/cl_objects.adb<gh_stars>0
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with System.Address_To_Access_Conversions;
package body cl_objects is
procedure Find_Gpu_Device(platf: out Platform_ID; dev: out Device_ID) is
cl_code: opencl.Status;
platform_ids: constant opencl.Platforms... |
5,092 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Hash-from-two-arrays/Ada/hash-from-two-arrays.ada | <filename>Task/Hash-from-two-arrays/Ada/hash-from-two-arrays.ada
with Ada.Strings.Hash;
with Ada.Containers.Hashed_Maps;
with Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Hash_Map_Test is
function Equivalent_Key (Left, Right : Unbounded_String) return Boolean is
begin
retur... |
5,093 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Accumulator-factory/Ada/accumulator-factory-3.ada | package body Accumulator is
-- The accumulator lives through three states. It is in Virgin_State
-- before any use of The_Function. It changes to Integer_State or
-- Float_State, according to the input type used. The accumulation is
-- memorized in variable I or F, according to the state. Float_State,
-- once rea... |
5,094 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-logs.adb | <filename>src/ada-core/src/linted-logs.adb<gh_stars>0
-- Copyright 2016 <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
--
-- U... |
5,095 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/common/s-memset.adb | <reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/common/s-memset.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
5,096 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/specs/aggr6.ads | <filename>msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/specs/aggr6.ads
-- { dg-do compile }
package Aggr6 is
type B15_T is mod 2 ** 15;
for B15_T'Size use 15;
for B15_T'Alignment use 1;
type B17_T is mod 2 ** 17;
for B17_T'Size use 17;
for B17_T'Alignment use 1;
type Rec_T... |
5,097 | ada | 33 | ytomino/drake | source/strings/a-stzbou.ads | pragma License (Unrestricted);
with Ada.Strings.Bounded_Wide_Wide_Strings.Functions.Maps;
with Ada.Strings.Wide_Wide_Maps;
package Ada.Strings.Wide_Wide_Bounded is
pragma Preelaborate;
generic
Max : Positive; -- Maximum length of a Bounded_String
package Generic_Bounded_Length is
-- for renaming... |
5,098 | ada | 4 | laurentzh/CHIP-8 | src/inputs.adb | <reponame>laurentzh/CHIP-8
with STM32.Board; use STM32.Board;
with HAL.Touch_Panel; use HAL.Touch_Panel;
package body Inputs is
procedure Update_Pressed_Keys(Keys : in out Keys_List) is
State : constant TP_State := Touch_Panel.Get_All_Touch_Points;
begin
for I in State'First .. State'Last loop
... |
5,099 | ada | 8 | darkestkhan/lumen | src/lumen-binary-endian.adb | <reponame>darkestkhan/lumen
-- Lumen.Binary.Endian -- Parent package for big- vs. little-endian
-- byte-ordering services
--
--
-- <NAME>, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or dis... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.