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 |
|---|---|---|---|---|---|
30,800 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpobmu.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
30,801 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52103q.ada | -- C52103Q.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... |
30,802 | ada | 0 | sonneveld/adazmq | examples/src/wuproxy.adb | -- Weather proxy device
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with Ada.Calendar;
with ZMQ;
procedure WUPRoxy is
use type Ada.Calendar.Time;
use type GNAT.Formatted_String.Formatted_String;
function Main return Ada.Command_Line.Exit_Status
is
begin
declare
... |
30,803 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-vxwext.ads | <filename>gcc-gcc-7_3_0-release/gcc/ada/s-vxwext.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
30,804 | ada | 1 | io7m/coreland-opengl-ada | opengl-state.ads | <reponame>io7m/coreland-opengl-ada
package OpenGL.State is
type Capability_t is
(Alpha_Test,
Auto_Normal,
Blend,
Color_Array,
Color_Logic_Op,
Color_Material,
Color_Sum,
Color_Table,
Convolution_1D,
Convolution_2D,
Cull_Face,
Depth_Test,
Dither,
Edge_Flag_Array,
... |
30,805 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/pr2/ensembles_chainage.adb | -- Implantation du module Ensembles.
with Ada.Unchecked_Deallocation;
package body Ensembles_Chainage is
-- Libérer la mémoire alloué auparavant.
procedure Free is
new Ada.Unchecked_Deallocation (T_Cellule, T_Ensemble);
procedure Initialiser (Ensemble : out T_Ensemble) is
begin
Ensembl... |
30,806 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/freetype-face_size.ads | with
freeType_C.FT_Face,
freeType_C.FT_Size;
package freetype.face_Size
--
-- The face_Size class provides an abstraction layer for the Freetype Size type.
--
is
type Item is tagged private;
type View is access all Item'Class;
---------
--- Forge
--
procedure destruct (Self : in out Ite... |
30,807 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-lists.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-lists.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
30,808 | ada | 0 | MorganPeterson/avi-editor | src/utilities_package.adb | <reponame>MorganPeterson/avi-editor<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
with Editor_Package; use Editor_Package;
package body Utilities_Package is
function Read_File (Name : Unbounded_String; V : View) return Boolean is
Input : File_Type;... |
30,809 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/x86_64/seh/s-unbase.adb | <filename>source/machine-w64-mingw32/x86_64/seh/s-unbase.adb
-- for Win64 SEH
pragma Check_Policy (Trace => Ignore);
with System.Address_To_Constant_Access_Conversions;
with System.Storage_Elements;
with C.basetsd;
with C.winnt;
separate (System.Unwind.Backtrace)
package body Separated is
pragma Suppress (All_Check... |
30,810 | ada | 1 | leo-brewin/adm-bssn-numerical | adm/code/src/admbase-runge.ads | package ADMBase.Runge is
procedure set_time_step;
procedure set_time_step_min;
procedure rk_step
(ct : Real;
cw : Real;
params : SlaveParams);
procedure beg_runge_kutta
(params : SlaveParams);
procedure end_runge_kutta
(params : SlaveParams);
end ADMBase.Runge;
|
30,811 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-dram.ads |
package Memory.DRAM is
type DRAM_Type is new Memory_Type with private;
type DRAM_Pointer is access all DRAM_Type'Class;
function Create_DRAM(cas_cycles : Time_Type; -- CAS latency
rcd_cycles : Time_Type; -- RCD latency
rp_cycles : Time_Type; ... |
30,812 | ada | 33 | ytomino/drake | source/numerics/a-ngrear.adb | with Ada.Numerics.Generic_Arrays;
package body Ada.Numerics.Generic_Real_Arrays is
package Elementary_Functions is
subtype Float_Type is Real;
function Sqrt (X : Float_Type'Base) return Float_Type'Base;
end Elementary_Functions;
package body Elementary_Functions is
function Sqrt (X : Fl... |
30,813 | ada | 0 | PThierry/ewok-kernel | src/arch/socs/stm32f439/soc-nvic.adb | --
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <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... |
30,814 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/static_initializer.ads | -- { dg-do compile }
package static_initializer is
type Vector is array (1 .. 3) of Float;
type Arr is array (Integer range 1 .. 3) of Vector;
Pos : constant Arr := ((0.0, 1.0, 2.0),
(0.5, 1.5, 2.5),
(1.0, 2.0, 4.0));
end;
-- { dg-final { scan-assembler-not "... |
30,815 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41306b.ada | -- C41306B.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... |
30,816 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-location3d.adb | package body afrl.cmasi.location3D is
function getFullLmcpTypeName(this : Location3D) return String is ("afrl.cmasi.location3D.Location3D");
function getLmcpTypeName(this : Location3D) return String is ("Location3D");
function getLmcpType(this : Location3D) return UInt32_t is (CMASIEnum'Pos(LOCATION3D_ENUM)... |
30,817 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline2.adb | -- { dg-do run }
-- { dg-options "-gnatws" }
with System; use System;
procedure Trampoline2 is
A : Integer;
type FuncPtr is access function (I : Integer) return Integer;
function F (I : Integer) return Integer is
begin
return A + I;
end F;
P : FuncPtr := F'Access;
CA : System.Address := F'Code_A... |
30,818 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-dcmi.ads | <gh_stars>10-100
-- This spec has been automatically generated from STM32F427x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
with HAL;
package STM32_SVD.DCMI is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------
-- CR_Register --... |
30,819 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-response-ike-isa_skip_create_first-convert.ads | <filename>specs/ada/common/tkmrpc-response-ike-isa_skip_create_first-convert.ads
with Ada.Unchecked_Conversion;
package Tkmrpc.Response.Ike.Isa_Skip_Create_First.Convert is
function To_Response is new Ada.Unchecked_Conversion (
Source => Isa_Skip_Create_First.Response_Type,
Target => Response.Data_Type... |
30,820 | ada | 33 | ytomino/drake | source/numerics/a-nlrear.ads | pragma License (Unrestricted);
with Ada.Numerics.Generic_Real_Arrays;
package Ada.Numerics.Long_Real_Arrays is
new Generic_Real_Arrays (Long_Float);
pragma Pure (Ada.Numerics.Long_Real_Arrays);
|
30,821 | ada | 0 | aeszter/sharepoint2ics | src/events.ads | <reponame>aeszter/sharepoint2ics<filename>src/events.ads<gh_stars>0
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO;
with Ada.Calendar;
with Ada.Strings;
with Ada.Strings.Unbounded;
with DOM.Core;
package Events is
type Event_Type is (None, Normal, Reserved, Deleted, Excepted);
type Interval is (daily... |
30,822 | ada | 8 | qunying/AdaTutor | oa3/nextdate.ada | <gh_stars>1-10
with Text_IO; use Text_IO;
procedure Nextdate is
type Month_Type is
(Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, Dec);
subtype Day_Subtype is Integer range 1 .. 31;
type Date is
record
Day : Day_Subtype;
Month : Month_Type;
Year : Positive;
... |
30,823 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/7straceb.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,824 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-dd_constructors.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
30,825 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/par-load.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,826 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_ch2.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,827 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/support/repbody.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/support/repbody.ada<gh_stars>1-10
-- REPBODY.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... |
30,828 | ada | 52 | onox/orka | orka/src/gl/interface/gl.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0... |
30,829 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/fib.adb | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/fib.adb
function Fib(x: in Integer) return Integer is
Result : Integer;
begin
if x = 0 then
Result := 0;
elsif x = 1 then
Result := 1;
else
Result := Fib(x-2) + Fib(x-1);
end if;
return Result;
end Fib;
|
30,830 | ada | 0 | thierr26/ada-apsepp | src/apsepp-test_node_class-case_stub.ads | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Generic_Case_And_Suite_Run_Body;
package Apsepp.Test_Node_Class.Case_Stub is
type Test_Case_Stub is limited new Test_Node_Interfa with private
with Type_Invariant'Class =>
Test_Ca... |
30,831 | ada | 0 | sebsgit/textproc | src/morphology.adb | <filename>src/morphology.adb
with PixelArray; use PixelArray;
package body Morphology is
function maxPixel(image: PixelArray.ImagePlane; x, y: Natural; size: Positive) return PixelArray.Pixel is
result: PixelArray.Pixel;
begin
result := image.get(x, y);
for py in y - size / 2 .. y + size / 2 lo... |
30,832 | ada | 33 | ytomino/drake | source/hash/a-cmuha3.adb | <reponame>ytomino/drake
package body Ada.Containers.Murmur_Hash_3 is
-- use MurmurHash3_x86_32
procedure Step (h1 : in out Hash_Type; Item : Hash_Type);
procedure Step (h1 : in out Hash_Type; Item : Hash_Type) is
c1 : constant := 16#cc9e2d51#;
c2 : constant := 16#1b873593#;
k1 : Hash_Type :... |
30,833 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45251a.ada | -- C45251A.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... |
30,834 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbpara__x86_64.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
30,835 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/static_initializer5_pkg.ads | package Static_Initializer5_Pkg is
type Arr is array (Positive range <>) of Character;
type Buffer_Type (Length : Positive) is record
Content : Arr (1 .. Length);
end record;
type Buffer_Access is access Buffer_Type;
type Rec is tagged record
Buffer : Buffer_Access;
end record;
Nul... |
30,836 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_flip.adb |
with Memory.Transform.Flip; use Memory.Transform.Flip;
with Parser.Transform_Parser;
separate (Parser)
procedure Parse_Flip(parser : in out Parser_Type;
result : out Memory_Pointer) is
package Flip_Parser is new Transform_Parser(
T_Type => Flip_Type,
T_Pointer ... |
30,837 | ada | 65 | PThierry/ewok-kernel | src/arch/socs/stm32f439/soc-interrupts.adb | --
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <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... |
30,838 | ada | 0 | fintatarta/fakedsp | Ada/src/fakelib/utilities-option_lists.adb | pragma Ada_2012;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
with Ada.Characters.Handling;
with Utilities.Tokenize;
with Ada.Strings;
package body Utilities.Option_Lists is
-----------
-- Parse --
-----------
function Parse
(Input : String;
E... |
30,839 | ada | 3 | Heziode/aoc-ada-2021 | 03/2/src/main.adb | with Ada.Containers.Vectors,
Ada.Exceptions,
Ada.Integer_Text_IO,
Ada.Strings.Unbounded,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Containers, Ada.Strings.Unbounded, Ada.Text_IO;
use Utils;
subtype Binary_Values is Natural range 0 .. 1;
package Unbounded_String_Vectors is ne... |
30,840 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/alea.ads | <reponame>MOUDDENEHamza/ENSEEIHT<filename>1A/S5/PIM/projet/src/alea.ads
generic
Lower_Bound, Upper_Bound : Integer; -- bounds in which random numbers are generated
-- { Lower_Bound <= Upper_Bound }
package Alea is
-- Compute a random number in the range Lower_Bound..Upper_Bound.
--
-- Notice that Ada advocates t... |
30,841 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Sorting-algorithms-Heapsort/Ada/sorting-algorithms-heapsort-1.ada | generic
type Element_Type is private;
type Index_Type is (<>);
type Collection is array(Index_Type range <>) of Element_Type;
with function "<" (Left, right : element_type) return boolean is <>;
procedure Generic_Heapsort(Item : in out Collection);
|
30,842 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-tasloc.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
30,843 | ada | 0 | bkold/Ada_Sandpiles | main.adb | <reponame>bkold/Ada_Sandpiles<filename>main.adb<gh_stars>0
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time;
with Ada.Unchecked_Conversion;
procedure Main is
pragma Suppress(All_Checks);
Matrix_Size : constant := 3200;
type Matrix_Range is range 0 .. Matrix_Size - ... |
30,844 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-cohata.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
30,845 | ada | 1 | jed-frey/e200-gcc | build_gnu/binutils/gdb/testsuite/gdb.ada/unc_arr_ptr_in_var_rec/foo.adb | -- Copyright 2012-2014 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
30,846 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Sort-an-array-of-composite-structures/Ada/sort-an-array-of-composite-structures-1.ada | <gh_stars>1-10
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Generic_Array_Sort;
procedure Demo_Array_Sort is
function "+" (S : String) return Unbounded_String renames To_Unbounded_String;
type A_Composite is
record
Name ... |
30,847 | ada | 30 | jscparker/math_packages | ordinary/sinu_2.adb | <reponame>jscparker/math_packages
package body Sinu_2 is
function Norm (Y : Dynamical_Variable)
return Real
is
Sum : Real := +0.0;
begin
for i in Dyn_Index loop
Sum := Sum + Abs Y(i);
--Sum := Sum + Y(i) * Y(i);
end loop;
return Sum;
end Norm;
function "-"
(Left... |
30,848 | ada | 0 | alire-project/sdlada | src/image/sdl-images.adb | --------------------------------------------------------------------------------------------------------------------
-- 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 liable for any damages
-- arising from the ... |
30,849 | ada | 0 | reznikmm/gela | source/oasis/program-element_filters.ads | -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements;
package Program.Element_Filters is
pragma Pure;
function Is_Pragma
(Self : not null Program.Elements.Element_Access) return Boolean is
... |
30,850 | ada | 60 | RREE/ada-util | regtests/util-concurrent-tests.ads | -----------------------------------------------------------------------
-- concurrency.tests -- Unit tests for concurrency package
-- Copyright (C) 2009, 2010, 2011, 2012, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
30,851 | ada | 0 | persan/a-taglib | tests/src/taglib-tests.ads | package taglib.Tests is
end taglib.Tests;
|
30,852 | ada | 12 | mgrojo/protobuf | source/runtime/pb_support-internal.adb | -- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, including without limitation
-- the rights to use, copy, modify... |
30,853 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt38.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt38.adb
-- { dg-do run }
-- { dg-options "-O2 -gnatn" }
with Opt38_Pkg; use Opt38_Pkg;
procedure Opt38 is
begin
Test (-1);
end;
|
30,854 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-callbacks.ads | -----------------------------------------------------------------------
-- mat-callbacks - Callbacks for Gtk
-- 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 with the License.
-- You ... |
30,855 | ada | 1 | ytomino/vampire | source/tabula-calendar-time_io.ads | <filename>source/tabula-calendar-time_io.ads<gh_stars>1-10
-- The Village of Vampire by YT, このソースコードはNYSLです
with Serialization;
package Tabula.Calendar.Time_IO is
procedure IO (
Serializer : not null access Serialization.Serializer;
Name : in String;
Value : in out Ada.Calendar.Time);
procedure IO (
Seriali... |
30,856 | ada | 0 | iyan22/AprendeAda | ejercicios2/prueba_posicion_en_matriz.adb | <filename>ejercicios2/prueba_posicion_en_matriz.adb<gh_stars>0
with Ada.Text_Io, Ada.Integer_Text_Io;
use Ada.Text_Io, Ada.Integer_Text_Io;
with matrices,posicion_en_matriz;
use matrices;
procedure prueba_posicion_en_matriz is
M1:Matriz_De_Enteros(1..4, 1..10);
numero, posicion_fila, posicion_columna: Integer... |
30,857 | ada | 6 | My-Colaborations/ada-servlet | src/servlet-security-filters-oauth.ads | -----------------------------------------------------------------------
-- servlet-security-filters-oauth -- OAuth Security filter
-- Copyright (C) 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complianc... |
30,858 | ada | 24 | svn2github/matreshka | source/web/tools/wsdl2ada/wsdl-parsers.ads | <filename>source/web/tools/wsdl2ada/wsdl-parsers.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
30,859 | ada | 1 | brucegua/moocos | tools/scitools/sample/mahjongg/board.adb | <filename>tools/scitools/sample/mahjongg/board.adb
-------------------------------------------------------------------------------
--
-- BOARD ADT (implementation)
--
-------------------------------------------------------------------------------
WITH TileADT, Display, Screen, stack_package, Queue_Package,... |
30,860 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/cpp1.ads | -- { dg-do compile }
package cpp1 is
type Root_Interface is interface;
type Typ is new Root_Interface with record
TOTO : Integer;
pragma CPP_Vtable (TOTO);
end record;
end cpp1;
|
30,861 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | drivers/drivers-nrf24.adb | <filename>drivers/drivers-nrf24.adb<gh_stars>0
with System;
with Utils;
package body Drivers.NRF24 is
package IRQHandler is new HAL.Pin_IRQ (Pin => IRQ);
type UInt2 is mod 2 ** 2;
type UInt3 is mod 2 ** 3;
type Register_Type is (
CONFIG,
EN_AA,
EN_RXADDR,
SETUP_AW,
SETUP_RE... |
30,862 | ada | 0 | drm343/drm343.github.io | ch1/hello.adb | <reponame>drm343/drm343.github.io<filename>ch1/hello.adb
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
procedure Hello is
type Hello_Integer is array (Positive range 2 .. 4) of Integer;
V : hello_integer := (3, 5, 7);
procedure Say_Hello_To (Name : String) is
begin
... |
30,863 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/tasking/tasks.adb | <filename>examples/tasking/tasks.adb
with STM32GD.Board; use STM32GD.Board;
package body Tasks is
protected body Protect is
procedure Go is
begin
Active := True;
end Go;
entry Wait when Active is
begin
Active := False;
end Wait;
end Protect;
... |
30,864 | ada | 12 | TUM-EI-RCS/StratoX | tests/alternative-units/cosy.ads |
with Units; use Units;
with Generic_Unit_Vectors;
pragma Elaborate_All(Generic_Unit_Vectors);
package CoSy with SPARK_Mode is
type Spartial_Type is new Float with
Dimension_System =>
((Unit_Name => Meter_X, Unit_Symbol => "m_x", Dim_Symbol => "Lx"),
(Unit_Name => Meter_Y, Unit_Symbol => ... |
30,865 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-union_find.ads | <reponame>charlie5/lace
-- #include "LinearMath/btAlignedObjectArray.h"
private
with ada.Containers.Vectors,
ada.unchecked_Deallocation;
package impact.d3.union_Find
--
-- UnionFind calculates connected subsets
--
-- Implements weighted Quick Union with path compression optimization: could use short int... |
30,866 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52104l.ada | <reponame>best08618/asylo
-- C52104L.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... |
30,867 | ada | 1 | ytomino/vampire | source/vampire-forms.ads | <filename>source/vampire-forms.ads
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Calendar;
with Ada.Streams;
with Ada.Strings.Unbounded;
with Web.HTML;
with Tabula.Casts;
with Tabula.Villages;
package Vampire.Forms is
type Base_Page is (Index_Page, User_Page, User_List_Page, Village_Page);
type Templa... |
30,868 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-rident.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,869 | ada | 0 | ytomino/gnat4drake | g-io.adb | with Ada.Integer_Text_IO;
package body GNAT.IO is
procedure Put (Item : Integer) is
begin
Ada.Integer_Text_IO.Put (Item);
end Put;
end GNAT.IO;
|
30,870 | ada | 7 | kimtg/euler-ada | euler18.adb | with Ada.Text_IO;
procedure Euler18 is
Nums : array(Positive range <>, Positive range <>) of Natural :=
((75,00,00,00,00,00,00,00,00,00,00,00,00,00,00),
(95,64,00,00,00,00,00,00,00,00,00,00,00,00,00),
(17,47,82,00,00,00,00,00,00,00,00,00,00,00,00),
(18,35,87,10,00,00,00,00,00,00,00,00,00,00,0... |
30,871 | ada | 3 | mindviser/keepaSDK | ada-server/src/server/-skeletons.ads | <reponame>mindviser/keepaSDK
-- Keepa API
-- The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, use a Keep_Alive connection. Multip... |
30,872 | ada | 0 | annexi-strayline/ASAP-Modular_Hashing | modular_hashing-sha1.ads | <reponame>annexi-strayline/ASAP-Modular_Hashing<gh_stars>0
------------------------------------------------------------------------------
-- --
-- Modular Hash Infrastructure --
-- ... |
30,873 | ada | 5 | reznikmm/increment | source/base/incr-nodes-tokens.adb | <gh_stars>1-10
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Incr.Nodes.Tokens is
------------------
-- Constructors --
------------------
package body Constructors ... |
30,874 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-enumerations.ads | <reponame>joffreyhuguet/LmcpGen
package afrl.cmasi.enumerations is
type WavelengthBandEnum is (AllAny, EO, LWIR, SWIR, MWIR, Other);
for WavelengthBandEnum use (AllAny => 0, EO => 1, LWIR => 2, SWIR => 3, MWIR => 4, Other => 5);
type AltitudeTypeEnum is (AGL, MSL);
for AltitudeTypeEnum use (AGL => 0, M... |
30,875 | ada | 488 | rose-compiler/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element-definitions.adb | <gh_stars>100-1000
with Asis.Definitions;
with Asis.Elements;
with A4G.A_Types; use A4G.A_Types;
with Asis.Set_Get;
package body Asis_Adapter.Element.Definitions is
-- "Add_And_Return_* functions query ASIS for a single value or list of
-- values, add it to the Dot graph, and return the value. These functions
... |
30,876 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile2.ads | with volatile1; use volatile1;
package volatile2 is
type PData_Array is access Data_Array;
type Result_Desc is
record
Data : PData_Array;
end record;
type Result is access Result_Desc;
procedure Copy;
end volatile2;
|
30,877 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-io.ads | <filename>src/common/trendy_terminal-io.ads
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal 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 ... |
30,878 | ada | 19 | jrcarter/Ada_GUI | strings_edit-base64.ads | <reponame>jrcarter/Ada_GUI
-- --
-- package Copyright (c) <NAME> --
-- Strings_Edit.Base64 Luebeck --
-- Interface Autumn, 2014 --
-- ... |
30,879 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_discrete_type_definitions.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Discrete_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Dis... |
30,880 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_eor.adb | <reponame>strenkml/EE368
with Memory.Transform.EOR; use Memory.Transform.EOR;
with Parser.Transform_Parser;
separate (Parser)
procedure Parse_EOR(parser : in out Parser_Type;
result : out Memory_Pointer) is
package EOR_Parser is new Transform_Parser(
T_Type => Memory.Transf... |
30,881 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34012a.ada | -- C34012A.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... |
30,882 | ada | 5 | ianloic/unladen-swallow | Util/llvm/test/FrontendAda/placeholder.adb | -- RUN: %llvmgcc -c %s
procedure Placeholder is
subtype Bounded is Integer range 1 .. 5;
type Vector is array (Bounded range <>) of Integer;
type Interval (Length : Bounded := 1) is record
Points : Vector (1 .. Length);
end record;
An_Interval : Interval := (Length => 1, Points => (1 => 1));
gen... |
30,883 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c99005a.ada | -- C99005A.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... |
30,884 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2009c0.ada | <reponame>best08618/asylo
-- CA2009C0M.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 conta... |
30,885 | ada | 1 | mimo/Tracker | surface-window.ads | <filename>surface-window.ads
with Raylib;
package Surface.Window is
type Instance is abstract new Actor with private;
procedure Attach (Application : in out Reference);
procedure Run (Self : in out Instance'Class);
procedure Title (Self : in out Instance ; Title : String);
procedure Background_Color (S... |
30,886 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/regression/regression_library.ads | package Regression_Library is
function LibraryFun (Input : Boolean) return Boolean;
end Regression_Library;
|
30,887 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/fixedpnt.adb | -- { dg-do run }
procedure Fixedpnt is
A : Duration := 1.0;
B : Duration := Duration ((-1.0) * A);
begin
if B > 0.0 then
raise Constraint_Error;
end if;
end;
|
30,888 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/main/resources/project-templates/aws_simple_web_server/src/@_project_name_@.ads |
package @_Project_Name_@ is
pragma Pure;
Host : constant String := "@_host_@";
Port : constant := @_port_@;
end @_Project_Name_@;
|
30,889 | ada | 52 | onox/orka | orka/src/orka/interface/orka-containers-bounded_vectors.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
-... |
30,890 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-types.adb | -- 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
-... |
30,891 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/nucleo_f072rb/stm32gd-board.ads | <gh_stars>1-10
with STM32GD.GPIO; use STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with STM32GD.USART;
with STM32GD.USART.Peripheral;
with STM32GD.SPI;
with STM32GD.SPI.Peripheral;
with STM32GD.RTC;
with STM32GD.Clock;
with STM32GD.Clock.Tree;
with Drivers.Text_IO;
package STM32GD.Board is
package CLOCKS is new STM32GD.C... |
30,892 | ada | 24 | svn2github/matreshka | tools/ayacc/src/ayacc_file_names.adb |
with Ada.Characters.Handling;
with Ada.Directories;
with Ada.Strings.Unbounded;
with String_Pkg;
package body Ayacc_File_Names is
use Ada.Characters.Handling;
use Ada.Strings.Unbounded;
function "+" (Item : String) return Unbounded_String
renames To_Unbounded_String;
function "+" (Item : Unbounde... |
30,893 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/led_control.adb | <reponame>hgrodriguez/embedded-dashboard-console
.-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with RP.Device;
with RP.GPIO;
with ItsyBitsy;
package body LED_Control is
subtype LED_Type is RP.GPIO.GPIO_Point;
----------------------------------------------------------------------... |
30,894 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/impunit.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,895 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74302a.ada | <gh_stars>1-10
-- C74302A.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.... |
30,896 | ada | 17 | jrmarino/ravensource | bucket_4C/AdaBrowse/patches/patch-ad-driver.adb | <reponame>jrmarino/ravensource
--- ad-driver.adb.orig 2021-09-04 15:38:31 UTC
+++ ad-driver.adb
@@ -470,6 +470,7 @@ package body AD.Driver is
AIC.Set_File_Name
(AIC.Subprogram_Index, Canonical (S (S'First + 2 .. S'Last)));
elsif S = "-P" then
+ Error ("-P is ... |
30,897 | ada | 1 | nenofite/ada-genetic | genetic.adb | <reponame>nenofite/ada-genetic
with Ada.Containers.Generic_Constrained_Array_Sort;
package body Genetic is
-- Determine the sum of each gene's fitness within the gene pool.
function Total_Fitness (P : in Pool) return Float is
-- We will add up each gene's individual fitness.
Result : Float := 0.0;
... |
30,898 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Doubly-linked-list-Element-definition/Ada/doubly-linked-list-element-definition-3.ada | type Link is limited record
Next : not null access Link := Link'Unchecked_Access;
Prev : not null access Link := Link'Unchecked_Access;
Data : Integer;
end record;
|
30,899 | ada | 0 | jrcarter/Gnoga_Bar_Codes | gnoga_bar_codes_test.adb | -- Test program for Gnoga_Bar_Codes
--
-- Copyright (C) 2018 by PragmAda Software Engineering
--
-- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause
with Bar_Codes;
with Gnoga.Application.Singleton;
with Gnoga.Gui.Base;
with Gnoga.Gui.Element.Common;
with Gnoga.Gui... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.