id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
3,100 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/shader/opengl-variable.ads | with
GL;
package openGL.Variable
--
-- Models a shader variable.
--
is
type Item is abstract tagged private;
---------
-- Forge
--
procedure define (Self : in out Item);
procedure destroy (Self : in out Item);
private
type Item is abstract tagged
record
gl_Variable :... |
3,101 | ada | 60 | RREE/ada-util | src/sys/streams/util-streams-texts-wtr.ads | -----------------------------------------------------------------------
-- util-streams-texts-tr -- Text translation utilities on streams
-- Copyright (C) 2010, 2011, 2012, 2015, 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not us... |
3,102 | ada | 0 | skill-lang/adaCommon | src/skill-internal-parts.adb | <filename>src/skill-internal-parts.adb
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ file partitioning info --
-- |___/_|\_\_|_|____| by: <NAME> ... |
3,103 | ada | 0 | reznikmm/markdown | sources/md/markdown-inline_parsers.ads | <reponame>reznikmm/markdown<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Containers.Vectors;
with League.Strings;
with League.String_Vectors;
with Markdown.Link_Registers;
package Markdown.In... |
3,104 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-usbfsh.ads | <filename>arch/ARM/NXP/svd/lpc55s6x/nxp_svd-usbfsh.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 Syst... |
3,105 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp6/exemples_memoire_dynamique.adb | with Piles;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation; --// Pour libérer la mémoire allouée dynamiquement
procedure Exemples_Memoire_Dynamique is
type T_Pointeur_Integer is access Integer;
procedure Free
is new Ada.Unchecked_Deallocation (Integer, T_Pointeur_Integer);
-- o... |
3,106 | ada | 5 | docandrew/troodon | include/gid/gid-decoding_pnm.ads | -- Portable pixmap format (PPM)
-- Portable graymap format (PGM)
-- Portable bitmap format (PBM)
private package GID.Decoding_PNM is
--------------------
-- Image decoding --
--------------------
generic
type Primary_color_range is mod <>;
with procedure Set_X_Y (x, y: Natural);
with procedure... |
3,107 | ada | 286 | auzkok/libagar | ada/core/agar-timer.adb | ------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . T I M E R --
-- B o d y --
-- ... |
3,108 | ada | 9 | alire-project/clic | example/src/clic_ex-commands-tty.adb | with CLIC.TTY; use CLIC.TTY;
with Ada.Text_IO; use Ada.Text_IO;
package body CLIC_Ex.Commands.TTY is
package TTY renames CLIC.TTY;
--------------------
-- Setup_Switches --
--------------------
overriding
procedure Setup_Switches
(Cmd : in out Instance;
Config : in out CLIC.Subcomman... |
3,109 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-dirval.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,110 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/restrict.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,111 | ada | 2 | damaki/dw1000-rssi-tester | receiver/src/packet_receiver.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2017 <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, inc... |
3,112 | ada | 0 | djgoku/RosettaCodeData | Task/Best-shuffle/Ada/best-shuffle.ada | with Ada.Text_IO;
procedure Best_Shuffle is
function Best_Shuffle(S: String) return String is
T: String(S'Range) := S;
Tmp: Character;
begin
for I in S'Range loop
for J in S'Range loop
if I /= J and S(I) /= T(J) and S(J) /= T(I) then
Tmp := T(I);
... |
3,113 | ada | 4 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-adb.d/input.adb | <gh_stars>1-10
-- Taken from altivec of GNAT examples (http://www.adacore.com/developers/code-samples/gnat-examples/)
-- ====================================================================================================
-- This example shows how to create and manipulate vectors by the mean of high
-- level views.... |
3,114 | ada | 33 | ytomino/drake | source/pools/machine-pc-linux-gnu/s-unball.adb | <filename>source/pools/machine-pc-linux-gnu/s-unball.adb
with System.Address_To_Named_Access_Conversions;
with System.Standard_Allocators;
with System.System_Allocators;
package body System.Unbounded_Allocators is
use type Storage_Elements.Integer_Address;
use type Storage_Elements.Storage_Offset;
package HA_... |
3,115 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__rpi2-mini.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,116 | ada | 25 | My-Colaborations/ada-keystore | gtk/akt-callbacks.adb | <reponame>My-Colaborations/ada-keystore<filename>gtk/akt-callbacks.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- akt-callbacks -- Callbacks for Ada Keystore GTK application
-- Copyright (C) 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apa... |
3,117 | ada | 1,823 | Elon143/Amass | resources/scripts/api/maltiverse.ads | <gh_stars>1000+
-- Copyright 2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
local json = require("json")
name = "Maltiverse"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, ... |
3,118 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/genmatrix/vulkan-math-genmatrix.ads | --------------------------------------------------------------------------------
-- 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 r... |
3,119 | ada | 33 | ytomino/drake | source/streams/a-ssiopi.adb | <reponame>ytomino/drake
with Ada.Streams.Stream_IO.Naked;
with System.Native_IO;
package body Ada.Streams.Stream_IO.Pipes is
procedure Create (Reading, Writing : out File_Type) is
Handles : array (0 .. 1) of aliased System.Native_IO.Handle_Type;
begin
System.Native_IO.Open_Pipe (Handles (0), Handles ... |
3,120 | ada | 3 | charlie5/aIDE | source/types/adam-a_type-task_type.adb | with
AdaM.Factory;
package body AdaM.a_Type.task_type
is
-- Storage Pool
--
record_Version : constant := 1;
pool_Size : constant := 5_000;
package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam-store",
pool_... |
3,121 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-coboho.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
3,122 | ada | 2 | SMerrony/dgemua | status_monitor.adb | <filename>status_monitor.adb<gh_stars>1-10
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation t... |
3,123 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/File-input-output/Ada/file-input-output-4.ada | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
procedure Using_Text_Streams is
Input, Output : File_Type;
Buffer : Character;
begin
Open (File => Input, Mode => In_File, Name => "input.txt");
Create (File => Output, Mode => Out_File... |
3,124 | ada | 0 | zdimension/tdinfo302 | src/pgcd.adb | <filename>src/pgcd.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure pgcd is
function PGCD_Euclide (a : Integer; b : Integer) return Integer is
p : Integer := a;
q : Integer := b;
r : Integer;
begin
while q /= 0 loop
... |
3,125 | ada | 204 | spr93/whitakers-words | src/words_engine/words_engine-parse.ads | -- 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... |
3,126 | ada | 2 | Spohn/LegendOfZelba | enemy_bst.adb | <filename>enemy_bst.adb
with NPC_PC; use NPC_PC;
package body Enemy_BST is
-------------------------------
-- Name: <NAME>
-- <NAME>
-- Enemy Package
-------------------------------
--Make Enemy
FUNCTION MakeNode (E : EnemyClass) RETURN EnemyTree IS
Result : EnemyTree;
BEGIN
Result... |
3,127 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-billboard-colored_textured.ads | <reponame>charlie5/lace-alire
with
openGL.Geometry.colored_textured,
openGL.Texture,
openGL.Font,
openGL.Palette;
package openGL.Model.billboard.colored_textured
--
-- Models a colored, textured billboard.
--
is
type Item is new Model.billboard.item with private;
type View is access all Ite... |
3,128 | ada | 4 | faelys/gela-asis | source/asis/spec/annex_d/ada-execution_time-timers.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 --
-- ... |
3,129 | ada | 0 | alire-project/sdlada | src/sdl-video-surfaces-makers.adb | <reponame>alire-project/sdlada<gh_stars>0
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held li... |
3,130 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-objects-textures-with_2d_loader.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
generic
type Base (<>) is new Texture_Proxy with private;
package GL.Objects.Textures.With_2D_Loader is
pragma Preelaborate;
type Target is new Base with null record;
procedure Load_Empty_Textur... |
3,131 | ada | 4 | jfuica/bingada | src/q_csv.adb | package body Q_Csv is
--==================================================================
function F_Line (V_Line : String;
V_Separator : Character := ';') return T_Row is
(V_Length => V_Line'Length,
R_Str => V_Line,
R_First => V_Line'First,
R_Last => V_Line'Last... |
3,132 | ada | 1 | faelys/natools-web | src/natools-web-simple_pages-multipages.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,133 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/orka-simd-avx-doubles-swizzle.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
3,134 | ada | 2 | skordal/ada-regex | src/regex-syntax_trees.adb | -- Ada regular expression library
-- (c) <NAME> 2020-2021 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Ada.Unchecked_Deallocation;
package body Regex.Syntax_Trees is
function "<" (Left, Right : in Syntax_Tree_Node_Access) return Boolean is
begin
return Left.Id < R... |
3,135 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-storages/src/awa-storages-modules.ads | <reponame>My-Colaborations/ada-awa<filename>awa/plugins/awa-storages/src/awa-storages-modules.ads
-----------------------------------------------------------------------
-- awa-storages-modules -- Storage management module
-- Copyright (C) 2012, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under ... |
3,136 | ada | 0 | M1nified/Ada-Samples | qsort.ads | with System;
use System;
package Qsort is
type vector is array (Integer range <>) of Integer;
type vector_ptr is access vector;
task type SortTask is
entry PortIn(ValIn : in vector_ptr);
entry PortOut(ValOut : out vector);
end SortTask;
type Sort_access is access SortTask;
procedure Sort (List : in out vector_... |
3,137 | ada | 0 | fintatarta/eugen | src/Sym_Expr/symbolic_expressions-solving.adb | with Ada.Text_IO; use Ada.Text_IO;
package body Symbolic_Expressions.Solving is
procedure Mastica (X : Boolean) is
begin
null;
end Mastica;
----------------------
-- Triangular_Solve --
----------------------
procedure Triangular_Solve
(What : in Equation_Tables.Map;
Result... |
3,138 | ada | 33 | ytomino/drake | examples/ucd_normalization.adb | <reponame>ytomino/drake<filename>examples/ucd_normalization.adb<gh_stars>10-100
-- convert UCD/UnicodeData.txt, UCD/CompositionExclusions.txt
-- bin/ucd_normalization -r $UCD/UnicodeData.txt $UCD/CompositionExclusions.txt > ../source/strings/a-ucdnor.ads
-- bin/ucd_normalization -u $UCD/UnicodeData.txt $UCD/Composition... |
3,139 | ada | 12 | jquorning/ada-asf | src/asf-components-html-panels.adb | -----------------------------------------------------------------------
-- html.panels -- Layout panels
-- Copyright (C) 2009, 2010, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Lice... |
3,140 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32f103xx/svd/stm32_svd-usb_otg_fs.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.USB_OTG_FS is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype FS_DCFG_DSPD_Field is STM... |
3,141 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104c.ada | <gh_stars>1-10
-- C64104C.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.... |
3,142 | ada | 2 | thindil/tashy2 | tests/tk-toplevel-toplevel_create_options_test_data.ads | <reponame>thindil/tashy2
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
with Tk.TopLevel.T... |
3,143 | ada | 3 | Fabien-Chouteau/atomic | src/intrinsic/atomic.adb | with System;
package body Atomic is
----------
-- Init --
----------
function Init (Val : Boolean) return Flag is
Ret : aliased Flag := 0;
Unused : Boolean;
begin
if Val then
Test_And_Set (Ret, Unused);
else
Clear (Ret);
end if;
return Ret;
end ... |
3,144 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-accept_statements.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Identifiers;
with Program.Elements.Expressions;
with Program.Elements.Parameter_Specifications;
with Program.Element_V... |
3,145 | ada | 204 | spr93/whitakers-words | src/tools/dictord.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... |
3,146 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/gnatlink.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,147 | ada | 76 | yannickmoy/SPARKNaCl | src/sparknacl-utils.ads | private package SPARKNaCl.Utils
with Pure,
SPARK_Mode => On
is
--===================================================
-- Exported subprogram declarations
--
-- Note that these subprograms appear in a distinct
-- private child package so they are NOT
-- primitive operations of either types ... |
3,148 | ada | 0 | M1nified/Ada-Samples | pmap.adb | <filename>pmap.adb
with Ada.Text_Io;
use Ada.Text_Io;
package body PMap is
task body pmap_apply is
value : Integer;
Func : func_type;
begin
accept PortIn(ValIn : in Integer; FuncIn : in not null func_type) do
value := ValIn;
Func := FuncIn;
end PortIn;
value := Func(value);
Put_Line(Integer'Imag... |
3,149 | ada | 32 | robdaemon/AdaYaml | dropin/src/yaml-c.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Exceptions;
with Ada.Strings.Fixed;
with Ada.Unchecked_Deallocation;
with Yaml.Destination.C_Handler;
with Yaml.Destination.C_String;
with Yaml.Source;
with Yaml.Tags;
with Lexer.Source.C_Handler;
... |
3,150 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Fractran/Ada/fractran.ada | <filename>Task/Fractran/Ada/fractran.ada<gh_stars>1-10
with Ada.Text_IO;
procedure Fractan is
type Fraction is record Nom: Natural; Denom: Positive; end record;
type Frac_Arr is array(Positive range <>) of Fraction;
function "/" (N: Natural; D: Positive) return Fraction is
Frac: Fraction := (Nom => N,... |
3,151 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-timer.ads | <filename>src/ada-core/src/linted-timer.ads<gh_stars>0
-- Copyright 2015,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-... |
3,152 | ada | 1 | A1rPun/nurture | language/ada/fib.adb | with
Ada.Text_IO,
Ada.Command_Line,
Ada.Numerics.Elementary_Functions;
use
Ada.Text_IO,
Ada.Command_Line,
Ada.Numerics.Elementary_Functions;
procedure Fib is
function fib(n : integer) return integer is
begin
if n < 2 then
return n;
else
return fib(n-1) + fib(n-2);
end if;
end ... |
3,153 | ada | 45 | alkalinin/raytracer | ada/src/colors.adb | <filename>ada/src/colors.adb<gh_stars>10-100
--
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- implementation for Colors, both RGB ("Color_Type")
-- and RGBA ("Transparent_Color_Type")
--
package body Colors is
function Create_Color(Red, Green, Blue: Float15) return Color_Ty... |
3,154 | ada | 133 | bunny8469/Hello-World | Ada/Examples/helloworld.adb | <filename>Ada/Examples/helloworld.adb
with Text_IO; use Text_IO;
procedure helloworld is
begin
Put_Line("Hello world!");
end helloworld;
|
3,155 | ada | 4 | jfuica/bingada | src/q_bingo-q_gtk-q_intl.ads | --*****************************************************************************
--*
--* PROJECT: Bingada
--*
--* FILE: q_bingo-q_gtk-q_intl.ads
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
package Q_Bingo.Q_Gtk.Q_Intl is... |
3,156 | ada | 1 | ytomino/vampire | source/vampire-forms-selecting.ads | <filename>source/vampire-forms-selecting.ads<gh_stars>1-10
-- The Village of Vampire by YT, このソースコードはNYSLです
package Vampire.Forms.Selecting is
function Select_Form (
Query_Strings : Web.Query_Strings;
Speeches_Per_Page : Tabula.Villages.Speech_Positive_Count'Base)
return Root_Form_Type'Class;
end Vampire.For... |
3,157 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-tpopsp-vxworks.adb | <reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/s-tpopsp-vxworks.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -... |
3,158 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_base_gstbaseparse_h.ads | <filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_base_gstbaseparse_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h;
with GStreamer.GST_... |
3,159 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52011b.ada | -- C52011B.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.
-- Unlimite... |
3,160 | ada | 0 | e3l6/SSMDev | demo/src/stm32f4-dma.adb | <reponame>e3l6/SSMDev
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
3,161 | ada | 24 | svn2github/matreshka | source/league/league-text_codecs.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,162 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/models/x29_vbo.adb | <filename>Sources/Globe_3d/models/x29_vbo.adb
pragma Style_Checks (Off);
pragma Warnings (Off);
------------------------------------------------------------------------------
-- File : X29.adb
-- Description : x29 aircraft data base from Evans & Sutherland
-- Copyright : (c) Evans & Sutherla... |
3,163 | ada | 18 | jquorning/ada-wiki | src/wiki-filters-toc.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- wiki-filters-toc -- Filter for the creation of Table Of Contents
-- Copyright (C) 2016, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
3,164 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/scalar_storage/storage.adb | -- Copyright 2019-2021 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 version.
--
-- ... |
3,165 | ada | 0 | Lucretia/old_nehe_ada95 | adagl/linux/glx.ads | --
-- Copyright (c) 2002-2003, <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 source code must retain the above copyright notice,
-- this list... |
3,166 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/models/x29.ads | <reponame>ForYouEyesOnly/Space-Convoy
------------------------------------------------------------------------------
-- File : X29.adb
-- Description : x29 aircraft data base from Evans & Sutherland
-- Copyright : (c) Evans & Sutherland -- ok to distribute if copyright appears
----------------... |
3,167 | ada | 24 | svn2github/matreshka | source/xml/dom/matreshka-dom_lists.adb | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,168 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/ga_draw.adb | <gh_stars>1-10
-- Based on libgasandbox.draw.h and draw.cpp
with Ada.Numerics;
with Ada.Numerics.Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
with GL;
with GL.Attributes;
with GL.Culling;
with GL.Objects.Buffers;
with GL.Objects.Vertex_Arrays;
with GL.Rasterization;
with GL.Toggles;
with GL.Types; use G... |
3,169 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/ice_type.adb | <reponame>best08618/asylo
-- { dg-do compile }
with ICE_Types; use ICE_Types;
procedure ICE_Type is
type Local_Float_T is new Float_View_T;
LF : Local_Float_T;
begin
Initialize (Float_View_T (LF));
end;
|
3,170 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/DNS-query/Ada/dns-query-2.ada | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.Sockets; use Gnat.Sockets;
procedure DNSQuerying is
procedure Print_Address_Info (Host, Serv : String; Family : Family_Type := Family_Unspec) is
Addresses : Address_Info_Array := Get_Address_Info (Host, Serv, Family, Passive => False, Numeric_Host => ... |
3,171 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/make.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,172 | ada | 0 | sebsgit/textproc | src/tests/neuralnettests.adb | <filename>src/tests/neuralnettests.adb
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Text_IO;
with Ada.Containers; use Ada.Containers;
with Ada.Numerics.Float_Random;
with NeuralNet;
with MathUtils;
use MathUtils.Float_Vec;
package body NeuralNetTests is
procedure Register_Tests (T: in out TestCase) is
... |
3,173 | ada | 2 | jorge-real/TTS-Runtime-Ravenscar | examples/main_c.adb | <reponame>jorge-real/TTS-Runtime-Ravenscar
with TTS_Example_C;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
with System;
procedure Main_C
with Priority => System.Priority'First
is
begin
TTS_Example_C.Main;
delay until Ada.Real_Time.Time_Last;
exception
... |
3,174 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-parse-lr-mckenzie_recover-explore.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 - 2020 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) ... |
3,175 | ada | 12 | jquorning/ada-asf | regtests/asf-cookies-tests.adb | <reponame>jquorning/ada-asf
-----------------------------------------------------------------------
-- asf-cookies-tests - Unit tests for Cookies
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
3,176 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-thread.ads |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- <NAME> ... |
3,177 | ada | 0 | JeremyGrosser/synack_misc | test/src/synack_misc_test.adb | with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with HAL;
with Generic_Ring_Buffers;
with Checksum;
procedure Synack_Misc_Test is
begin
declare
use Checksum;
use HAL;
Sum : UInt8;
begin
Sum := CRC_8
(Data => UInt8_Array'(16#00#, 16#22#),
... |
3,178 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/linker_section.ads | package Linker_Section is
Data1 : constant String := "12345678901234567";
pragma Linker_Section (Entity => Data1,
Section => ".eeprom");
type EEPROM_String is new String;
pragma Linker_Section (Entity => EEPROM_String,
Section => ".eeprom");
Data2 : c... |
3,179 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Largest-int-from-concatenated-ints/Ada/largest-int-from-concatenated-ints-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
function Order(Left, Right: Natural) return Boolean is
( (Img(Left) & Img(Right)) > (Img(Right) & Img(Left)) );
|
3,180 | ada | 0 | Letractively/ada-asf | src/asf-components-core-views.adb | <filename>src/asf-components-core-views.adb
-----------------------------------------------------------------------
-- components-core-views -- ASF View Components
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
3,181 | ada | 52 | onox/orka | orka/src/orka/windows/orka-os.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
3,182 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-sysadmin/src/model/awa-sysadmin-models.adb | -----------------------------------------------------------------------
-- AWA.Sysadmin.Models -- AWA.Sysadmin.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://ada-... |
3,183 | ada | 0 | iyan22/AprendeAda | ejercicios2/prueba_posicion.adb | with Ada.Text_Io,Ada.Integer_Text_IO; use Ada.Text_Io,Ada.Integer_Text_IO;
with vectores; use vectores;
with posicion;
procedure prueba_posicion is
-- este programa hace llamadas a la funcion Esta_en_vector y es util
-- para comprobar si su funcionamiento es correcto
Vector1: Vector_De_Enteros(1..10);
Vec... |
3,184 | ada | 1 | bracke/brackelib | tests/src/stacks_tests.ads | with AUnit;
with AUnit.Test_Fixtures;
with Brackelib.Stacks;
package Stacks_Tests is
package State_Stacks is new Brackelib.Stacks (Integer);
use State_Stacks;
type Test is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure Set_Up (T : in out Test);
procedure Test_Push (T : in out Test... |
3,185 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Long-multiplication/Ada/long-multiplication-2.ada | package body Long_Multiplication is
function Value (Item : in String) return Number is
subtype Base_Ten_Digit is Digit range 0 .. 9;
Ten : constant Number := (0 => 10);
begin
case Item'Length is
when 0 =>
raise Constraint_Error;
when 1 =>
return (0 => Ba... |
3,186 | ada | 52 | onox/orka | orka_egl/src/egl-objects-devices.ads | <gh_stars>10-100
-- 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 the License at
--
-- http://www.apache.org/licen... |
3,187 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker-commands.ads | with CLIC.Subcommand;
private with Ada.Text_IO;
private with GNAT.OS_Lib;
private with CLIC.Subcommand.Instance;
private with CLIC.TTY;
private with FSmaker.Target;
package FSmaker.Commands is
procedure Set_Global_Switches
(Config : in out CLIC.Subcommand.Switches_Configuration);
procedure Execute;
f... |
3,188 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-comments-t.ads | <reponame>faelys/natools-web
-- Generated at 2016-07-04 19:19:16 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-comments-maps.sx
function Natools.Static_Maps.Web.Comments.T
return Boolean;
pragma Pure (Natools.Static_Maps.Web.Comments.T);
|
3,189 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/support/source/demo_dot.adb | <reponame>ouankou/rose
with Ada.Text_IO;
with Dot;
procedure Demo_Dot is
package ATI renames Ada.Text_IO;
NL : constant String := (1 => ASCII.LF);
-- Support subprograms:
procedure Print (Graph : in Dot.Graphs.Access_Class;
Title : in String) is
begin
ATI.Put_Line ("// " & T... |
3,190 | ada | 0 | thierr26/gnatdoc_test | src/my_package.ads | <gh_stars>0
package My_Package is
-- @summary
-- Test package.
--
subtype Count is Long_Long_Integer range 0 .. Long_Long_Integer'Last;
type Arr is array (Positive range <>) of Natural;
type Enum is (One, Two, Three);
----------------------------------------------------------------------------
fun... |
3,191 | ada | 0 | AntonMeep/base64 | src/base64-routines.ads | <reponame>AntonMeep/base64
pragma Ada_2012;
package Base64.Routines with
Pure,
Preelaborate
is
generic
type Element is mod <>;
function Standard_Character_To_Value (C : Character) return Element;
generic
type Element is mod <>;
function Standard_Value_To_Character (E : Element) return Cha... |
3,192 | ada | 6 | afrl-rq/LmcpGen | src/templates/ada/avtas/lmcp/avtas-lmcp-bytebuffers.ads | <reponame>afrl-rq/LmcpGen
with System; use System;
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package AVTAS.LMCP.ByteBuffers is
pragma Assertion_Policy (Check);
-- This pragma overrides the effect of the -gnata switch
Maximum_Leng... |
3,193 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94002a.ada | -- C94002A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
3,194 | ada | 33 | ytomino/drake | source/streams/machine-apple-darwin/s-naiona.adb | with Ada.Exception_Identification.From_Here;
with System.Address_To_Named_Access_Conversions;
with System.Zero_Terminated_Strings;
with C.fcntl;
with C.stdlib;
with C.sys.param;
package body System.Native_IO.Names is
use Ada.Exception_Identification.From_Here;
use type C.char_ptr;
use type C.size_t;
functi... |
3,195 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-tags/src/awa-tags.ads | -----------------------------------------------------------------------
-- awa-tags -- Tags management
-- 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.
-- You may ob... |
3,196 | ada | 12 | France-ioi/taskgrader | tests/sol-ok-ada.adb | <reponame>France-ioi/taskgrader
with Ada.Text_IO;
with Ada.Strings.Fixed;
use Ada.Text_IO;
procedure Main is
begin
Put_Line (Ada.Strings.Fixed.Trim (Integer'Image (2 * (Integer'Value (Get_Line))), Ada.Strings.Left));
end;
|
3,197 | ada | 1 | MatrixMike/AdaDemo1 | demo1/xample1.ads | package xample1 is
procedure SayWelcome;
procedure xercise;
-- procedure Goodbye;
end xample1;
|
3,198 | ada | 52 | onox/orka | orka/src/gl/interface/gl-pixels-queries.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
3,199 | ada | 33 | ytomino/drake | examples/exception_cpp.adb | <reponame>ytomino/drake<filename>examples/exception_cpp.adb
with Ada.Exceptions;
with Ada.Unchecked_Conversion;
with Interfaces.C.Strings;
with System.Address_To_Access_Conversions;
with System.Storage_Elements;
with System.Unwind.Foreign;
with C.unwind;
procedure exception_cpp is
pragma Linker_Options ("-lstdc++");
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.