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 |
|---|---|---|---|---|---|
8,600 | ada | 0 | twinbee/dekkerAda | as1.adb | <gh_stars>0
---------------------------------------------------------------
-- Author: <NAME> ---
-- Class: CSC410 Burgess ---
-- Date: 09-01-04 Modified: 9-05-04 ---
-- Desc: Assignment 1:DEKKER's ALGORITHM ---
-- a simple implementation of ---
-- Dek... |
8,601 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-wikis/src/awa-wikis-beans.ads | <filename>awa/plugins/awa-wikis/src/awa-wikis-beans.ads
-----------------------------------------------------------------------
-- awa-wikis-beans -- Beans for module wikis
-- Copyright (C) 2015, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
8,602 | ada | 20 | charlie5/lace | 1-base/xml/source/xml-writer.adb | with
ada.unchecked_Deallocation;
package body XML.Writer
is
Depth: Natural;
procedure Free is new ada.Unchecked_Deallocation (Attributes_t,
Attributes_view);
procedure Start_Document (F: in ada.Text_IO.File_Type)
is
begin
ada.Text_... |
8,603 | ada | 4 | faelys/gela-asis | source/asis/xasis/xasis-static-iter.adb | <reponame>faelys/gela-asis<filename>source/asis/xasis/xasis-static-iter.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler ... |
8,604 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/invalid1.adb | <gh_stars>1-10
-- { dg-do run }
-- { dg-options "-gnatws -gnatVa" }
pragma Initialize_Scalars;
procedure Invalid1 is
X : Boolean;
A : Boolean := False;
procedure Uninit (B : out Boolean) is
begin
if A then
B := True;
raise Program_Error;
end if;
end;
begin
-- first, check that init... |
8,605 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Call-a-function/Ada/call-a-function-5.ada | Positional := H(A, F'Access);
Named := H(Int => A, Fun => F'Access);
Mixed := H(A, Fun=>F'Access);
|
8,606 | ada | 0 | Fabien-Chouteau/sdlada | src/sdl-video-windows.ads | <reponame>Fabien-Chouteau/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... |
8,607 | ada | 89 | treggit/sdlada | src/sdl-video-renderers.adb | --------------------------------------------------------------------------------------------------------------------
-- 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 damages
-- arising from the... |
8,608 | ada | 1 | faelys/natools-web | src/natools-web-error_pages.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
8,609 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/uintp.ads | <filename>tools-src/gnu/gcc/gcc/ada/uintp.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,610 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network.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... |
8,611 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Break-OO-privacy/Ada/break-oo-privacy-2.ada | <filename>Task/Break-OO-privacy/Ada/break-oo-privacy-2.ada
with OO_Privacy, Ada.Unchecked_Conversion, Ada.Text_IO;
procedure OO_Break_Privacy is
type Hacker_Stuff is tagged record
Password: OO_Privacy.Password_Type := "?<PASSWORD>";
end record;
function Hack is new Ada.Unchecked_Conversion
(Sourc... |
8,612 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41103a.ada | -- C41103A.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... |
8,613 | ada | 20 | charlie5/lace | 1-base/math/applet/test/suite/math_tests-linear_algebra_2d.adb | <filename>1-base/math/applet/test/suite/math_tests-linear_algebra_2d.adb
with
Ahven,
float_Math.Algebra.linear.d2;
with Ada.Text_IO; use Ada.Text_IO;
package body math_Tests.linear_Algebra_2d
is
use Ahven,
float_Math;
function almost_Equal (Left, Right : in Real) return Boolean
is
... |
8,614 | ada | 0 | zorodc/ada-http1 | http-request.ads | <reponame>zorodc/ada-http1
package HTTP.Request with SPARK_Mode => On
is
package Sliced is
type Header is record
Key : Indexes;
Val : Indexes;
end record;
subtype Header_Index is Natural range 1 .. 20;
type Header_List is array (Header_Index) of Header;
type Request_Line is record
Kind ... |
8,615 | ada | 1 | leo-brewin/adm-bssn-numerical | support/support-strings.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Characters.Handling;
-- with Ada.Characters.Latin_1;
package body Support.Strings is
package Real_IO i... |
8,616 | ada | 12 | mgrojo/protobuf | source/runtime/pb_support-memory_streams.adb | <reponame>mgrojo/protobuf<gh_stars>10-100
-- 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 in the Software without restriction, including without limi... |
8,617 | ada | 0 | iyan22/AprendeAda | ejercicios2/matrices.ads | package matrices is
type Matriz_De_Enteros is array (Integer range <>, Integer range <>) of Integer;
type Matriz_De_Reales is array (Integer range <>, Integer range <>) of Float;
type Matriz_De_Booleanos is array (Integer range <>, Integer range <>) of Boolean;
type Matriz_De_Caracteres is array (Integer range ... |
8,618 | ada | 65 | PThierry/ewok-kernel | src/arch/Ada/types-c.adb |
package body types.c
with spark_mode => off
is
function len (s : c_string) return natural
is
len : natural := 0;
begin
for i in s'range loop
exit when s(i) = nul;
len := len + 1;
end loop;
return len;
end len;
procedure to_ada
(dst : out string;
... |
8,619 | ada | 1 | jnguyen1098/legacy-software | anagram-generator-ada/src/scramble_with_harness.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Assertions; use Ada.Assertions;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Ada.Calendar; use Ada.Calendar;
with Ada.Directories; use Ada.Directories;
procedure Sc... |
8,620 | ada | 0 | Letractively/ada-gen | src/gnat/stringt.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,621 | ada | 1 | persan/A-gst | src/gstreamer-gst_low_level.ads | -- =============================================================================
-- This package herachy is an exact 1:1 mapping to the gstreamer header-files
-- It's generated with the -fdump-ada-spec flag to gcc and patched in
-- Two phases.
-- Phase 1: Automatic bulk change using scripts.
-- Phase 2: Manual c... |
8,622 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_14.ads | <reponame>Tim-Tom/project-euler<filename>Ada/inc/Problem_14.ads
package Problem_14 is
procedure Solve;
end Problem_14;
|
8,623 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95095e.ada | -- C95095E.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... |
8,624 | ada | 0 | Fabien-Chouteau/bb_pico_bsp | src/bb_pico_bsp-stmpe811.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
8,625 | ada | 0 | devkw/Amass | resources/scripts/archive/archiveit.ads | <reponame>devkw/Amass<filename>resources/scripts/archive/archiveit.ads<gh_stars>0
-- Copyright 2017 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "ArchiveIt"
type = "archive"
function start()
setratelimit(1)
end
function vert... |
8,626 | ada | 4 | davidkristola/vole | kv-avm-vole_lex.adb |
with Ada.Text_IO;
use Ada.Text_IO;
package body kv.avm.Vole_Lex is
procedure Report is
begin
Put_Line(yytext);
end Report;
procedure Inc_Line is
begin
Line_Number := Line_Number + 1;
end Inc_Line;
function YYLex return Token is
subtype short is integer range -32768..32767;
yy_act ... |
8,627 | ada | 0 | optikos/oasis | source/oasis/program-compilation_units.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Library_Items;
with Program.Library_Unit_Bodies;
with Program.Library_Unit_Declarations;
with Program.Subunits;
package body Program.Comp... |
8,628 | ada | 89 | treggit/sdlada | src/sdl-rwops.adb | <gh_stars>10-100
--------------------------------------------------------------------------------------------------------------------
-- 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 damages
-- ... |
8,629 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simple_expression_range.ads | <reponame>ouankou/rose
package Simple_Expression_Range is
type Constrained_Type is new Integer range 1..10;
end Simple_Expression_Range;
|
8,630 | ada | 26 | damaki/libkeccak | src/x86_64/SSE2/keccak-parallel_keccak_1600-rounds_12.ads | -------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of s... |
8,631 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/unzip/bzip2.adb | -- See bzip2.ads for legal stuff
--
-- Documentation pointers:
--
-- Burrows - Wheeler transform
-- http://en.wikipedia.org/wiki/Burrows%E2%80%93Wheeler_transform
-- MTF Move - To - Front
-- http://fr.wikipedia.org/wiki/Move - To - Front
--
-- Translated on 20 - Oct - 2009 by (New) P2Ada v. 15 - No... |
8,632 | ada | 13 | GauravPoosarla/FizzBuzz-Hacktoberfest-2021 | Ada/fizzbuzz.ada | /* Author - <NAME> */
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
procedure Hello is
Div_By_3 : Boolean := false;
Div_By_5 : Boolean := false;
begin
For_Loop :
for I in Integer range 1 .. 100 loop
Div_By_3 := I mod 3 = 0;
Div_By_5 := I mod 5 = 0;
... |
8,633 | ada | 33 | ytomino/drake | source/numerics/a-colors.ads | pragma License (Unrestricted);
-- extended unit
with Ada.Numerics;
package Ada.Colors is
-- Color spaces.
pragma Pure;
subtype Brightness is Float range 0.0 .. 1.0;
subtype Hue is Float range 0.0 .. Float'Pred (2.0 * Numerics.Pi);
type RGB is record
Red : Brightness;
Green : Brightness;
... |
8,634 | ada | 0 | DragonDriver/ann-benchmarks | definitions/algos.yaml.adb | float:
euclidean:
adb-async:
docker-tag: ann-benchmarks-adb-async
module: ann_benchmarks.algorithms.adb
constructor: AnalyticDBAsync
base-args: ["@dataset"]
run-groups:
base:
args: [["gp-bp19e1yl22d85gqgxo-master.gpdbmaster.rds.aliyuncs.com"], [1, 2, 3]]
q... |
8,635 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_parallel_xof.ads | <filename>src/common/keccak-generic_parallel_xof.ads
-------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the followi... |
8,636 | ada | 3 | charlie5/aIDE | applet/test_name_res/launch_test.adb | with
Libadalang.Analysis,
Ada.Text_IO;
procedure launch_Test
is
use Ada.Text_IO;
package LAL renames Libadalang.Analysis;
Ctx : LAL.Analysis_Context := LAL.Create;
Unit : LAL.Analysis_Unit := LAL.Get_From_File (Ctx, "test_package.ads", With_Trivia => False);
begin
LAL.Print (Unit);
LAL... |
8,637 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/buffer/opengl-buffer-general.ads | <filename>3-mid/opengl/source/lean/buffer/opengl-buffer-general.ads<gh_stars>10-100
generic
type base_Object is new openGL.Buffer.Object with private;
type Index is range <>;
type Element is private;
type Element_Array is array (Index range <>) of Element;
package openGL.Buffer.general
--
... |
8,638 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/wisitoken-generate-lr-lalr_generate.adb | <filename>.emacs.d/elpa/wisi-2.1.1/wisitoken-generate-lr-lalr_generate.adb<gh_stars>0
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2002 - 2005, 2008 - 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redist... |
8,639 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testtimer.adb |
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as published by the ... |
8,640 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/unzip/zip_streams.ads | <filename>Sources/Globe_3d/unzip/zip_streams.ads<gh_stars>1-10
-- Contributed by ITEC - NXP Semiconductors
-- June 2008
--
-- The Zip_Streams package defines an abstract stream
-- type, Root_Zipstream_Type, with name, time and an index for random access.
-- In addition, this package provides two ready - to - use d... |
8,641 | ada | 52 | onox/orka | orka_plugin_terrain/src/orka-features-terrain-spheres.adb | <filename>orka_plugin_terrain/src/orka-features-terrain-spheres.adb
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 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 th... |
8,642 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/boolean_expr1.adb | -- PR middle-end/36554
-- Origin: <NAME> <<EMAIL>>
-- { dg-do compile }
-- { dg-options "-O2" }
package body Boolean_Expr1 is
function Long_Float_Is_Valid (X : in Long_Float) return Boolean is
Is_Nan : constant Boolean := X /= X;
Is_P_Inf : constant Boolean := X > Long_Float'Last;
Is_M_Inf : con... |
8,643 | ada | 1 | irion7/aflex-ayacc-mirror | aflex/src/alsys_dos/mainb.ada | <filename>aflex/src/alsys_dos/mainb.ada<gh_stars>1-10
-- TITLE main body
-- AUTHOR: <NAME> (UCI)
-- DESCRIPTION driver routines for aflex. Calls drivers for all
-- high level routines from other packages.
-- $Header: /co/ua/self/arcadia/aflex/ada/src/RCS/mainB.a,v 1.23 90/10/15 20:00:28 self Exp Locker: self $
--***... |
8,644 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-sercom.ads | <reponame>Fabien-Chouteau/samd51-hal<filename>src/svd/sam_svd-sercom.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.SERCOM is
pragma Preelaborate;
---------------
-- Regis... |
8,645 | ada | 2 | stcarrez/hestia | src/hestia-time.adb | <filename>src/hestia-time.adb
-----------------------------------------------------------------------
-- hestia-time -- Date and time information
-- Copyright (C) 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
8,646 | ada | 0 | JeremyGrosser/synack_misc | src/text_format.ads | --
-- Copyright (C) 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.Real_Time_Clock; use HAL.Real_Time_Clock;
with HAL;
package Text_Format is
subtype Number_Base is Positive range 2 .. 16;
function From_Natural
(N : Natural;
Base : Number_Base := 10)
retu... |
8,647 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_package_associations.adb | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Formal_Package_Associations is
function Create
(Formal_Parameter : Program.Elements.Expressi... |
8,648 | ada | 1 | charlie5/lace-alire | 1-base/math/applet/test/suite/math_tests-geometry_2d.adb | <reponame>charlie5/lace-alire
with
Ahven,
float_Math.Geometry.d2;
package body math_Tests.Geometry_2d
is
use Ahven,
float_Math;
function almost_Equal (Left, Right : in Real) return Boolean
is
Tolerance : constant := 0.000_001;
begin
return abs (Left - Right) <= Tolerance;
... |
8,649 | ada | 4 | Lucretia/raytracer_challenge | src/rtch.ads | <filename>src/rtch.ads
package RTCH with
Pure is
end RTCH;
|
8,650 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-contt-sd.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
8,651 | ada | 2 | egustafson/sandbox | Ada/DataStructures/LinkedList/main.adb | with IntList, Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
List : IntList.T;
begin
for I in 1 .. 20 loop
IntList.Insert( List, I );
end loop;
for I in 1 .. 20 loop
if ( I mod 3 = 0 ) then
IntList.Remove( List, I );
end if;
end loop;
IntList.Print( List );
Put_Line... |
8,652 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Use-another-language-to-call-a-function/Ada/use-another-language-to-call-a-function-3.ada | gcc -c main.c
gnatmake -c exported.adb
gnatbind -n exported.ali
gnatlink exported.ali main.o -o main
|
8,653 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/generic_disp.adb | <reponame>TUDSSL/TICS
-- { dg-do run }
with Generic_Disp_Pkg; use Generic_Disp_Pkg;
procedure Generic_Disp is
I : aliased Integer := 0;
D : Iface'Class := Dispatching_Constructor (DT'Tag, I'access);
begin
null;
end Generic_Disp;
|
8,654 | ada | 20 | charlie5/lace | 4-high/gel/source/joint/gel-any_joint.adb | <reponame>charlie5/lace<gh_stars>10-100
with
physics.Object;
package body gel.any_Joint
is
use Math;
---------
-- Forge
--
procedure define (Self : access Item; in_Space : in std_physics.Space.view;
Sprite_A, Sprite_B : access gel.Sprit... |
8,655 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/tms570-leds/src/tms570.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
8,656 | ada | 0 | My-Colaborations/ada-el | src/el-contexts-default.ads | <reponame>My-Colaborations/ada-el
-----------------------------------------------------------------------
-- EL.Contexts -- Default contexts for evaluating an expression
-- Copyright (C) 2009, 2010, 2011, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
8,657 | ada | 1 | TNO/Rejuvenation-Ada | src/rejuvenation-indentation.adb | <gh_stars>1-10
with Ada.Assertions; use Ada.Assertions;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Langkit_Support.Text; use Langkit_Support.Text;
package body Rejuvenation.Indentation is
function Node_On_Separate_Lines (Node : Ada_Node'Class) return Bo... |
8,658 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array7.adb | -- { dg-do compile }
-- { dg-options "-O -gnatp -fdump-tree-optimized" }
package body Array7 is
package body Range_Subtype is
function Get_Arr (Nbr : My_Range) return Arr_Acc is
begin
return new Arr (1 .. Nbr);
end;
end;
package body Range_Type is
function Get_Arr (Nbr : My_... |
8,659 | ada | 33 | ytomino/drake | source/directories/machine-pc-freebsd/s-nadise.ads | <filename>source/directories/machine-pc-freebsd/s-nadise.ads
pragma License (Unrestricted);
-- implementation unit specialized for Darwin (or FreeBSD)
with C.dirent;
with C.sys.dirent;
package System.Native_Directories.Searching is
pragma Preelaborate;
subtype Directory_Entry_Access is C.sys.dirent.struct_diren... |
8,660 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses.adb | <reponame>JeremyGrosser/notcursesada
--
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
package body Notcurses is
function "+"
(Left, Right : Coordinate)
return Coordinate
is ((Y => Left.Y + Right.Y, X => Left.X + Right.X));
function "-"
(Left, Right : C... |
8,661 | ada | 0 | jrfondren/getr-ada | getr.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with GNAT.OS_Lib;
with Ada.Command_Line; use Ada.Command_Line;
with System;
with Ada.Unchecked_Conversion;
with Build_Options;
procedure Getr is
t... |
8,662 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | host/stm32gd-i2c-peripheral.ads | <reponame>ekoeppen/STM32_Generic_Ada_Drivers
with STM32_SVD; use STM32_SVD;
generic
I2C : Natural;
package STM32GD.I2C.Peripheral is
pragma Preelaborate;
procedure Init;
function Master_Transmit (Address : I2C_Address; Data : Byte;
Restart : Boolean := False) return Boolean;
function Master_Re... |
8,663 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Set-puzzle/Ada/set-puzzle-2.ada | with Ada.Numerics.Discrete_Random;
package body Set_Puzzle is
package Rand is new Ada.Numerics.Discrete_Random(Three);
R: Rand.Generator;
function Locate(Some: Cards; C: Card) return Natural is
-- returns index of card C in Some, or 0 if not found
begin
for I in Some'Range loop
if C = Some(... |
8,664 | ada | 24 | svn2github/matreshka | tools/ayacc/examples/calc/driver.adb | with Calc, calc_lex.IO, Text_IO;
procedure driver is
in_file_name: string(1..80);
last : natural;
begin
Text_IO.Put("Enter input file: ");
Text_IO.Get_Line(in_file_name, last);
calc_lex.IO.open_input(in_file_name(1..last));
--calc_lex.IO.open_input("/dev/tty");
calc_lex.IO.create_output;
... |
8,665 | ada | 0 | fintatarta/eugen | src/Utilities/tokenize-token_vectors.adb | pragma Ada_2012;
package body Tokenize.Token_Vectors is
---------------
-- To_Vector --
---------------
function To_Vector (X : Token_Array) return Vector is
Result : Vector;
begin
for Tk of X loop
Result.Append (To_String (Tk));
end loop;
return Result;
end To_Vect... |
8,666 | ada | 24 | svn2github/matreshka | source/web/fastcgi/fastcgi-replies.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
8,667 | ada | 15 | jquorning/dynamo | src/gen-model-projects.ads | <filename>src/gen-model-projects.ads
-----------------------------------------------------------------------
-- gen-model-projects -- Projects meta data
-- Copyright (C) 2011, 2012, 2013, 2014, 2017, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License"... |
8,668 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/intrin_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with stddef_h;
with Interfaces.C.Strings;
package intrin_h is
-- unsupported macro: WINAPI __stdcall
--*
-- * This file has no copyright assigned and is placed in the Public Domain.
-- * This file is part of the m... |
8,669 | ada | 24 | svn2github/matreshka | source/league/codecs/matreshka-internals-text_codecs-iso88595.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
8,670 | ada | 3 | albinjal/ada_basic | Lab4/lab4a.adb | with Date_Package; use Date_Package;
with Ada.Text_IO; use Ada.Text_IO;
procedure Lab4a is
type Dates is array (1..10) of Date_Type;
procedure Test_Get(Date: out Date_Type) is
begin
loop
begin
Get(Date);
exit;
exception
when YEAR_ERROR => Put_Line("FEL: YEAR_ERROR");
when MONTH_ERR... |
8,671 | ada | 33 | ytomino/drake | source/streams/machine-pc-freebsd/s-naioso.adb | with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Synchronous_Control;
with C.errno;
with C.netinet.in_h;
with C.unistd;
package body System.Native_IO.Sockets is
use Ada.Exception_Identification.From_Here;
use type C.... |
8,672 | ada | 19 | jquorning/ada-security | src/security-oauth-file_registry.adb | -----------------------------------------------------------------------
-- security-oauth-file_registry -- File Based Application and Realm
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
8,673 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-tasatt.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
8,674 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization9.ads | with GNAT.Strings; use GNAT.Strings;
package Loop_Optimization9 is
type File_Descriptor is new Integer;
procedure Create_Temp_File_Internal
(FD : out File_Descriptor;
Name : out String_Access);
subtype Argument_List is String_List;
subtype Argument_List_Access is String_List_Access;
fu... |
8,675 | ada | 0 | VMika/Des_Ada | Des_Ada/src/concrete_handler/p_stephandler-feistelhandler.ads | <reponame>VMika/Des_Ada
WITH P_StepHandler;
USE P_StepHandler;
with P_StructuralTypes;
use P_StructuralTypes;
package P_StepHandler.FeistelHandler is
type T_BinaryIntegerArray is array (0..15) of T_BinaryUnit (1..4);
type T_SBox is array (0..3, 0..15) of Integer;
type T_SBoxArray is array (1..8)... |
8,676 | ada | 5 | docandrew/troodon | src/util.adb | <reponame>docandrew/troodon
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with GNAT.OS_Lib;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
package body util is
---------------------------------------------------------------------------
-- checkFatal... |
8,677 | ada | 0 | reznikmm/declarative-regions | source/regions/regions-shared_hashed_maps.ads | <gh_stars>0
with Ada.Finalization;
with Ada.Iterator_Interfaces;
generic
type Key_Type is private;
type Element_Type is private;
type Hash_Type is mod <>;
type Change_Count is mod <>;
with function Hash (Key : Key_Type) return Hash_Type;
with function Equivalent_Keys (Left, Right : Key_Type) return ... |
8,678 | ada | 0 | yrashk/ada-util | src/base/log/util-log-appenders.ads | <reponame>yrashk/ada-util
-----------------------------------------------------------------------
-- util-log-appenders -- Log appenders
-- Copyright (C) 2001 - 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in co... |
8,679 | ada | 33 | ytomino/drake | source/numerics/a-nummt1.adb | <reponame>ytomino/drake
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Random_Initiators;
with System.Storage_Elements;
package body Ada.Numerics.MT19937 is
use type Interfaces.Unsigned_32;
use type System.Storage_Elements.Storage_Count;
subtype Word_Unsigned is System.Long_Long_Inte... |
8,680 | ada | 25 | My-Colaborations/ada-keystore | src/keystore-io-refs.adb | -----------------------------------------------------------------------
-- keystore-io-refs -- IO stream reference holder
-- Copyright (C) 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 with th... |
8,681 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_perfect_prefetch.adb |
with Memory.Perfect_Prefetch;
separate (Parser)
procedure Parse_Perfect_Prefetch(parser : in out Parser_Type;
result : out Memory_Pointer) is
mem : Memory_Pointer := null;
begin
Parse_Memory(parser, mem);
if mem = null then
Raise_Error(parser, "memory not set in... |
8,682 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 03/P03_Crea_Tarea/src/crea_tarea.adb | with Tareas;
use Tareas;
procedure Crea_Tarea is
--T1 : Tarea_1;
T2 : Tarea_2;
T3 : Tarea_3;
begin
-- Insert code here.
null;
end Crea_Tarea;
|
8,683 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94002g.ada | <reponame>best08618/asylo
-- C94002G.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... |
8,684 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c46051b.ada | -- C46051B.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... |
8,685 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3413c.ada | -- CE3413C.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... |
8,686 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-messages-lmcptask-uniqueautomationrequest-spark_boundary.ads | <reponame>pat-rogers/OpenUxAS<filename>src/ada/src/uxas-messages-lmcptask-uniqueautomationrequest-spark_boundary.ads
with Common_Formal_Containers; use Common_Formal_Containers;
with afrl.cmasi.AutomationRequest.SPARK_Boundary; use afrl.cmasi.AutomationRequest.SPARK_Boundary;
with afrl.impact.ImpactAutomationRequest; u... |
8,687 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/adaracer_v1/hil/hil-gpio.adb | -- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with STM32.GPIO; use STM32.GPIO;
with STM32.Device;
with STM32.Board;
-- @summary
-- target-specific mapping of HIL for GPIO in Pixracer v1 board
package body HI... |
8,688 | ada | 0 | usainzg/EHU | PMOO/ADA/LAB2/PARTE_1/crear_sublista_pares.ads | with Es_Par;
with Listas;
procedure Crear_Sublista_Pares is new Listas.Crear_Sublista(Cuantos => 4, Filtro => Es_Par); |
8,689 | ada | 32 | robdaemon/AdaYaml | Parser_Tools/src/implementation/text.adb | <gh_stars>10-100
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
pragma No_Strict_Aliasing;
with Ada.Exceptions;
with Ada.Strings.Hash;
with Ada.Strings.Fixed;
with Ada.Strings.Unbounded;
with Ada.Unchecked_Deallocation;
package body Text is
typ... |
8,690 | ada | 0 | TNO/Rejuvenation-Ada | tests/src/assert_ast.adb | with AUnit.Assertions; use AUnit.Assertions;
with Libadalang.Analysis; use Libadalang.Analysis;
with Rejuvenation.Match_Patterns; use Rejuvenation.Match_Patterns;
with Rejuvenation.Simple_Factory; use Rejuvenation.Simple_Factory;
package body Assert_AST is
function Assert_AST
(AST : String;... |
8,691 | ada | 1 | stcarrez/babel | src/babel-streams.ads | <reponame>stcarrez/babel<gh_stars>1-10
-----------------------------------------------------------------------
-- babel-Streams -- Stream management
-- Copyright (C) 2014, 2015, 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
8,692 | ada | 70 | Lucretia/bare_bones | src/pc/multiboot.ads | <reponame>Lucretia/bare_bones<filename>src/pc/multiboot.ads
-- -*- Mode: Ada -*-
-- Filename : multiboot.ads
-- Description : Provides access to the multiboot information from GRUB
-- Legacy and GRUB 2.
-- Author : <NAME>
-- Created On : Fri J... |
8,693 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/unzip/zip-crc.adb | <reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10
package body Zip.CRC is
CRC32_Table : array (Unsigned_32'(0) .. 255) of Unsigned_32;
procedure Prepare_table is
-- CRC - 32 algorithm, ISO - 3309
Seed : constant := 16#EDB88320#;
l : Unsigned_32;
begin
for i in CRC32_Table'Range lo... |
8,694 | ada | 17 | jrmarino/ravensource | bucket_C3/adacontrol/patches/patch-src_project__file-factory.ads | When adacontrol can build with the ravenports base compiler
delete this patch.
--- src/project_file-factory.ads.orig 2019-10-30 08:19:42 UTC
+++ src/project_file-factory.ads
@@ -36,10 +36,10 @@
-- To have full support of GNAT .gpr project files,
-- uncomment the following lines :
-with Project_File.Factory_Full;
-... |
8,695 | ada | 2 | mgrojo/lsystem-editor | src/model/l_system/lse-model-l_system-l_system.ads | -------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and... |
8,696 | ada | 20 | charlie5/lace | 4-high/gel/applet/demo/distributed/gel_demo_services.ads | <gh_stars>10-100
with
gel.remote.World;
package gel_demo_Services
--
-- Provides RCI services.
--
is
pragma remote_call_Interface;
function World return gel.remote.World.view;
end gel_demo_Services;
|
8,697 | ada | 22 | FardaleM/metalang | out/affect.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 affect is
type stringptr is access all char_array;
procedure PInt(i : in Integer) is
begin
String'Write (Text_Streams.Stre... |
8,698 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-tags/src/awa-tags-beans.ads | -----------------------------------------------------------------------
-- awa-tags-beans -- Beans for the tags module
-- Copyright (C) 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 License... |
8,699 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/byte_reader.adb | <gh_stars>1-10
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Your SKilL Ada Binding --
-- \__ \ ' <| | | |__ <<debug>> --
-- |___/_|\_\_|_|____| by: <<some developer>> ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.