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 |
|---|---|---|---|---|---|
1,500 | ada | 0 | reznikmm/webidl | source/lexer/generated/webidl-scanner_handlers.ads | limited with WebIDL.Scanners;
with WebIDL.Tokens;
with WebIDL.Scanner_Types;
package WebIDL.Scanner_Handlers is
pragma Preelaborate;
type Handler is abstract tagged limited null record;
procedure Delimiter
(Self : not null access Handler;
Scanner : not null access WebIDL.Scanners.Scanner'Class... |
1,501 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-omega.adb | <reponame>sciencylab/lagrangian-solver<filename>src/numerics-sparse_matrices-omega.adb<gh_stars>0
separate (Numerics.Sparse_Matrices)
function Omega (N : in Nat;
M : in Pos := 0) return Sparse_Matrix is
Result : Sparse_Matrix;
use Ada.Containers;
begin
-----------------------------------------------
... |
1,502 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/other_basic_subprogram_calls.ads | <gh_stars>1-10
package Other_Basic_Subprogram_Calls is
function Other_F1 return Integer;
procedure Other_P1;
end Other_Basic_Subprogram_Calls;
|
1,503 | ada | 20 | charlie5/lace | 3-mid/physics/implement/c_math/source/thin/c_math_c-vector_3.ads | -- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
package c_math_c.Vector_3 is
-- Item
--
type Item is record
x : aliased c_math_c.Real;
y : aliased c_math_c.Real;
z : aliased c_math_c.Real;
end record;
-- Items
--
type Items is
arra... |
1,504 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-ref-man-2012.5/progs/arm_frm.adb | <reponame>caqg/linux-home
with -- ARM_Output, -- redudant with spec
-- ARM_Input,
ARM_File,
ARM_String,
-- ARM_Contents,
-- ARM_Database,
ARM_Syntax,
ARM_Index,
-- ARM_Subindex,
ARM_Format.Data,
Ada.Text_IO,
Ada.Characters.Handling,
Ada.Strings.Fixed;
package... |
1,505 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr7.ads | package Addr7 is
type Bytes is array (1 .. 4) of Character;
for Bytes'Alignment use 4;
procedure Proc (B: aliased Bytes);
end Addr7;
|
1,506 | ada | 52 | onox/orka | orka/src/orka/interface/orka-cameras.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
-... |
1,507 | ada | 0 | mstewartgallus/linted | src/ada-libc/src/libc-stdint.ads | <filename>src/ada-libc/src/libc-stdint.ads<gh_stars>0
-- Copyright 2015 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- U... |
1,508 | ada | 3 | pyjarrett/archaic_terminal | tests/src/trendy_terminal_tests.adb | with Trendy_Test.Reports;
with Trendy_Terminal.Histories.Tests;
with Trendy_Terminal.Lines.Tests;
procedure Trendy_Terminal_Tests is
begin
Trendy_Test.Register (Trendy_Terminal.Histories.Tests.All_Tests);
Trendy_Test.Register (Trendy_Terminal.Lines.Tests.All_Tests);
Trendy_Test.Reports.Print_Basic_Report ... |
1,509 | ada | 4 | davidkristola/vole | kv-avm-actor_references.ads | <filename>kv-avm-actor_references.ads
with Interfaces;
package kv.avm.Actor_References is
procedure Set_Local_Domain(Domain : Interfaces.Unsigned_32);
function Get_Local_Domain return Interfaces.Unsigned_32;
type Actor_Reference_Type is tagged private;
procedure Initialize
(Self : in out Actor_... |
1,510 | ada | 192 | rocher/Ada_Drivers_Library | middleware/src/filesystem/filesystem-mbr.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
1,511 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-declarations.ads | <filename>src/asis/asis-declarations.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
1,512 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32f7_discovery/hal-audio.adb | <reponame>TUM-EI-RCS/StratoX
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.SAI; use STM32_SVD.SAI;
with STM32.Device; use STM32.Device;
with STM32.Board; use STM32.Board;
with STM32.GPIO; use STM32.GPIO;
with STM32.DMA; use STM32.DMA;
with STM32.I2C; ... |
1,513 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/bind_check/sdl_ada_sizes.ads | with Interfaces.C;
package SDL_Ada_Sizes is
package C renames Interfaces.C;
-- SDL_Types.h
function Uint8_Size return C.int;
pragma Import (C, Uint8_Size, "Uint8_Size");
function Uint16_Size return C.int;
pragma Import (C, Uint16_Size, "Uint16_Size");
-- SDL_Events.h
function SDL_Act... |
1,514 | ada | 0 | reznikmm/gela | source/oasis/program-elements-task_body_declarations.ads | <reponame>reznikmm/gela<gh_stars>0
-- 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.Asp... |
1,515 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-shading.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
-... |
1,516 | ada | 0 | reznikmm/gps-tracker | source/receiver/main/bluetooth.adb | -- SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Interfaces.C;
with System;
package body Bluetooth is
function Raw_Data (Value : Byte_Array) return Advertising_Data is
begin
return Result : Advertising... |
1,517 | ada | 0 | fintatarta/protypo | src/Internals/protypo-code_trees-interpreter-expressions.adb | pragma Ada_2012;
with Ada.Exceptions;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_Io; use Ada.Text_Io;
with Protypo.Api.Engine_Values.Parameter_Lists;
with Protypo.Code_Trees.Interpreter.Statements;
with Protypo.Api.Consumers.Buffers;
package body Protypo.Code_Trees.Interpr... |
1,518 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-users-principals.ads | -----------------------------------------------------------------------
-- awa-users-principals -- User principals
-- Copyright (C) 2011, 2012, 2013, 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... |
1,519 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Grayscale-image/Ada/grayscale-image-2.ada | function Grayscale (Picture : Image) return Grayscale_Image is
type Extended_Luminance is range 0..10_000_000;
Result : Grayscale_Image (Picture'Range (1), Picture'Range (2));
Color : Pixel;
begin
for I in Picture'Range (1) loop
for J in Picture'Range (2) loop
Color := Picture (I, J);
... |
1,520 | ada | 0 | dksmiffs/gnatmake-examples | cpp-main-big/src/ada-a/i_am_ada.ads | <reponame>dksmiffs/gnatmake-examples<filename>cpp-main-big/src/ada-a/i_am_ada.ads
package I_Am_Ada is
procedure Ada_Procedure;
pragma Export (C, Ada_Procedure, "ada_procedure");
end I_Am_Ada;
|
1,521 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/renderer/opengl-impostorer.ads | with
openGL.Impostor,
openGL.Visual,
openGL.Renderer.lean;
limited
with
openGL.Camera;
private
with
ada.Containers.hashed_Maps,
ada.unchecked_Conversion;
package openGL.Impostorer
--
-- Provides an impostoring system.
--
is
type Item is tagged limited private;
type View is access ... |
1,522 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/put_scos.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,523 | ada | 2 | skordal/ada-regex | src/regex-regular_expressions.ads | <reponame>skordal/ada-regex<filename>src/regex-regular_expressions.ads<gh_stars>1-10
-- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with Regex.Syntax_Trees;
with Regex.State_Machines;
private with Ada.Finalization;
package Regex.R... |
1,524 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Pythagorean-triples/Ada/pythagorean-triples.ada | with Ada.Text_IO;
procedure Pythagorean_Triples is
type Large_Natural is range 0 .. 2**63-1;
-- this is the maximum for gnat
procedure New_Triangle(A, B, C: Large_Natural;
Max_Perimeter: Large_Natural;
Total_Cnt, Primitive_Cnt: in out Large_Natural) is
... |
1,525 | ada | 0 | faelys/natools | generated/natools-s_expressions-printers-pretty-config-main_cmd.adb | with Interfaces; use Interfaces;
package body Natools.S_Expressions.Printers.Pretty.Config.Main_Cmd is
P : constant array (0 .. 4) of Natural :=
(1, 4, 6, 10, 19);
T1 : constant array (0 .. 4) of Unsigned_8 :=
(90, 49, 2, 41, 29);
T2 : constant array (0 .. 4) of Unsigned_8 :=
(4, 57, 54, 101... |
1,526 | ada | 0 | iyan22/AprendeAda | ejercicios4/rellenar_aula_1.adb | <gh_stars>0
with copia_examenes;
use copia_examenes;
procedure rellenar_aula_1 (Aula_1: out T_Aula) is
begin
--Rellenar el aula_1 fila 1
-------------------------------
aula_1(1,1).Ocupada:=True;
Aula_1(1,1).Ident:=111;
Aula_1(1,1).Ex.Num_palabras_diferentes:=5;
--rellenando_las palabras y sus frecu... |
1,527 | ada | 236 | jquorning/septum | src/common/sp-terminal.adb | <reponame>jquorning/septum
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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... |
1,528 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c44003d.ada | -- C44003D.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... |
1,529 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35505c.ada | -- C35505C.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... |
1,530 | ada | 0 | python36/vibecrypt | file_crypter.adb | package body file_crypter is
procedure init_key(key : key_s) is
begin
raiden.init_key(key);
end init_key;
procedure file_crypt(in_file : byte_io.File_Type; out_file : out byte_io.File_Type; mode_crypt : mode) is
type raiden_access is access procedure (x : in byte_array_8; y : out byte_array_8);
raiden_op... |
1,531 | ada | 0 | evgenijaZ/PP-labs | lab15/src/main.adb | -----------------------------------------
-- PRG1 --
-- A = B * (MC * MD - ME * e) --
-- <NAME> --
-- IP-53 --
-----------------------------------------
with Ada.Text_IO, Ada.Integer_Text_IO,
Ada.Synchronous_Task_Control;
use A... |
1,532 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/4zsytaco.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
1,533 | ada | 20 | charlie5/lace | 1-base/math/source/generic/applied/statistics/any_math-any_statistics.ads | <filename>1-base/math/source/generic/applied/statistics/any_math-any_statistics.ads
generic
package any_Math.any_Statistics
is
pragma Pure;
pragma Optimize (Time);
end any_Math.any_Statistics;
|
1,534 | ada | 80 | thindil/steamsky | src/crafts.ads | -- Copyright 2016-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) a... |
1,535 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/old/tlsf-block-operations_old.adb | <filename>tlsf/src/old/tlsf-block-operations_old.adb<gh_stars>1-10
with System.Storage_Elements;
package body TLSF.Block.Operations_Old with SPARK_Mode is
package SSE renames System.Storage_Elements;
function Get_System_Address(Base : System.Address;
Addr : Addre... |
1,536 | ada | 15 | mgrojo/adalib | ada-wide_characters.ads | <filename>ada-wide_characters.ads<gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 199... |
1,537 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/opengl-visual.adb | with
ada.unchecked_Deallocation;
package body openGL.Visual
is
package body Forge
is
function new_Visual (Model : in openGL.Model.view;
Scale : in Vector_3 := (1.0, 1.0, 1.0);
is_Terrain : in Boolean := False) return openGL.Visual.view
... |
1,538 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-signal.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/g-signal.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,539 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp4/exemple_dates.adb | <filename>1A/S5/PIM/tps/tp4/exemple_dates.adb
with Ada.Text_IO;
use Ada.Text_IO;
with Dates;
use Dates;
procedure Exemple_Dates is
Une_Date : T_Date;
begin
-- Initialiser une date
Initialiser (Une_Date, 1, OCTOBRE, 2018);
-- L'afficher
Afficher (Une_Date);
New_Line;
end Exemple_Dates;
|
1,540 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/sam4s/svd/i-sam-sysc.ads | --
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAM4SD32C.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package Interfaces.SAM.SYSC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Registers --
---------------
-... |
1,541 | ada | 0 | xeenta/learning-ada | src/002/a.adb | <filename>src/002/a.adb<gh_stars>0
with Person;
with Ada.Text_IO; use Ada.Text_IO;
package body A is
procedure Print_Modify is
package I is new Ada.Text_IO.Integer_IO (Integer);
begin
I.Put (Person.Unit_Age); New_Line;
Person.Unit_Age := 10;
end Print_Modify;
end A;
|
1,542 | ada | 0 | persan/advent-of-code-2020 | src/day-7/adventofcode-day_7-main.adb | <reponame>persan/advent-of-code-2020<filename>src/day-7/adventofcode-day_7-main.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_7.Main is
begin
Put_Line ("Day-7");
end Adventofcode.Day_7.Main;
|
1,543 | ada | 0 | fintatarta/fakedsp | Ada/src/fakelib/fakedsp.ads | <filename>Ada/src/fakelib/fakedsp.ads
--****p* Fakedsp/Fakedsp
-- DESCRIPTION
-- The library fakedsp allows to write code with a DSP-style on a normal PC.
-- I wrote this to help my students in doing their lab activities.
--
-- The user of the library will be most probably interested in
-- the package Fakedsp.Car... |
1,544 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/a54b02a.ada | -- A54B02A.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... |
1,545 | ada | 0 | Letractively/ada-awa | awa/src/awa-services-filters.adb | <reponame>Letractively/ada-awa
-----------------------------------------------------------------------
-- awa-services-filters -- Setup service context in request processing flow
-- Copyright (C) 2011, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
1,546 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd4051b.ada | <reponame>best08618/asylo
-- CD4051B.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... |
1,547 | ada | 15 | jquorning/dynamo | src/yaml/text.ads | <filename>src/yaml/text.ads
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers;
with Ada.Strings.UTF_Encoding;
with Ada.Strings.Unbounded;
with System.Storage_Elements;
package Text is
-- this package defines a reference-counted... |
1,548 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-events-collections.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,549 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-arrow-colored.adb | with
openGL.Primitive.indexed;
package body openGL.Model.arrow.colored
is
---------
--- Forge
--
function to_Arrow (Color : in openGL.Color := Palette.White;
line_Width : in Real := 1.0;
End_1,
End_2 : in Vector_3 ... |
1,550 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/external_file_manager.adb | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice a... |
1,551 | ada | 0 | bracke/Meaning | source/RASCAL-StrongHelp.ads | <reponame>bracke/Meaning
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
1,552 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-gpio.ads | <reponame>JCGobbi/Nucleo-STM32H743ZI<gh_stars>0
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.GPIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
... |
1,553 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-event_names.ads | <gh_stars>0
package Eu_Projects.Event_Names is
Begin_Name : constant Dotted_Identifier := To_Bounded_String ("begin");
End_Name : constant Dotted_Identifier := To_Bounded_String ("end");
Duration_Name : constant Dotted_Identifier := To_Bounded_String ("duration");
Event_Time_Name : constant Dotted_... |
1,554 | ada | 286 | auzkok/libagar | ada/gui/demo/myeventhandler.adb | <reponame>auzkok/libagar
with Ada.Text_IO;
package body myeventhandler is
procedure Ping (Event : EV.Event_Access) is begin
Ada.Text_IO.Put_Line ("Ping");
end;
procedure Some_Event (Event : EV.Event_Access) is
My_String : constant String := EV.Get_String (Event, 1); -- by index
My_Float ... |
1,555 | ada | 1 | MatrixMike/AdaDemo1 | demo3/demo.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
--05.02.2018 20:19:12
--http://www.radford.edu/nokie/classes/320/Tour/procs.funcs.html
procedure demo is
procedure printlines (numLines, numChars : Natural; c : Character) is
begin
for i in 1 .. numLines loop
for j in 1 .. numChars loop
-- p... |
1,556 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-counters/regtests/awa-counters-modules-tests.adb | -----------------------------------------------------------------------
-- awa-wikis-modules-tests -- Unit tests for wikis service
-- Copyright (C) 2015 <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... |
1,557 | ada | 1 | brucegua/moocos | tools/scitools/sample/mahjongg/input_ln.adb | <filename>tools/scitools/sample/mahjongg/input_ln.adb
WITH TileADT, Text_IO;
PACKAGE BODY Input_Line IS
--
-- IMPLEMENTATION of Input_Line ADT
--
-- Maintenance Note
-- To add or modify commands, you'll need to change:
-- Case statement in Get_Command
-- enumerated type Command in specification
-- ... |
1,558 | ada | 20 | charlie5/lace | 3-mid/impact/applet/test/other/box_box_collision/launch_box_box_collision_test.adb | <reponame>charlie5/lace
with impact.d3.Collision.Configuration.default,
impact.d3.Collision.Broadphase.bounding_volume_Tree,
impact.d3.Dispatcher.collision,
impact.d3.constraint_Solver.sequential_impulse,
impact.d3.Space.dynamic.discrete,
impact.d3.Shape.convex.internal.polyhedral.box,
... |
1,559 | ada | 76 | yannickmoy/SPARKNaCl | stress/sparknacl-tests.ads | package SPARKNaCl.Tests
is
-- Additional stress test cases for NaCl operations.
-- This is a child package of SPARKNaCl so these bodies
-- can see the private part and operations of SPARKNaCl.
procedure GF_Stress;
procedure Car_Stress;
procedure Diff_Car_Stress;
procedure Pack_Stress;
end S... |
1,560 | ada | 5 | ianloic/unladen-swallow | Util/llvm/test/FrontendAda/negative_field_offset.adb | <reponame>ianloic/unladen-swallow
-- RUN: %llvmgcc -c %s
with System;
procedure Negative_Field_Offset (N : Integer) is
type String_Pointer is access String;
-- Force use of a thin pointer.
for String_Pointer'Size use System.Word_Size;
P : String_Pointer;
procedure Q (P : String_Pointer) is
begin
... |
1,561 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/fname.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,562 | ada | 60 | RREE/ada-util | samples/xmlrd.adb | -----------------------------------------------------------------------
-- xrds -- XRDS parser example
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-... |
1,563 | ada | 0 | persan/AUnit-addons | src/framework/aunit-suite_builders_generic.ads | with AUnit.Test_Cases;
with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
with GNAT.Source_Info;
private with Ada.Finalization;
private with Ada.Strings.Unbounded;
generic
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with private;
package AUnit.Suite_Builders_Generic is
type Builder is tagged limited pri... |
1,564 | ada | 1 | mullikine/RosettaCodeData | Task/Topswops/Ada/topswops.ada | <reponame>mullikine/RosettaCodeData
with Ada.Integer_Text_IO, Generic_Perm;
procedure Topswaps is
function Topswaps(Size: Positive) return Natural is
package Perms is new Generic_Perm(Size);
P: Perms.Permutation;
Done: Boolean;
Max: Natural;
function Swapper_Calls(P: Perms.Permutatio... |
1,565 | ada | 3 | charlie5/aIDE | source/adam-comment.adb | <filename>source/adam-comment.adb
with
AdaM.Factory;
package body AdaM.Comment
is
-- Storage Pool
--
record_Version : constant := 1;
max_Comments : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
... |
1,566 | ada | 2 | glencornell/ada-socketcan | src/sockets-can-broadcast_manager.adb | -- MIT License
--
-- Copyright (c) 2021 <NAME> <<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 Software without restriction, including without limitation the rights
-- to use, copy, mo... |
1,567 | ada | 9 | reznikmm/clic | src/clic-tty.ads | with ANSI;
package CLIC.TTY
with Preelaborate
is
-- Color/Formatting related subprograms. These won't have any
-- effect if a redirection of output is detected, or if global
-- flag Simple_Logging.Is_TTY is false.
-- Re-expose for clients
package ANSI renames Standard.ANSI;
function Is_TTY ret... |
1,568 | ada | 1 | stcarrez/babel | src/babel-streams-refs.ads | -----------------------------------------------------------------------
-- babel-streams-refs -- Stream management
-- Copyright (C) 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance wi... |
1,569 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-smart_pointers.adb | -- 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
-... |
1,570 | ada | 33 | ytomino/drake | source/streams/a-textio.ads | pragma License (Unrestricted);
with Ada.Formatting;
with Ada.IO_Exceptions;
with Ada.IO_Modes;
with Ada.Unchecked_Deallocation;
private with Ada.Finalization;
private with Ada.Naked_Text_IO;
private with Ada.Unchecked_Reallocation;
private with System.Growth;
package Ada.Text_IO is
type File_Type is limited private... |
1,571 | ada | 4 | stcarrez/ada-lzma | src/lzma_lzma_h.ads | <gh_stars>1-10
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Lzma.Base;
with Ada.Streams;
with System;
package lzma_lzma_h is
-- unsupported macro: LZMA_FILTER_LZMA1 LZMA_VLI_C(0x4000000000000001)
-- unsupported macro: LZMA_FILTER_LZMA2 LZMA_VLI_C(0x21)
-- unsupported macro: LZMA_D... |
1,572 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74302b.ada | -- C74302B.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... |
1,573 | ada | 33 | ytomino/drake | source/textio/machine-w64-mingw32/s-ntitco.adb | <reponame>ytomino/drake
with C.wincon;
with C.windef;
package body System.Native_Text_IO.Terminal_Colors is
use type C.windef.WORD;
Initial_Attributes_Assigned : Boolean := False;
Initial_Attributes : C.windef.WORD;
-- implementation
function RGB_To_Color (Item : Ada.Colors.RGB) return Color is
... |
1,574 | ada | 7 | stcarrez/resource-embedder | regtests/are-testsuite.ads | <reponame>stcarrez/resource-embedder
-----------------------------------------------------------------------
-- are-testsuite -- Testsuite for are
-- Copyright (C) 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in... |
1,575 | ada | 2 | thindil/tashy2 | tests/tcl-lists-test_data-tests.ads | <gh_stars>1-10
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tcl.Lists.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Lists.Test_Data
... |
1,576 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-point_collector.adb | <reponame>charlie5/lace
package body impact.d3.collision.point_Collector
is
overriding procedure addContactPoint (Self : in out Item; normalOnBInWorld : in math.Vector_3;
pointInWorld : in math.Vector_3;
... |
1,577 | ada | 6 | osannolik/ada-canopen | src/aco-generic_entry_types.adb | <reponame>osannolik/ada-canopen
with Ada.Unchecked_Conversion;
with ACO.Utils.Byte_Order;
package body ACO.Generic_Entry_Types is
use ACO.Utils.Byte_Order;
function Swap (X : Byte_Array) return Byte_Array is
(Byte_Array (Swap_Bus (Octets (X))))
with Inline;
function Read (This : Entry_Type) return ... |
1,578 | ada | 5 | docandrew/troodon | include/bits_uio_ext_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with sys_types_h;
limited with bits_types_struct_iovec_h;
package bits_uio_ext_h is
RWF_HIPRI : constant := 16#00000001#; -- /usr/include/bits/uio-ext.h:45
RWF_DSYNC : constant := 16#00000002#; -- /usr/include/bits/uio-ext.h:4... |
1,579 | ada | 0 | AntonMeep/endianness | tests/src/endianness_tests.adb | with AUnit.Reporter.Text;
with AUnit.Run;
with Tests;
procedure Endianness_Tests is
procedure Runner is new AUnit.Run.Test_Runner (Tests.Suite);
Reporter : AUnit.Reporter.Text.Text_Reporter;
begin
Reporter.Set_Use_ANSI_Colors (True);
Runner (Reporter);
end Endianness_Tests;
|
1,580 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl-keysym.ads |
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- <NAME> ... |
1,581 | ada | 0 | Ada-bindings-project/a-lmsensors | src/gen/sensors-libsensors-sensors_error_h.ads | <reponame>Ada-bindings-project/a-lmsensors
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package Sensors.libSensors.sensors_error_h is
SENSORS_ERR_WILDCARDS : constant := 1; -- /usr/include/sensors/error.h:25
SENSORS_ERR_NO_ENTRY : constant := 2; ... |
1,582 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/g-sehash.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
1,583 | ada | 1 | Fabien-Chouteau/tiled-code-gen | src/tcg-outputs-rste.adb | ------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- --
-- ... |
1,584 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f3/delay/main.adb | <reponame>ekoeppen/STM32_Generic_Ada_Drivers<filename>examples/stm32f3/delay/main.adb
with Last_Chance_Handler; pragma Unreferenced (Last_Chance_Handler);
with Ada.Real_Time; use Ada.Real_Time;
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32_SVD.RCC;
procedure Main is
package GPIO renames STM32GD.GPIO;
... |
1,585 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-geometry-vbo.adb | pragma Warnings (Off);
pragma Style_Checks (Off);
-------------------------------------------------------------------------
-- GL.Geometry - GL geometry primitives
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, prov... |
1,586 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-dmotpr.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
1,587 | ada | 4 | joffreyhuguet/curve25519-spark2014 | src/conversion.ads | <gh_stars>1-10
with Big_Integers; use Big_Integers;
with Types; use Types;
with Construct_Conversion_Array;
package Conversion with
SPARK_Mode,
Ghost
is
pragma Annotate (GNATprove, Terminating, Conversion);
Conversion_Array : constant Conversion_Array_Type
:= Construct_Conversion_Array.Conversio... |
1,588 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Bitmap-Midpoint-circle-algorithm/Ada/bitmap-midpoint-circle-algorithm-2.ada | X : Image (1..16, 1..16);
begin
Fill (X, White);
Circle (X, (8, 8), 5, Black);
Print (X);
|
1,589 | ada | 32 | robdaemon/AdaYaml | src/implementation/yaml-dom-dumping.adb | <reponame>robdaemon/AdaYaml<gh_stars>10-100
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers.Hashed_Maps;
with System.Address_To_Access_Conversions;
with System.Storage_Elements;
with Yaml.Dom.Node;
with Yaml.Events.Queue.Stream;
wit... |
1,590 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sequio.adb | <reponame>orb-zhuchen/Orb<filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-sequio.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
1,591 | ada | 22 | FardaleM/metalang | out/aaa_021if.adb | <reponame>FardaleM/metalang<gh_stars>10-100
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 aaa_021if is
type stringptr is access all char_array;
procedure PString(s : stri... |
1,592 | ada | 4,668 | OfekShilon/compiler-explorer | examples/ada/Square_Executable.adb | with Ada.Command_Line;
with Ada.Text_IO;
function Example return Integer is
function Square(num : Integer) return Integer is
begin
return num**2;
end Square;
function ReadCmdArgumentOrDefault(default: Integer) return Integer is
begin
if Ada.Command_Line.Argument_Count > 0 then
... |
1,593 | ada | 1 | Kurinkitos/Twizy-Security | src/interface_utils.adb | package body Interface_utils
with SPARK_Mode
is
function Convert_C_Bool(input : Extensions.bool) return Boolean
is
begin
if (input > 0) then
return True;
else
return False;
end if;
end Convert_C_Bool;
begin
null;
end Interface_utils;
|
1,594 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/gnatlbr.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,595 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/glx/opengl-surface.adb | with
openGL.Context,
interfaces.C;
package body openGL.Surface -- TODO: Finish this package.
is
use Glx,
Interfaces;
visual_Attributes : array (Positive range <>) of aliased C.int := (GLX_X_RENDERABLE, 1,
GLX_DRAWABLE_... |
1,596 | ada | 204 | spr93/whitakers-words | src/words_engine/words_engine-list_package.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... |
1,597 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/mspgd-gpio-pin.adb | <gh_stars>0
with MSP430_SVD; use MSP430_SVD;
with MSP430_SVD.PORT_1_2; use MSP430_SVD.PORT_1_2;
with MSP430_SVD.ADC10; use MSP430_SVD.ADC10;
with System.Machine_Code; use System.Machine_Code;
with System;
package body MSPGD.GPIO.Pin is
procedure BIS (N : System.Address; Bit: UInt3) is
begin
-- Asm ("bis ... |
1,598 | ada | 1 | TamaMcGlinn/ada_raspio | src/raspio-gpio-encoder.ads | package Raspio.GPIO.Encoder is
Encoder_Size : constant := 2;
type Encoder_Pins is array (1 .. Encoder_Size) of Pin_Type;
type Encoder_Pin_Values is array (1 .. Encoder_Size) of Pin_State;
type Encoder_Type is limited private;
type Diff_Type is range -1 .. 1;
function Create
(Pin_A ... |
1,599 | ada | 13 | jrmarino/zstd-ada | examples/dictionary_compression/demo_ada.adb | <filename>examples/dictionary_compression/demo_ada.adb
with Zstandard.Functions; use Zstandard.Functions;
with Ada.Command_line; use Ada.Command_Line;
with Ada.Directories; use Ada.Directories;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada is
begin
if Argument_Count < 2 then
Put_Line ("Zstandard versi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.