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,600 | ada | 8 | flyx/OpenCLAda | src/interface/cl-vector_set.ads | <gh_stars>1-10
--------------------------------------------------------------------------------
-- 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 pe... |
5,601 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-socthi__mingw.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-socthi__mingw.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
5,602 | ada | 81 | My-Colaborations/ada-awa | awa/src/awa-applications-configs.adb | <reponame>My-Colaborations/ada-awa
-----------------------------------------------------------------------
-- awa-applications-configs -- Read application configuration files
-- Copyright (C) 2011, 2012, 2015, 2017, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.... |
5,603 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32l0/stm32l0x1/svd/stm32_svd-rtc.ads | -- This spec has been automatically generated from STM32L0x1.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.RTC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- RTC time register
type TR_Registe... |
5,604 | ada | 1 | jquorning/WeDo | source/database-jobs.ads | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
with Types;
package Database.Jobs is
... |
5,605 | ada | 0 | iyan22/AprendeAda | ejercicios6/prueba_actualizar.adb | <filename>ejercicios6/prueba_actualizar.adb<gh_stars>0
with Ada.Text_Io, Datos;
with Crear_Lista_Vacia, Esc, Ins, actualizar;
use Datos;
use Ada.Text_Io;
procedure Prueba_actualizar is
Lis: Lista; -- variables del programa principal
procedure Pedir_Return is
begin
Put_Line("pulsa return ... |
5,606 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-empty.adb |
package body impact.d3.collision.Algorithm.empty
is
function to_empty_Algorithm (ci : in AlgorithmConstructionInfo) return Item'Class
is
Self : Item;
begin
define (self, ci);
return Self;
end to_empty_Algorithm;
overriding procedure destruct (Self : in ... |
5,607 | ada | 204 | spr93/whitakers-words | src/tools/diffdict.adb | <gh_stars>100-1000
-- 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
-... |
5,608 | ada | 0 | Fabien-Chouteau/Renaissance-Ada | src/libraries/Rewriters_Lib/src/rewriters_minimal_parentheses.adb | <reponame>Fabien-Chouteau/Renaissance-Ada
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation.Finder; use Rejuvenation.Finder;
with Rejuvenation.Node_Locations; use Rejuvenation.Node_Locations;
with Rejuvenation.Text_Rewrites; use Rejuvenation.Text_Rewrites;
package body Rewriters_Minim... |
5,609 | ada | 33 | ytomino/drake | source/hash/a-sghcin.adb | with Ada.Containers.Murmur_Hash_3;
with Ada.Strings.Naked_Maps.Case_Folding;
function Ada.Strings.Generic_Hash_Case_Insensitive (Key : String_Type)
return Containers.Hash_Type
is
Mapping : constant not null Naked_Maps.Character_Mapping_Access :=
Strings.Naked_Maps.Case_Folding.Case_Folding_Map;
State : C... |
5,610 | ada | 3 | charlie5/aIDE | applet/aide/source/editors/aide-editor-of_subtype_indication.adb | with
aIDE.GUI,
aIDE.Editor.of_enumeration_literal,
AdaM.a_Type.enumeration_literal,
glib.Error,
gtk.Builder,
gtk.Handlers;
with Ada.Text_IO; use Ada.Text_IO;
package body aIDE.Editor.of_subtype_indication
is
use Gtk.Builder,
Glib,
glib.Error;
function on_first_E... |
5,611 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/s-errrep.ads | <filename>tools/scitools/conf/understand/ada/ada05/s-errrep.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,612 | ada | 80 | thindil/steamsky | tests/crafts-test_data-tests.adb | -- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up and tear down the t... |
5,613 | ada | 33 | ytomino/drake | source/machine-pc-linux-gnu/s-stomap.adb | with C.elf;
with C.link;
with C.sys.types;
package body System.Storage_Map is
pragma Suppress (All_Checks);
use type C.signed_int;
use type C.signed_long; -- 64bit ssize_t
-- the type of dlpi_phdr is different between 32bit and 64bit.
function To_Address (Value : access constant C.elf.Elf32_Phdr)
... |
5,614 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Flow-control-structures/Ada/flow-control-structures-3.ada | select
delay 10.0;
Put_Line ("Cannot finish this in 10s");
then abort
-- do some lengthy calculation
...
end select;
|
5,615 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-rbtgso.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
5,616 | ada | 0 | sciencylab/lagrangian-solver | drivers/auto_differentiation-integrator.ads | with Ada.Text_IO;
use Ada.Text_IO;
package Auto_Differentiation.Integrator is
type Variable (N2 : Nat) is
record
X : Real_Vector (1 .. N2);
T : Real;
end record;
type Control_Type is
record
N : Nat;
Dt : Real := 1.0;
Eps : Real := 1.0e-10;
Err : Real := 1.0;
K : Nat ... |
5,617 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/g-signal.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,618 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-vallli.adb | <reponame>best08618/asylo<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,619 | ada | 0 | reznikmm/gela | source/oasis/program-elements-single_task_declarations.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
with Program.Elements.Aspect_Specifi... |
5,620 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-connectors-fdi.ads | <filename>firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-connectors-fdi.ads
--
-- Copyright (C) 2016 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foun... |
5,621 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/avx2/orka-simd-avx2-doubles-swizzle.ads | <filename>orka_simd/src/x86/gnat/avx2/orka-simd-avx2-doubles-swizzle.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 ma... |
5,622 | ada | 7 | Fabien-Chouteau/Giza | gtkada_backend/example/main.adb | with Giza.Timers; use Giza.Timers;
with Ada.Real_Time; use Ada.Real_Time;
with Timer_Callback;
use Timer_Callback;
with Giza.Windows; use Giza.Windows;
with Screen_Interface; use Screen_Interface;
with Giza.Widgets.Text; use Giza.Widgets.Text;
with Giza.GUI; use Giza.GUI;
with Giza.Colors; use Giza.Colors;
with Giza.Gr... |
5,623 | ada | 33 | ytomino/drake | source/numerics/required/s-fatllf.adb | package body System.Fat_LLF is
function frexp (value : Long_Long_Float; exp : access Integer)
return Long_Long_Float
with Import,
Convention => Intrinsic, External_Name => "__builtin_frexpl";
function inf return Long_Long_Float
with Import, Convention => Intrinsic, External_Name => "_... |
5,624 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt26.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt26.adb
-- { dg-do run }
-- { dg-options "-gnato -O" }
with Interfaces; use Interfaces;
procedure Opt26 is
procedure Shift_Left_Bool
(Bool : in Boolean;
U8 : out Interfaces.Unsigned_8)
is
begin
U8 := Shift_Left (Boolean'Pos (Bool), 6);... |
5,625 | ada | 0 | reznikmm/gela | source/oasis/program-elements-anonymous_access_to_objects.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Anonymous_Access_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Subtype_Indications;
package Program.Elements.Anonymous_Access_To... |
5,626 | ada | 2 | wisdark/amass | resources/scripts/scrape/searchcode.ads | -- 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.
name = "Searchcode"
type = "scrape"
function start()
set_rate_limit(2)
end
function vertical(ctx, domain)
for i=0,20 do
local page, err = request(ctx, {url=... |
5,627 | ada | 24 | svn2github/matreshka | source/uaflex/matreshka-internals-finite_automatons.ads | <filename>source/uaflex/matreshka-internals-finite_automatons.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
5,628 | ada | 1 | danva994/ASFML-1.6 | include/sf-network-ftp.ads | <filename>include/sf-network-ftp.ads<gh_stars>1-10
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no even... |
5,629 | ada | 33 | ytomino/drake | source/required/s-caun64.ads | <filename>source/required/s-caun64.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Compare_Array_Unsigned_64 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Unsigned_64 is mod 2 *... |
5,630 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f1/gpio/main.adb | <gh_stars>1-10
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.EXTI;
with STM32_SVD.RCC;
with Button_Irq;
proced... |
5,631 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48004e.ada | -- C48004E.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,632 | ada | 12 | TUM-EI-RCS/StratoX | bug-reports/codepeer-units/src/main.adb | <gh_stars>10-100
with unav;
with Units; use Units;
with Text_IO; use Text_IO;
procedure main with SPARK_Mode is
distance : Length_Type;
begin
distance := unav.Get_Distance;
Put_Line ("distance=" & Float'Image(Float(distance)) & " m");
end main;
|
5,633 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/msp430g2452/svd/msp430_svd-timer_0_a3.ads | <gh_stars>0
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Timer0_A3
package MSP430_SVD.TIMER_0_A3 is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Timer A ... |
5,634 | ada | 0 | optikos/oasis | source/contexts/plain/program-plain_contexts.adb | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Strings.Wide_Wide_Fixed;
with System.Storage_Pools.Subpools;
with Program.Parsers;
with Program.Plain_Compilations;
with Program.... |
5,635 | ada | 2 | stcarrez/bbox-ada-api | tools/druss-commands-wifi.adb | -----------------------------------------------------------------------
-- druss-commands-wifi -- Wifi related commands
-- Copyright (C) 2017, 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
5,636 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-poosiz.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,637 | ada | 2 | sinkinben/pok | examples/arinc653-threads/sample-ada/cpu/part1/main.adb | package body Main is
procedure Printf (String : in Interfaces.C.char_array);
pragma Import (C, Printf, "printf");
procedure Compute is
begin
loop
Printf ("beep ");
end loop;
end Compute;
procedure Main is
Ret : Return_Code_Type;
Attr : Process_Attribute_Type;
I... |
5,638 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-formal_private_type_definitions.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Private_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Private_Type_Definitions... |
5,639 | ada | 0 | fintatarta/eugen | src/Parsers/project_processor-parsers.adb | pragma Ada_2012;
with Ada.Containers.Indefinite_Ordered_Maps;
with Project_Processor.Parsers.Abstract_Parsers;
package body Project_Processor.Parsers is
package Extension_Maps is
new Ada.Containers.Indefinite_Ordered_Maps (Key_Type => string,
Element_Type =... |
5,640 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array22.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array22.adb
-- { dg-do compile }
with System; use System;
procedure Array22 is
type Integer_Address is mod Memory_Size;
type Memory is array (Integer_Address range <>) of Character;
type Chunk (First, Last : Integer_Address) is record
Mem : Memor... |
5,641 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cfhase.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cfhase.ads
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
5,642 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-stache.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,643 | ada | 1 | danva994/ASFML-1.6 | include/sf-window-videomode.ads | <gh_stars>1-10
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held liable fo... |
5,644 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-formal_modular_type_definitions.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Formal_Modular_Type_Definitions is
function Create
(Mod_Token : not null Program.Lexical_Elements.Lexical_Element_Access;
Box_Token... |
5,645 | ada | 20 | charlie5/lace | 3-mid/physics/implement/box2d/source/thin/box2d_c-b2d_ray_collision.ads | -- This file is generated by SWIG. Please do *not* modify by hand.
--
with c_math_c;
with c_math_c.Vector_3;
with interfaces.C;
package box2d_c.b2d_ray_Collision is
-- Item
--
type Item is
record
near_Object : access box2d_c.Object;
hit_Fraction : aliased c_math_c.Real;
Norma... |
5,646 | ada | 15 | AdaCore/training_material | extern/game_support/src/backends/opengl_sdl_gnat_sdl/display-basic-glfonts.ads | <filename>extern/game_support/src/backends/opengl_sdl_gnat_sdl/display-basic-glfonts.ads<gh_stars>10-100
with GL_gl_h; use GL_gl_h;
package Display.Basic.GLFonts is
function getCharTexture(Char : Character) return GLUint;
end Display.Basic.GLFonts;
|
5,647 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_allocator_maxalign2.adb | -- { dg-do run }
with Allocator_Maxalign2;
procedure Test_Allocator_Maxalign2 is
begin
Allocator_Maxalign2.Check;
end;
|
5,648 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sfn_scan.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,649 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/ghost.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,650 | ada | 32 | robdaemon/AdaYaml | Parser_Tools/src/implementation/lexer-base.adb | <gh_stars>10-100
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
package body Lexer.Base is
procedure Free is new Ada.Unchecked_Deallocation
(String, Buffer_Type);
subtype Line_End is Character with Stati... |
5,651 | ada | 3 | jwarwick/aoc_2020 | test_suite/aoc_suite.adb | <filename>test_suite/aoc_suite.adb
with Day.Test;
package body AOC_Suite is
function Suite return Access_Test_Suite is
Ret : constant Access_Test_Suite := new Test_Suite;
begin
Ret.Add_Test (new Day.Test.Test);
return Ret;
end Suite;
end AOC_Suite;
|
5,652 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/math/impact-d3-scalar.ads |
package impact.d3.Scalar
--
--
--
is
use Math;
BT_BULLET_VERSION : constant := 279;
SIMD_2_PI : constant Real := 6.283185307179586232;
SIMD_PI : constant Real := SIMD_2_PI * 0.5;
SIMD_HALF_PI : constant Real := SIMD_2_PI * 0.25;
SIMD_RADS_PER_DEG : constant Real := SIMD_2... |
5,653 | ada | 3 | Heziode/aoc-ada-2021 | 11/1/src/main.adb | <reponame>Heziode/aoc-ada-2021
with Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
subtype Adjacent_Index is Integer range -1 .. 1;
type Adjacent_Location is rec... |
5,654 | ada | 81 | stcarrez/ada-awa | awa/src/awa-commands-stop.adb | <reponame>stcarrez/ada-awa
-----------------------------------------------------------------------
-- awa-commands-stop -- Command to stop the web server
-- Copyright (C) 2020, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
5,655 | ada | 80 | thindil/steamsky | tests/crew-test_data-tests.adb | <filename>tests/crew-test_data-tests.adb
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- co... |
5,656 | ada | 0 | balintsoos/LearnAda | zh/zh1/bintree/3/demo.adb | <gh_stars>0
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with bintree;
procedure demo is
type Tomb is array (Integer range <>) of Integer;
function beta(item : Integer; parent : Integer) return Boolean is
begin
return item / 2 = parent;
end beta;
function tree is ... |
5,657 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3306a.ada | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3306a.ada
-- CE3306A.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. Governmen... |
5,658 | ada | 33 | ytomino/drake | source/tasking/a-tasatt.adb | with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with System.Address_To_Named_Access_Conversions;
with System.Tasks;
package body Ada.Task_Attributes is
use type System.Address;
package Holder is
new Exceptions.Finally.Scoped_Holder (
System.Tasks.Attrib... |
5,659 | ada | 0 | yrashk/ada-util | regtests/util-encoders-kdf-tests.adb | -----------------------------------------------------------------------
-- util-encodes-kdf-tests - Key derivative function tests
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with ... |
5,660 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-targets-gtkmat.ads | <gh_stars>1-10
-----------------------------------------------------------------------
-- mat-targets-gtkmat - Gtk target management
-- Copyright (C) 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
5,661 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/common/tools/generic_queue.ads | -- Generic Buffer
-- Author: <NAME> (<EMAIL>)
-- Can be used as ring buffer or queue
-- FIXME: consider SPARK formal containers to replace this
-- Note: Since this used OO features (class-wide types), the Liskov Subsitution Principle (LSP)
-- applies. That is, all contracts on primitives of the derived types must be *... |
5,662 | ada | 0 | optikos/oasis | source/oasis/program-elements-ordinary_fixed_point_types.ads | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Real_Range_... |
5,663 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_ch5.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/exp_ch5.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,664 | ada | 0 | SKNZ/BezierToSTL | src/util/helper.adb | <filename>src/util/helper.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Strings; use Ada.Strings;
package body Helper is
function Fichier_Ligne_Commence_Par(Nom_Fichier, Marqueur : String)
return String
... |
5,665 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83051a.ada | <reponame>best08618/asylo
-- C83051A.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... |
5,666 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/zfp-stm32g474/gnat/s-imageu.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,667 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32_common/stm32-button.adb | <reponame>TUM-EI-RCS/StratoX
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
5,668 | ada | 8 | pvrego/adaino | project/src/avr-watchdog.adb | <reponame>pvrego/adaino
with System.Machine_Code;
-- =============================================================================
-- Package body AVR.INTERRUPTS
-- =============================================================================
package body AVR.WATCHDOG is
procedure Watchdog_Reset is
begin
... |
5,669 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-workspaces/src/awa-workspaces-modules.adb | <reponame>Letractively/ada-awa<filename>awa/plugins/awa-workspaces/src/awa-workspaces-modules.adb
-----------------------------------------------------------------------
-- awa-workspaces-module -- Module workspaces
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apa... |
5,670 | ada | 1 | mbirabhadra/RosettaCodeData | Task/Tokenize-a-string/Ada/tokenize-a-string.ada | <filename>Task/Tokenize-a-string/Ada/tokenize-a-string.ada
with Ada.Text_IO, Ada.Strings.Fixed, Ada.Containers.Indefinite_Vectors;
use Ada.Text_IO, Ada.Strings.Fixed, Ada.Containers;
procedure tokenize is
package String_Vector is new Indefinite_Vectors (Natural,String); use String_Vector;
procedure Parse (s : Str... |
5,671 | ada | 6 | jquorning/ada-el | src/el-functions-namespaces.adb | -----------------------------------------------------------------------
-- el-functions-namespaces -- Namespace function mapper
-- 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 compliance with th... |
5,672 | ada | 0 | SKNZ/BoiteMaker | src/utilities/petit_poucet.adb | <reponame>SKNZ/BoiteMaker<gh_stars>0
with logger;
use logger;
package body petit_poucet is
-- Instancie un petit poucet
function get_petit_poucet(start_pos : point_t) return petit_poucet_t is
start_node : constant node_ptr := create(start_pos);
begin
debug("Naissance d'un petit poucet à la ... |
5,673 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-culling.adb | <reponame>onox/orka
-- 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/li... |
5,674 | ada | 0 | 0xA1/pi-spi | src/spi.adb | -- --
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and/or distribute this software for any --
-... |
5,675 | ada | 5 | docandrew/troodon | src/taskbar.ads | with xcb; use xcb;
package Taskbar is
---------------------------------------------------------------------------
-- start
-- Initialize and start the Taskbar. This component runs as a separate Ada
-- task with it's own connection to the X Server.
--------------------------------------------------... |
5,676 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/common/uxas-common-string_constant-message_group.ads | -- see OpenUxAS\src\Includes\Constants\UxAS_String.h
package UxAS.Common.String_Constant.Message_Group is
RadarFilter : constant String := "RadarFilter";
VicsLogger : constant String := "VicsLogger";
AircraftPathPlanner : constant String := "AircraftPathPlanner";
GroundPathPlann... |
5,677 | ada | 1 | stcarrez/helios | src/linux/helios-monitor-disks.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- helios-monitor-disks -- Linux disks monitor
-- 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 compliance w... |
5,678 | ada | 9 | alkhimey/Ada_Joystick | src/linux_joystick.ads | <reponame>alkhimey/Ada_Joystick<filename>src/linux_joystick.ads<gh_stars>1-10
-- The MIT License (MIT)
--
-- Copyright (c) 2016 <EMAIL>
--
-- 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 Softw... |
5,679 | ada | 0 | JeremyGrosser/usb_embedded | tests/tests/device/control_data_out/main.adb | -- This test is check control data out with a fake class request
with USB_Testing; use USB_Testing;
with USB_Testing.UDC_Stub; use USB_Testing.UDC_Stub;
with USB_Testing.UDC_Scenarios;
with HAL; use HAL;
with USB; use USB;
with USB.Device; use USB.Device;
with USB.HAL.Device; use US... |
5,680 | ada | 2 | SMerrony/dgemua | devices/devices-magtape6026.adb | -- 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 the rights
-- to use, copy, modify, merge, p... |
5,681 | ada | 52 | onox/orka | orka/src/orka/interface/orka-inputs-joysticks-sequences.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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
-... |
5,682 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp1/min_max_serie.adb | <filename>1A/S5/PIM/tps/tp1/min_max_serie.adb
with Text_IO;
use Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
-- Afficher le plus petit et le plus grand élément d'une série d'entiers
-- naturels lus au clavier. La saisie de la série se termine par 0
-- (qui n'appartient pas à la série).
-- Exemple : 2, ... |
5,683 | ada | 0 | ASTR0NAUTJ0NES/IntegerExponentiation | integer_exponentiation.adb | <reponame>ASTR0NAUTJ0NES/IntegerExponentiation
--logic for exponents to work correctly
package body Integer_Exponentiation is
-- int^int
procedure Exponentiate (Argument : in Integer;
Exponent : in Natural;
Result : out Integer) is
begin... |
5,684 | ada | 33 | ytomino/drake | source/required/s-memory.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Standard_Allocators;
package System.Memory is
pragma Preelaborate;
-- required for accessibility check, or task objects (s-memory.ads)
procedure Free (Storage_Address : Address)
renames Standard_Allocators.Free;
en... |
5,685 | ada | 0 | gerr135/gnat_bugs | gb_02/src_bug/lists-dynamic.ads | with Ada.Containers.Vectors;
generic
package Lists.dynamic is
type List is new List_Interface with private;
overriding
function List_Constant_Reference (Container : aliased in List; Position : Cursor) return Constant_Reference_Type;
overriding
function List_Constant_Reference (Container : alias... |
5,686 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-api-uniforms-singles.ads | <filename>orka/src/gl/implementation/gl-api-uniforms-singles.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 L... |
5,687 | ada | 0 | reznikmm/gela | source/resolver/program-complete_contexts-assignment_statements.ads | <reponame>reznikmm/gela<gh_stars>0
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Assignment_Statements;
with Program.Interpretations;
package Program.Compl... |
5,688 | ada | 0 | persan/advent-of-code-2020 | src/day-4/adventofcode-day_4-main.adb | <filename>src/day-4/adventofcode-day_4-main.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_4.Main is
procedure Check (Path : String) is
Passports : Passport_Vector;
begin
Passports.Read (Path);
Put_Line ("Valid_Passports =>" & Passports.Count_Valid'Img);
end Check;
begin
... |
5,689 | ada | 0 | SKNZ/BoiteMaker | src/utilities/help.adb | with ada.text_io;
use ada.text_io;
package body help is
procedure show_help is
begin
put_line(help_text);
end;
end help;
|
5,690 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_tss.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,691 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-graph.adb | package body agar.gui.widget.graph is
package body vertex is
package cbinds is
procedure label
(vertex : vertex_access_t;
text : cs.chars_ptr);
pragma import (c, label, "AG_GraphVertexLabelS");
procedure size
(vertex : vertex_access_t;
width : c.int;
... |
5,692 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Variable-size-Get/Ada/variable-size-get.ada | Int_Bits : constant Integer := Integer'size;
Whole_Bytes : constant Integer := Int_Bits / Storage_Unit; -- Storage_Unit is the number of bits per storage element
|
5,693 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/text/opengl-font.ads | with
openGL.Glyph.Container,
openGL.FontImpl,
freetype.Face,
freetype_c.FT_GlyphSlot,
ada.Containers.hashed_Maps;
package openGL.Font
--
-- Specific font classes are derived from this class. It uses the helper
-- classes 'freetype_c.Face' and 'freetype_c.FTSize' to access the Freetype libr... |
5,694 | ada | 0 | thieryw/sorting_algo | bin_ada/b~sorting_exercise.adb | pragma Ada_95;
pragma Warnings (Off);
pragma Source_File_Name (ada_main, Spec_File_Name => "b~sorting_exercise.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b~sorting_exercise.adb");
pragma Suppress (Overflow_Check);
with Ada.Exceptions;
package body ada_main is
E079 : Short_Integer; pragma Import (... |
5,695 | ada | 10 | Ada-Audio/wavefiles | src/audio-riff-wav-formats.ads | ------------------------------------------------------------------------------
-- --
-- AUDIO / RIFF / WAV --
-- --
-- ... |
5,696 | ada | 52 | onox/orka | orka/src/orka/interface/orka-algebra.ads | -- 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
-... |
5,697 | ada | 2 | ShiroixD/pag_zad_2 | thirdparty/glut/adainclude/GL/glut.adb | <gh_stars>1-10
-- Generated from glut.h
-- Date: Sun Apr 6 14:32:02 1997
--
-- Command line definitions:
-- -D__ANSI_C__ -D_LANGUAGE_C -DGENERATING_ADA_BINDING -D__unix -D__sgi
-- -D__mips -D__host_mips -D__EXTENSIONS__ -D__EDG -D__DSO__ -D__STDC__
-- -D_SYSTYPE_SVR4 -D_MODERN_C -D_MIPS_SZPTR=32 -D_M... |
5,698 | ada | 0 | marcello-s/AeonFlux | src/ada/AeonFlux/Parser/TokenValue.ads | <filename>src/ada/AeonFlux/Parser/TokenValue.ads
-- Copyright (c) 2015-2019 <NAME>
-- for details see License.txt
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Position; use Position;
with Tokens; use Tokens;
package TokenValue is
type Object is record
SourcePosition : Position.Object;
T... |
5,699 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_L3GD20_polling/src/output_utils.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.