id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
3,200 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-sdmmc.ads | 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.SDMMC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype POWER_PWRCTRL_Field is HAL.UInt2;
... |
3,201 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/99-Bottles-of-Beer/Ada/99-bottles-of-beer-1.ada | with Ada.Text_Io; use Ada.Text_Io;
procedure Bottles is
begin
for X in reverse 1..99 loop
Put_Line(Integer'Image(X) & " bottles of beer on the wall");
Put_Line(Integer'Image(X) & " bottles of beer");
Put_Line("Take one down, pass it around");
Put_Line(Integer'Image(X - 1) & " bottles ... |
3,202 | ada | 1 | Roldak/OpenGLAda | deps/FreeTypeAda/src/ft.ads | <gh_stars>1-10
-- part of FreeTypeAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Finalization;
with Interfaces.C;
with System;
private with Interfaces.C.Strings;
package FT is
pragma Preelaborate;
-- reference-counted smart pointer
type Library_Refer... |
3,203 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/machine_code1.adb | -- { dg-do compile }
-- { dg-options "-gnatws" }
with System.Machine_Code; use System.Machine_Code;
procedure machine_code1 is
A_Float : Float;
An_Other_Float : Float := -99999.0;
begin
An_Other_Float := An_Other_Float - A_Float;
Asm("", Inputs => (Float'Asm_Input ("m", A_Float)));
end;
|
3,204 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr12.adb | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-fdump-tree-original" }
package body Aggr12 is
procedure Print (Data : String) is
begin
null;
end;
procedure Test is
begin
Print (Hair_Color_Type'Image (A.I1));
Print (Hair_Color_Type'Image (A.I2));
end;
end Aggr12... |
3,205 | ada | 24 | svn2github/matreshka | source/web/tools/wsdl2ada/wsdl-analyzer.adb | <reponame>svn2github/matreshka<filename>source/web/tools/wsdl2ada/wsdl-analyzer.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --... |
3,206 | ada | 3 | daveshields/AdaEd | demos/intio.ada | <reponame>daveshields/AdaEd<gh_stars>1-10
with text_io; use text_io;
package integer_text_io is new integer_io(integer);
|
3,207 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-storages/src/awa-storages-beans.ads | -----------------------------------------------------------------------
-- awa-storages-beans -- Storage Ada Beans
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
--... |
3,208 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35508e.ada | -- C35508E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
3,209 | ada | 4 | DNSCatcher/DNSCatcher | src/dnscatcherd/dnscatcherd.adb | <gh_stars>1-10
-- Copyright 2019 <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, modify, m... |
3,210 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/mspgd-gpio-polled.ads | with MSPGD.GPIO.Pin;
generic
with package Pin is new MSPGD.GPIO.Pin (<>);
package MSPGD.GPIO.Polled is
pragma Preelaborate;
procedure Configure_Trigger (Event : Boolean := False; Rising : Boolean := False; Falling : Boolean := False);
procedure Wait_For_Trigger;
procedure Clear_Trigger;
function Tr... |
3,211 | ada | 0 | Letractively/ada-ado | src/sqlite/ado-statements-sqlite.adb | -----------------------------------------------------------------------
-- ADO Databases -- Database connections
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
-- Written by <NAME> (<EMAIL>)
--
-- This file is part of ADO.
--
-- This program is free software; you can redistribute it a... |
3,212 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd1c03b.ada | <gh_stars>1-10
-- CD1C03B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.... |
3,213 | ada | 80 | thindil/steamsky | src/statistics.ads | -- Copyright 2017-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... |
3,214 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/template_manager.adb | <filename>lib/aflexnat/template_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
-- provi... |
3,215 | ada | 1 | Scottx86-64/dotfiles-1 | source/pkgsrc/devel/gps/patches/patch-src__editor_src_src__editor__view.adb | $NetBSD: patch-src__editor_src_src__editor__view.adb,v 1.2 2014/04/30 16:32:20 marino Exp $
Disambiguation required to compile with FSF GNAT 4.9.0
--- src_editor/src/src_editor_view.adb.orig 2012-07-02 09:23:20.000000000 +0000
+++ src_editor/src/src_editor_view.adb
@@ -1789,6 +1789,7 @@ package body Src_Editor_View i... |
3,216 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/physics.ads | <gh_stars>10-100
with
float_Math.Geometry.D2,
float_Math.Geometry.D3,
float_Math.Algebra.linear.D3;
package Physics
--
-- Provides a physics interface for 2D/3D simulations.
--
is
pragma Pure;
package Math renames float_Math;
package Geometry_2D renames math.Geometry.d2;
... |
3,217 | ada | 60 | RREE/ada-util | src/base/events/util-events-timers.ads | <reponame>RREE/ada-util
-----------------------------------------------------------------------
-- util-events-timers -- Timer list management
-- 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 com... |
3,218 | ada | 0 | hbarrientosg/cs-mp | 06_mem/practica6-insertar.adb | separate(Practica6)
procedure Insertar(L: in out Lista; V: in Integer) is
Aux:pnodo;
begin
Aux := crear(V);
if L.Numelem = 0 then
L.inicio := aux;
l.fin := aux;
l.Numelem := 1;--inserto el primer elemento cuando la lista esta vacia
else
l.fin.siguiente := aux;
aux.anterior := L.Fin;
L.Fin := Aux;
l.Num... |
3,219 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38002b.ada | <gh_stars>1-10
-- C38002B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.... |
3,220 | ada | 0 | bkold/RISC-CPU-Assembler | Source/assemble_functions.adb | with Ada.Strings.Fixed;
Package body Assemble_Functions is
function Build (Source_File, Output_File : in out File_Type) return Boolean is
use Ada.Strings.Fixed;
Saved_Current_Line_Number : constant Positive := Current_Line_Number;
Saved_Instruction_Number : constant Natural := Instruction_Number;
begin
Curre... |
3,221 | ada | 1 | faelys/natools-web | src/natools-web-filters-stores.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,222 | ada | 1 | skill-lang/skillAdaTestSuite | test/annotation/test_null_annotation-write.adb | package body Test_Null_Annotation.Write is
File_Name : constant String := "tmp/test-null-annotation-write.sf";
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Null_Annotation.Write");
Ahven.Framework.Add_Test_Routine (T, Read_Written'Access, "read written");
Ahven.Framewo... |
3,223 | ada | 80 | thindil/steamsky | src/combat.adb | -- 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... |
3,224 | ada | 30 | jscparker/math_packages | disorderly/text_utilities.ads | <filename>disorderly/text_utilities.ads
-- Test handling for Random and Basic_Rand. Rewritten to pass gnatprove.
generic
No_Of_Seeds : Positive;
type Parent_Random_Int is mod <>;
package Text_Utilities
with Spark_Mode => On
is
pragma Pure;
--No_Of_Seeds : constant Positive := 3;
--type Parent_Ra... |
3,225 | ada | 0 | thierr26/ada-apsepp | src/_test/fixtures/apsepp_testing_system_test_fixture.ads | <reponame>thierr26/ada-apsepp
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Tags; use Ada.Tags;
with Ada.Characters.Handling; use Ada.Characters.Handling;
with Apsepp.Tags; use Apsepp.Tags;
with Apsepp.Characters; use Apse... |
3,226 | ada | 79 | Cre8or/OpenGLAda | opengl/src/implementation/gl-debug.adb | <filename>opengl/src/implementation/gl-debug.adb
-- part of OpenGLAda, (c) 2021 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Strings;
with System.Address_To_Access_Conversions;
with GL.API;
with GL.Enums.Getter;
package body GL.Debug is
procedure Message_Insert... |
3,227 | ada | 10 | persan/gdnative_ada | src/gdnative.adb | package body GDNative is
------------
-- To Str --
------------
function To_Str (S : Wide_String) return String is
Result : String (S'first .. S'last);
begin
for I in S'range loop Result (I) := Character'val (Wide_Character'pos (S (I))); end loop;
return Result;
end;
-------------
-- To Wi... |
3,228 | ada | 0 | wooky/aoc.kt | src/main/ada/main.adb | <reponame>wooky/aoc.kt
with Ada.Command_Line;
with Ada.Text_IO;
with AOC.AOC_2019;
procedure Main is
use Ada.Command_Line;
use Ada.Text_IO;
Year : Natural := Natural'Value (Argument (1));
Day_Number : Natural := Natural'Value (Argument (2));
Runner : AOC.Runner.Access_Runner := (case Year is
... |
3,229 | ada | 12 | jquorning/ada-asf | src/asf-servlets-ajax.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- asf.servlets.ajax -- AJAX servlet
-- 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 the ... |
3,230 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overflow_sum2.adb | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-gnato" }
with Namet; use Namet;
function Overflow_Sum2 return Hash_Index_Type is
Even_Name_Len : Integer;
begin
if Name_Len > 12 then
Even_Name_Len := (Name_Len) / 2 * 2;
return ((((((((((((
Character'Pos (Name_Buffer (01... |
3,231 | ada | 13 | annexi-strayline/AURA | child_processes.ads | <filename>child_processes.ads
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implemen... |
3,232 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt23.ads | <reponame>best08618/asylo
with Opt23_Pkg; use Opt23_Pkg;
package Opt23 is
procedure Proc (Driver : Rec);
end Opt23;
|
3,233 | ada | 9 | stcarrez/ada-search | src/search.ads | <filename>src/search.ads
-----------------------------------------------------------------------
-- search -- Search engine
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Li... |
3,234 | ada | 192 | rocher/Ada_Drivers_Library | components/src/camera/OV7725/ov7725.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
3,235 | ada | 7 | kimtg/euler-ada | euler4.adb | with Ada.Text_IO, Ada.Strings.Fixed;
use Ada.Text_IO;
procedure Euler4 is
function Is_Palindrome(S : String) return Boolean is
begin
for I in S'First .. S'Last / 2 loop
if S(I) /= S(S'Last - I + 1) then
return False;
end if;
end loop;
return True;
end;
function ... |
3,236 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/HMC5883L/hmc5883l-register.ads |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
--
-- Description: register definitions for the HMC5883L
package HMC5883L.Register with SPARK_Mode is
HMC5883L_ADDRESS : constant := 16#3C# ;-- this device only ha... |
3,237 | ada | 0 | hgrodriguez/tiny_rp2040_bsp | examples/src/spi_master_16.adb | <reponame>hgrodriguez/tiny_rp2040_bsp
--===========================================================================
--
-- This is the main master program for the Tiny as an SPI Master
--
--===========================================================================
--
-- Copyright 2022 (C) <NAME>
--
-- SPDX-License-I... |
3,238 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-numaux.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,239 | ada | 192 | rocher/Ada_Drivers_Library | middleware/src/sdmmc/sdmmc_init.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
3,240 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.ads | <filename>software/hal/hpl/STM32/drivers/debug_stm32f4/stm32-dwt.ads
-- Data Watchpoint and Trace (DWT) Unit
-- Gives access to cycle counter.
pragma Restrictions (No_Elaboration_Code);
with Interfaces; use Interfaces;
with System;
package STM32.DWT is
DWT_Core_Base : constant System.Address :=
System'To_A... |
3,241 | ada | 33 | ytomino/drake | source/tasking/required/s-tpoben.adb | pragma Check_Policy (Trace => Ignore);
package body System.Tasking.Protected_Objects.Entries is
procedure Cancel_Call (Call : not null Node_Access);
procedure Cancel_Call (Call : not null Node_Access) is
begin
-- C940016, not Tasking_Error
Ada.Exceptions.Save_Exception (Call.X, Program_Error'Iden... |
3,242 | ada | 30 | jscparker/math_packages | fourier/fourier8_tst_1.adb | <gh_stars>10-100
--***************************************************************
-- Procedure benchmarks FFT. 50000 calls to FFT and 50000 calls to
-- to the inverse FFT.
-- The FFT does 4N*ln(N) flops per call, where N=array length.
-- So 100000 FFT's do:
-- 1840*10**6 flops where N=512.
-- 4100*10**6 flops where... |
3,243 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-syntax_trees-lr_utils.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2019 <NAME> All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) any later
... |
3,244 | ada | 0 | reznikmm/gela | source/oasis/program-elements-identifiers.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
packag... |
3,245 | ada | 1 | lkujaw/ada-blake2 | generic/quadlets.ads | -----------------------------------------------------------------------
-- Copyright 2021 <NAME> --
-- --
-- Permission is hereby granted, free of charge, to any person --
-- obtaining a copy of this software ... |
3,246 | ada | 4 | ddugovic/words | word_package.adb | with TEXT_IO;
with LATIN_FILE_NAMES; use LATIN_FILE_NAMES;
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with CONFIG; use CONFIG;
with UNIQUES_PACKAGE; use UNIQUES_PACKAGE;
with ADDONS_PACKAGE; use ADDONS_PACKAGE;
with WORD_PARAMETERS; use WORD_PARAMETERS;
with PREFACE;
with DEVELOPER_P... |
3,247 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_dup.adb |
with Memory.Dup;
separate (Parser)
procedure Parse_Dup(parser : in out Parser_Type;
result : out Memory_Pointer) is
dp : Dup.Dup_Pointer := Dup.Create_Dup;
mem : Memory_Pointer := null;
begin
while Get_Type(parser) = Open loop
Parse_Memory(parser, mem);
Dup.Add_Memory(... |
3,248 | ada | 8 | darkestkhan/lumen2 | src/lumen-gl.adb |
-- Lumen.GL -- Lumen's own thin OpenGL bindings
--
-- <NAME>, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the ab... |
3,249 | ada | 6 | yannickmoy/SPARKZumo | src/types.ads | <reponame>yannickmoy/SPARKZumo
pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
package Types is
type Byte is mod 2 ** 8
with Size => 8;
subtype Byte_Array_Index_Type is Byte range Byte'First .. Byte'Last - 1;
type Word is mod 65536
with Size => 16;
type Byte_Array is array (Byte_Arra... |
3,250 | ada | 0 | andreas-woelfl/astma | ada/memory_analyzer.adb | with Text_IO;
package body Memory_Analyzer is
function Bytes_Required (Value : in Integer) return Integer is
Bytes_To_Long_Word : constant Integer := 4;
Offset_To_Byte_In_Bits : constant Integer := 8 - 1;
Offset_To_Long_Word_In_Bytes : Integer := Bytes_To_Long_Word - 1;
begin
r... |
3,251 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Flatten-a-list/Ada/flatten-a-list-2.ada | <gh_stars>1-10
with Ada.Strings.Unbounded;
package body Nestable_Lists is
procedure Append (L : in out List; E : Element_Type) is
begin
if L = null then
L := new Node (Kind => Data_Node);
L.Data := E;
else
Append (L.Next, E);
end if;
end Append;
procedure Appe... |
3,252 | ada | 11 | reznikmm/ada_lsp | source/server/ada_lsp-completions.ads | <filename>source/server/ada_lsp-completions.ads
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with LSP.Messages;
with Incr.Nodes.Tokens;
with Ada_LSP.Documents;
package Ada_LSP.Completions is
... |
3,253 | ada | 3 | FROL256/ada-ray-tracer | bitmap.adb | <reponame>FROL256/ada-ray-tracer<gh_stars>1-10
with Interfaces;
with Ada.Streams.Stream_IO;
use Interfaces;
use Ada.Streams.Stream_IO;
package body Bitmap is
procedure Init(im : out Image; w : Integer; h : Integer) is
begin
im.width := w;
im.height := h;
im.data := new PixelData(0 .. w*h-1);
en... |
3,254 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/task_subprogram_calls.adb | <filename>tests/syntax_examples/src/task_subprogram_calls.adb
with Ada.Streams;
with Ada.Streams.Stream_IO;
with System;
with Other_Basic_Subprogram_Calls; use Other_Basic_Subprogram_Calls;
package body Task_Subprogram_Calls is
type R is
record
I : Integer;
end record;
type S is access R;... |
3,255 | ada | 52 | onox/orka | orka_plugin_gltf/src/orka-base64.adb | <filename>orka_plugin_gltf/src/orka-base64.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
--
-- ... |
3,256 | ada | 0 | SKNZ/BoiteMaker | doc/expli_genericite.adb | <filename>doc/expli_genericite.adb
procedure mv_l(point : in out point_t; delta_x : integer) is
begin
mv_l(point, float(delta_x));
end;
procedure int_mv(point : in out point_t; delta_axis : integer; mv : access procedure(point : in out point_t; delta_axis : float)) is
begin
mv(point, float(delta_axis));
end;
... |
3,257 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders-quoted_printable.adb | -----------------------------------------------------------------------
-- util-encoders-quoted_printable -- Encode/Decode a stream in quoted-printable
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
3,258 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/encoding/auto/encodings-maps-cp_1006.adb | -- Auto generated file. Don't edit
-- Read copyright and license at the end of this file
package body Encodings.Maps.CP_1006 is
Forward : Forward_Map (Character'Val(16#A1#) .. Character'Last) :=
(Wide_Character'Val( 16#6F0#),
Wide_Character'Val( 16#6F1#),
Wide_Character'Val( 16#6F2#),
Wi... |
3,259 | ada | 0 | MonadnockSystems/Ada_Drivers_Library | arch/ARM/Nordic/drivers/nrf51-interrupts.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2019, AdaCore --
-- --
-- ... |
3,260 | ada | 0 | ellamosi/Ada_BMP_Library | examples/src/bmp_fonts.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
3,261 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/access2.ads | <reponame>best08618/asylo
-- { dg-do compile }
package Access2 is
type Priv;
type Inc is access Priv;
type Priv is access Inc;
C : constant Priv := new Inc;
end Access2;
|
3,262 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-cwila9.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,263 | ada | 0 | faelys/natools | src/natools-smaz_implementations-base_4096.adb | <filename>src/natools-smaz_implementations-base_4096.adb
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, <NAME> --
-- --
-- Permission to use, copy, modif... |
3,264 | ada | 65 | vdh-anssi/ewok-kernel | src/ewok-interrupts.ads | --
-- 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... |
3,265 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Reverse-words-in-a-string/Ada/reverse-words-in-a-string-1.ada | <filename>Task/Reverse-words-in-a-string/Ada/reverse-words-in-a-string-1.ada
package Simple_Parse is
-- a very simplistic parser, useful to split a string into words
function Next_Word(S: String; Point: in out Positive)
return String;
-- a "word" is a sequence of non-space characters
-- if S(Point .... |
3,266 | ada | 5 | jhumphry/SPARK_SipHash | src/siphash24-system_entropy.ads | <gh_stars>1-10
-- SipHash24.System_Entropy
-- An instantiation of SipHash.Entropy to allow the SipHash key to be set from
-- a system entropy source (if possible).
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
pragma Spark_Mode (On);
with SipHash.Entropy;
pragma Elaborate_All(SipHash.Entropy);
packa... |
3,267 | ada | 1 | Fabien-Chouteau/lvgl-ada-examples | src/test_theme_1.adb | <filename>src/test_theme_1.adb
with LV_Conf; use LV_Conf;
with Lv; use Lv;
with Lv.Area;
with Lv.Objx; use Lv.Objx;
with Lv.Objx.Cont;
with Lv.Objx.Tabview;
with Lv.Objx.Page;
with Lv.Objx.Btn;
with Lv.Objx.Btnm;
with Lv.Objx.Label;
with Lv.Objx.Switch;
with Lv.Objx.Bar;
with Lv.Objx.Slider;
with Lv.Objx.Line;
with Lv... |
3,268 | ada | 0 | persan/a-cups | src/cups.ads | <reponame>persan/a-cups
package CUPS is
type Job_Id is new Natural;
Cups_Error : exception;
end CUPS;
|
3,269 | ada | 1 | ytomino/vampire | source/vampire-r3-log_index_page.adb | <filename>source/vampire-r3-log_index_page.adb
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Log_Index_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
HTML_Directory : in String;
Style_Sheet : in String;
Backgr... |
3,270 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-messages.ads | with Ada.Streams;
with Interfaces;
with System;
package ACO.Messages is
pragma Preelaborate;
use Interfaces;
type Id_Type is mod 2**11;
type Id_Array is array (Natural range <>) of Id_Type;
type Function_Code is mod 2**4;
type Node_Nr is mod 2**7;
Not_A_Slave : constant Node_Nr := 0;
su... |
3,271 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stwibo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,272 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/s-maccod.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,273 | ada | 1 | GambuzX/Pixy-SIW | pixy/src/host/pantilt_in_ada/specs/stdio_h.ads | --
-- Copyright (c) 2015, <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 permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT... |
3,274 | ada | 0 | Robert-Tice/AdaFractalLib | src/julia_set.adb | <reponame>Robert-Tice/AdaFractalLib
package body Julia_Set is
procedure Calculate_Pixel (Re : Real;
Im : Real;
Z_Escape : out Real;
Iter_Escape : out Natural)
is
Re_Mod : Real := Re;
Im_Mod... |
3,275 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-conhel.adb | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-conhel.adb
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
3,276 | ada | 2 | damaki/dw1000-rssi-tester | common/configurations.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2017 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to deal in the Software without restriction, inc... |
3,277 | ada | 3 | albinjal/ada_basic | tentaplugg_albin/180315/Upg1.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Upg1 is
procedure Print(A, B: in Integer) is
Spaces: Integer;
begin
if A < B then
Spaces := (B - A) * 4;
for I in 1..Spaces loop
Put(' ');
end loop;
end if;
for X in 1..A loo... |
3,278 | ada | 13 | Fabien-Chouteau/GESTE | examples/racing/src/main.adb | <filename>examples/racing/src/main.adb
with Game;
procedure Main is
begin
Game.Game_Loop;
end Main;
|
3,279 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Determine-if-a-string-is-numeric/Ada/determine-if-a-string-is-numeric-1.ada | package Numeric_Tests is
function Is_Numeric (Item : in String) return Boolean;
end Numeric_Tests;
|
3,280 | ada | 12 | jquorning/ada-asf | src/asf-components-utils.adb | -----------------------------------------------------------------------
-- components-util -- ASF Util Components
-- Copyright (C) 2009, 2010, 2011, 2013, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
3,281 | ada | 0 | Letractively/ada-security | regtests/security-policies-tests.ads | -----------------------------------------------------------------------
-- Security-policies-tests - Unit tests for Security.Permissions
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
3,282 | ada | 1 | charlie5/lace-alire | 1-base/lace/source/events/concrete/lace-observer-deferred.adb | package body lace.Observer.deferred
is
package body Forge
is
function to_Observer (Name : in Event.observer_Name) return Item
is
begin
return Self : constant Item := (Deferred.item
with name => to_unbounded_String (Name))
do
... |
3,283 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-internals-links.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,284 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f0/stm32f030x/svd/stm32_svd-dma.ads | -- This spec has been automatically generated from STM32F030.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ISR_GIF1_Field is STM32_SVD.Bit;... |
3,285 | ada | 0 | T-Bone-Willson/SubmarinesFormalApproaches | src/submarinesubsystem.ads | package SubmarineSubSystem with SPARK_Mode is
type Operational is (On, Off); -- Can Submarine Operate?
type DoSomething is (Fire, CantFire); -- Test for actions can only be done once,
-- Nuclear Submarine is operational.
--Door Duntionality types
type AirDoorOne is... |
3,286 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0029.ads | <filename>source/league/ucd/matreshka-internals-unicode-ucd-core_0029.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project ... |
3,287 | ada | 60 | RREE/ada-util | src/base/log/util-log-appenders-consoles.adb | <reponame>RREE/ada-util<filename>src/base/log/util-log-appenders-consoles.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- util-log-appenders-consoles -- Console log appenders
-- Copyright (C) 2001 - 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under ... |
3,288 | ada | 0 | strenkml/EE368 | memsim-master/src/benchmark-heap.adb | <reponame>strenkml/EE368<gh_stars>0
package body Benchmark.Heap is
function Create_Heap return Benchmark_Pointer is
begin
return new Heap_Type;
end Create_Heap;
procedure Insert(benchmark : in Heap_Type;
value : in Integer) is
size : constant Integer := Read_Value(be... |
3,289 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-files.adb | <reponame>Roldak/OpenGLAda<gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Directories;
with Ada.Direct_IO;
with Ada.Unchecked_Deallocation;
with Interfaces.C.Strings;
with GL.API;
with GL.Types;
package body GL.Files is
use ... |
3,290 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-calend-vms.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/a-calend-vms.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
3,291 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/x86_64/seh/c-unwind_pe.adb | <gh_stars>10-100
with Ada.Unchecked_Conversion;
with System.Address_To_Constant_Access_Conversions;
with System.Storage_Elements;
with C.stdint;
package body C.unwind_pe is
pragma Suppress (All_Checks);
use type System.Storage_Elements.Storage_Offset;
procedure unreachable
with Import,
Conventi... |
3,292 | ada | 15 | My-Colaborations/dynamo | src/yaml/text-builder.adb | -- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Text.Builder is
procedure Init (Object : in out Reference; Pool : Text.Pool.Reference;
Initial_Size : Positive := 255) is
begin
null;
end Init;
functi... |
3,293 | ada | 80 | thindil/steamsky | tests/ships-test_data-tests-proto_crew_container.ads | <reponame>thindil/steamsky<gh_stars>10-100
package Ships.Test_Data.Tests.Proto_Crew_Container is
end Ships.Test_Data.Tests.Proto_Crew_Container;
|
3,294 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/a-calari.ads | <filename>tools/scitools/conf/understand/ada/ada05/a-calari.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
3,295 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_bug.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/conv_bug.adb
-- { dg-do run }
-- { dg-options "-gnatws" }
with discr3; use discr3;
with Text_IO; use Text_IO;
procedure Conv_Bug is
begin
begin
V2 := S2 (V1);
exception
when Constraint_Error => null;
when others => Put_Line ("Wrong Excepti... |
3,296 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-calendars-clocks__windows.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,297 | ada | 0 | reznikmm/gela | source/oasis/program-elements-formal_access_types.ads | <reponame>reznikmm/gela<filename>source/oasis/program-elements-formal_access_types.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Formal_Type_Definitions;
package Program.Elements.Formal_Acce... |
3,298 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-wichha.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,299 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/rtc/main.adb | with STM32GD.Board; use STM32GD.Board;
procedure Main is
Now : RTC.Date_Time_Type;
Wait_Time : RTC.Second_Delta_Type := 5;
begin
Init;
Text_IO.Put_Line ("RTC Test Starting");
loop
RTC.Read (Now);
LED.Set;
Text_IO.Put ("Seconds: ");
Text_IO.Put_Integer (RTC.To_Seconds (Now));
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.