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 |
|---|---|---|---|---|---|
9,400 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto17.adb | -- { dg-do compile }
-- { dg-options "-flto" { target lto } }
package body Lto17 is
function To_Chunk_List(C : Chunk) return Chunk_List is
begin
return new Chunk_List_Element'(C.Size, C, null);
end;
end Lto17;
|
9,401 | ada | 0 | Maxelweb/concurrency-sandbox | Resource_Control_Protocol/obj/b__main.ads | pragma Warnings (Off);
pragma Ada_95;
with System;
with System.Parameters;
with System.Secondary_Stack;
package ada_main is
gnat_argc : Integer;
gnat_argv : System.Address;
gnat_envp : System.Address;
pragma Import (C, gnat_argc);
pragma Import (C, gnat_argv);
pragma Import (C, gnat_envp);
gnat_... |
9,402 | ada | 0 | optikos/oasis | source/nodes/program-nodes-case_statements.ads | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Case_Paths;
with Program.Elements.Case_Statements;
... |
9,403 | ada | 81 | My-Colaborations/ada-awa | awa/src/awa-users-modules.ads | -----------------------------------------------------------------------
-- awa-users-module -- User management module
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
9,404 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/tests/bsp_verification/src/clock_tests.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT BSP Test --
-- ... |
9,405 | ada | 1 | bracke/websitegenerator | src/generator-markdown.adb | <filename>src/generator-markdown.adb
pragma Ada_2012;
with Ada.Text_IO.Text_Streams;
with Ada.Streams;
with Ada.Streams.Stream_IO;
with Ada.Strings.Unbounded;
with Natools.Getopt_Long;
with Natools.String_Slices;
with Markup.Parsers.Markdown.Extensions;
with Instances;
with Markup.Parsers.Markdown.Extensions;
packag... |
9,406 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-stwiun.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
9,407 | ada | 1 | samueltardieu/pok | libpok/ada/arinc653/apex-partitions.ads | -- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE FILE
--
-- Pleas... |
9,408 | ada | 33 | ytomino/drake | examples/fpu.adb | <filename>examples/fpu.adb
with Ada.Formatting;
with Interfaces;
with System.Machine_Code;
procedure fpu is
use type Interfaces.Unsigned_16;
CW : aliased Interfaces.Unsigned_16 := 0;
begin
System.Machine_Code.Asm ("fstcw (%0)",
Inputs => System.Address'Asm_Input ("r", CW'Address),
Volatile => True);
declare
f... |
9,409 | ada | 1 | jorge-real/TTS | examples/tts_example2.ads | private with STM32.GPIO, STM32.Device;
package TTS_Example2 is
procedure Main;
private
use STM32.GPIO, STM32.Device;
Probe_TT_Point : GPIO_Point := PD2;
Probe_ET_Point : GPIO_Point := PD6;
end TTS_Example2;
|
9,410 | ada | 1 | ytomino/vampire | source/vampire-log.adb | -- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Directories;
with Ada.Streams.Stream_IO;
with Web.Producers;
with Web.RSS;
with Vampire.Configurations;
with Vampire.Forms.Full;
with Vampire.R3.Log_Index_Page;
with Vampire.R3.Village_Page;
with Vampire.Villages.Load;
package body Vampire.Log is
use Tabula.Vil... |
9,411 | ada | 2 | SMerrony/dgemua | decoder.ads | -- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, p... |
9,412 | ada | 13 | Fabien-Chouteau/GESTE | tests/src/sprite_animation.adb | with GESTE;
with GESTE.Sprite.Animated; use GESTE.Sprite.Animated;
with GESTE.Tile_Bank;
with GESTE.Maths_Types; use GESTE.Maths_Types;
with Ada.Text_IO;
with Console_Char_Screen;
procedure Sprite_Animation is
use type GESTE.Pix_Point;
package Console_Screen is new Console_Char_Screen
(Width => 5,
... |
9,413 | ada | 3 | daveshields/AdaEd | demos/diners2.ada | <gh_stars>1-10
--::::::::::
--screen.ads
--::::::::::
PACKAGE Screen IS
-- Procedures for drawing pictures on ANSI Terminal Screen
ScreenDepth : CONSTANT Integer := 24;
ScreenWidth : CONSTANT Integer := 80;
SUBTYPE Depth IS Integer RANGE 1..ScreenDepth;
SUBTYPE Width IS Integer RANGE 1..ScreenWidth;
PROCE... |
9,414 | ada | 0 | csb6/libtcod-ada | src/generated/renderer_gl_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with tileset_h;
with utypes_uuint32_t_h;
limited with context_h;
with System;
package renderer_gl_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.... |
9,415 | ada | 1 | mullikine/RosettaCodeData | Task/Mandelbrot-set/Ada/mandelbrot-set-1.ada | with Lumen.Binary;
package body Mandelbrot is
function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor is
use type Lumen.Binary.Byte;
Result : Lumen.Image.Descriptor;
X0, Y0 : Float;
X, Y, Xtemp : Float;
Iteration : Float;
Max_Iteration : constant Float := 1... |
9,416 | ada | 0 | reznikmm/gela | source/resolver/program-complete_contexts.ads | <filename>source/resolver/program-complete_contexts.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Cross_Reference_Updaters;
with Program.Elements.Discrete_Ranges;
with Program.Elements.Expr... |
9,417 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/pprint.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/pprint.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
9,418 | ada | 4 | cliffano/openapi-ipify | generated/ada-server/src/-server.adb | <reponame>cliffano/openapi-ipify<gh_stars>1-10
with Ada.IO_Exceptions;
with AWS.Config.Set;
with Swagger.Servers.AWS;
with Swagger.Servers.Applications;
with Util.Log.Loggers;
with Util.Properties;
with .Servers;
procedure .Server is
procedure Configure (Config : in out AWS.Config.Object);
CONFIG_PATH : constan... |
9,419 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/shapes/impact-d3-shape-convex-internal-polyhedral-hull.adb | <reponame>charlie5/lace<gh_stars>10-100
with impact.d3.Vector;
with impact.d3.collision.Proxy;
with Interfaces.C;
with ada.unchecked_Deallocation;
with impact.d3.Scalar;
with impact.d3.Containers;
-- #include "impact.d3.convex_HullShape.h"
-- #include "BulletCollision/CollisionShapes/impact.d3.collision.Margin.h"
--
... |
9,420 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/afrl-cmasi-operatingregion-spark_boundary.ads | <filename>src/ada/src/afrl-cmasi-operatingregion-spark_boundary.ads
with Common_Formal_Containers; use Common_Formal_Containers;
package AFRL.CMASI.OperatingRegion.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
type OperatingRegionAreas is record
KeepInAreas :... |
9,421 | ada | 0 | RREE/Ada_Drivers_Library | components/src/screen/lcd/lcd_hd44780-pcf8574.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2022, AdaCore --
-- ... |
9,422 | ada | 20 | charlie5/lace | 3-mid/opengl/source/opengl-tasks.ads | with
ada.Task_Identification;
package openGL.Tasks
--
-- Allow checking that a GL operation is called only in the GL renderer engine task.
--
is
Renderer_Task : ada.Task_Identification.Task_Id := ada.Task_Identification.null_Task_Id;
--
-- The current renderer task.
procedure check;
function c... |
9,423 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3016b.ada | <reponame>best08618/asylo<gh_stars>1-10
-- CC3016B.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 docume... |
9,424 | ada | 0 | xeenta/learning-ada | src/006/steps.adb | <filename>src/006/steps.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Steps is
task Step_By_Step is
entry Step_One;
entry Step_Two;
entry Step_Three;
end Step_By_Step;
task body Step_By_Step is
begin
accept Step_One do
Put_Line ("1");
end Step_One;
ac... |
9,425 | ada | 33 | ytomino/drake | source/s-stopoo.adb | <filename>source/s-stopoo.adb
package body System.Storage_Pools is
pragma Suppress (All_Checks);
procedure Allocate_Any (
Pool : in out Root_Storage_Pool'Class;
Storage_Address : out Address;
Size_In_Storage_Elements : Storage_Elements.Storage_Count;
Alignment : Storage_Elements.Storage_C... |
9,426 | ada | 19 | jquorning/ada-security | src/security-policies.ads | -----------------------------------------------------------------------
-- security-policies -- Security Policies
-- Copyright (C) 2010, 2011, 2012, 2015, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
9,427 | ada | 0 | mgrojo/smk | src/smk-run_files.ads | <reponame>mgrojo/smk<filename>src/smk-run_files.ads
-- -----------------------------------------------------------------------------
-- smk, the smart make
-- © 2018 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under t... |
9,428 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-german.adb | -- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.German is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*formal parameter.*is not modified*");
... |
9,429 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/gnatxref.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,430 | ada | 6 | jonashaggstrom/ada-canopen | tests/remote_node_test.ads | <reponame>jonashaggstrom/ada-canopen<gh_stars>1-10
with AUnit;
with AUnit.Simple_Test_Cases;
package Remote_Node_Test is
type Test is new AUnit.Simple_Test_Cases.Test_Case with null record;
function Name (T : Test) return AUnit.Message_String;
procedure Run_Test (T : in out Test);
end Remote_Node_Test;
|
9,431 | ada | 6 | jquorning/ada-el | samples/bean.ads | -----------------------------------------------------------------------
-- bean - A simple bean example
-- Copyright (C) 2009, 2010 <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... |
9,432 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | ADL/drivers/stm32g474/stm32-cordic-polling.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
package body STM32.CORDIC.Polling is
-------------------------------
-- Calculate_CORDIC_Function --
-------------------------------
procedure Calculate_CORDIC_Function
(This : in out CORDIC_Coprocessor;
Argument : UInt32_Array;
Result : out UInt... |
9,433 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto15.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto15.ads
package Lto15 is
type Arr is array (Positive range <>) of Integer;
type R(Size : Positive) is record
Data : Arr (1 .. Size);
end record;
function Proc (Data : Arr) return R;
end Lto15;
|
9,434 | ada | 22 | Melyodas/metalang | out/euler24.adb |
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 euler24 is
type stringptr is access all char_array;
procedure PString(s : stringptr) is
begin
String'Write (Text_Streams.S... |
9,435 | ada | 0 | aeszter/sharepoint2ics | src/seminar-main.adb | <filename>src/seminar-main.adb
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Fixed;
with POSIX;
with DOM.Core;
with DOM.Core.Documents;
with DOM.Readers;
with Sax.Readers;
with CGI;
with Conver... |
9,436 | ada | 0 | HeisenbugLtd/msg_passing | examples/msg_consumer.adb | ------------------------------------------------------------------------
-- Copyright (C) 2010-2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under
-- the terms of the Do What The Fuck You Want To Public License,
-- Version 2, as published by Sam Hocevar. See the ... |
9,437 | ada | 18 | kraileth/ravenadm | src/portscan-scan.adb | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Characters.Latin_1;
with Ada.Directories;
with Ada.Exceptions;
with Ada.Calendar;
with Ada.Text_IO;
with File_Operations;
with Port_Specification.Buildsheet;
with Port_Specification.Transform;
with Port_Sp... |
9,438 | ada | 0 | Fabien-Chouteau/bb_pico_bsp | src/bb_pico_bsp-spi.adb | with RP.SPI; use RP.SPI;
with RP.Device;
with RP.GPIO;
with Pico;
package body BB_Pico_Bsp.SPI is
SPI_Port : RP.SPI.SPI_Port renames RP.Device.SPI_0;
DMA_TX_Trigger : constant RP.DMA.DMA_Request_Trigger := RP.DMA.SPI0_TX;
SPI_CLK : RP.GPIO.GPIO_Point renames Pico.GP18;
SPI_DO : RP.GPIO.GPIO_Point re... |
9,439 | ada | 0 | reznikmm/clic | src/clic-user_input.adb | <reponame>reznikmm/clic
with Ada.Text_IO;
with Ada.Characters.Handling;
with Simple_Logging;
with CLIC.TTY;
package body CLIC.User_Input is
package TIO renames Ada.Text_IO;
package Char renames Ada.Characters.Handling;
User_Input_Error : exception;
Answer_Char : constant array (Answer_Kind) of Charact... |
9,440 | ada | 0 | faelys/natools | tests/natools-chunked_strings-tests.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2011-2013, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
9,441 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Events/Ada/events-2.ada | protected body Event is
procedure Signal is
begin
Fired := True;
end Signal;
procedure Reset is
begin
Fired := False;
end Reset;
entry Wait when Fired is
begin
null;
end Wait;
end Event;
|
9,442 | ada | 0 | MorganPeterson/termbox_binding | src/termbox.ads | package Termbox is
procedure Tb_Init; -- initialization
pragma Import (C, Tb_Init, "tb_init");
procedure Tb_Shutdown; -- shutdown
pragma Import (C, Tb_Shutdown, "tb_shutdown");
procedure TB_Width; -- width of the terminal screen
pragma Import (C, TB_Width, "tb_width");
procedure TB_Height; -- he... |
9,443 | ada | 204 | spr93/whitakers-words | src/words_engine/words_engine-trick_tables.ads | <gh_stars>100-1000
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-... |
9,444 | ada | 0 | jhumphry/aLua | lua-util.adb | <reponame>jhumphry/aLua<filename>lua-util.adb<gh_stars>0
-- Lua.Util
-- Utility routines to go with the Ada 2012 Lua interface
-- Copyright (c) 2015, <NAME> - see LICENSE for terms
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Long_Float_Text_IO; use Ada.Long_Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Tex... |
9,445 | ada | 60 | RREE/ada-util | src/sys/processes/util-processes-tools.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- util-processes-tools -- System specific and low level operations
-- Copyright (C) 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
9,446 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5wmemory.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
9,447 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/common/term.ads | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
9,448 | ada | 0 | fuzzysloth/ada-awa | awa/src/model/awa-permissions-models.adb | -----------------------------------------------------------------------
-- AWA.Permissions.Models -- AWA.Permissions.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https:... |
9,449 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_usart_interrupts/src/serial_port.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
9,450 | ada | 1 | SvenPeldszus/conqat | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/sample1.ada | package body PKG is
procedure a () is
begin
for Character'('0') .. Character'('9') loop
x ();
end loop;
end a;
procedure b (a: int; b: int) is
begin
y ();
end b;
end PKG;
|
9,451 | ada | 1 | jweese/Ada_Vent_19 | lib/space_image_format.ads | <reponame>jweese/Ada_Vent_19<gh_stars>1-10
package Space_Image_Format is
Width: constant := 25;
Height: constant := 6;
type Width_Range is range 1 .. Width;
type Height_Range is range 1 .. Height;
type Pixel is new Character range '0' .. '9';
type Layer is array (Width_Range, Height_Range) of Pixel;... |
9,452 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/gnatkr.ads | <filename>gcc-gcc-7_3_0-release/gcc/ada/gnatkr.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,453 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-norm.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
9,454 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-cumulative_sum.adb | separate (Numerics.Sparse_Matrices)
-- function Cumulative_Sum (Item : in Int_Array) return Int_Array is
-- Result : Int_Array (Item'Range);
-- Tmp : Int := 1;
-- begin
-- for I in Item'Range loop
-- Result (I) := Tmp;
-- Tmp := Tmp + Item (I);
-- end loop;
-- return Result;
-- ... |
9,455 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/sal-gen_bounded_definite_queues.ads | -- Abstract:
--
-- A generic queue, allowing definite non-limited item types.
--
-- Copyright (C) 2004, 2008, 2009, 2011, 2017, 2019 Free Software Foundation 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 pub... |
9,456 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/constant_declaration.ads | package Constant_Declaration is
The_Constant : constant Integer := 1;
end Constant_Declaration;
|
9,457 | ada | 15 | My-Colaborations/dynamo | src/gnat/prj-ext.ads | <filename>src/gnat/prj-ext.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,458 | ada | 236 | jquorning/septum | src/common/sp-commands.adb | <filename>src/common/sp-commands.adb
-------------------------------------------------------------------------------
-- 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 ... |
9,459 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/drivers/stm32-rng-interrupts.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
9,460 | ada | 0 | Fabien-Chouteau/libriscv | src/libriscv-sim-hart.adb | <reponame>Fabien-Chouteau/libriscv
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- ... |
9,461 | ada | 33 | ytomino/drake | source/textio/a-wtedit.ads | <filename>source/textio/a-wtedit.ads
pragma License (Unrestricted);
with Ada.Text_IO.Editing;
package Ada.Wide_Text_IO.Editing is
-- modified
-- type Picture is private;
subtype Picture is Text_IO.Editing.Picture;
function Valid (
Pic_String : String;
Blank_When_Zero : Boolean := False)
r... |
9,462 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline13.ads | with Inline13_Pkg;
package Inline13 is
type Arr is array (Positive range <>) of Inline13_Pkg.T;
function F (L : Arr) return String;
end Inline13;
|
9,463 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_59.ads | <gh_stars>0
package Problem_59 is
-- Each character on a computer is assigned a unique code and the preferred
-- standard is ASCII (American Standard Code for Information
-- Interchange). For example, uppercase A = 65, asterisk (*) = 42, and
-- lowercase k = 107.
--
-- A modern encryption method i... |
9,464 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/iface_test.adb | <gh_stars>1-10
-- { dg-do compile }
package body Iface_Test is
protected SQLite_Safe is
function Prepare_Select
(DB : DT_1;
Iter : Standard.Iface_Test.Iface_2'Class)
return Standard.Iface_Test.Iface_2'Class;
end;
overriding procedure Prepare_Select
(DB : DT_1;
Iter... |
9,465 | ada | 0 | VMika/Des_Ada | Des_Ada/obj/b__mainparallel.adb | pragma Warnings (Off);
pragma Ada_95;
pragma Source_File_Name (ada_main, Spec_File_Name => "b__mainparallel.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__mainparallel.adb");
pragma Suppress (Overflow_Check);
with System.Restrictions;
with Ada.Exceptions;
package body ada_main is
E068 : Short_Int... |
9,466 | ada | 33 | ytomino/drake | source/interfaces/i-c.ads | <gh_stars>10-100
pragma License (Unrestricted);
package Interfaces.C is
pragma Pure;
-- Declarations based on C's <limits.h>
CHAR_BIT : constant := 8; -- typically 8
SCHAR_MIN : constant := -128; -- typically -128
SCHAR_MAX : constant := 127; -- typically 127
UCHAR_MAX : constant := 255; -- typical... |
9,467 | ada | 7 | stcarrez/mat | mat/src/mat-readers-streams.adb | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- mat-readers-streams -- Reader for streams
-- Copyright (C) 2014, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
9,468 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-russian.adb | <filename>src/lang/stemmer-russian.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Russian is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "... |
9,469 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/namet.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,470 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-data_decomposition-debug.ads | <filename>src/asis/asis-data_decomposition-debug.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
9,471 | ada | 0 | twdroeger/ada-awa | awa/src/awa-events.ads | <reponame>twdroeger/ada-awa
-----------------------------------------------------------------------
-- awa-events -- AWA Events
-- Copyright (C) 2012, 2015, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
9,472 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Keyboard-input-Obtain-a-Y-or-N-response/Ada/keyboard-input-obtain-a-y-or-n-response.ada | function Yes_Or_No (Prompt : String := "Your answer (Y/N): ") return Boolean is
Answer : Character;
begin
Ada.Text_IO.Put (Prompt);
loop
Ada.Text_IO.Get_Immediate (Answer);
case Answer is
when 'Y'|'y' => return True;
when 'N'|'n' => return False;
... |
9,473 | ada | 0 | jfitz/code-stat | extra/Ada/navigate.adb | with Ada.Characters.Handling;
with Ada.Text_IO; use Ada.Text_IO;
with GNATCOLL.Opt_Parse;
with GNATCOLL.Strings;
with GNATCOLL.VFS;
with Langkit_Support.Text;
with Libadalang.Analysis;
with Libadalang.Common;
with Libadalang.Helpers;
with Libadalang.Iterators;
with Put_Title;
procedure Navigate is
package LAL r... |
9,474 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug4_pkg.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug4_pkg.ads<gh_stars>1-10
with Ada.Containers.Vectors;
generic
type Vertex_Key is private;
package Debug4_Pkg is
type Vertex_Id is new Natural;
subtype Valid_Vertex_Id is Vertex_Id range 1 .. Vertex_Id'Last;
package VIL is new Ada.Containers.Vector... |
9,475 | ada | 33 | ytomino/drake | source/textio/a-teioit.adb | package body Ada.Text_IO.Iterators is
function Unchecked_Next (Object : Line_Iterator) return Line_Cursor;
function Unchecked_Next (Object : Line_Iterator) return Line_Cursor is
Lines : constant not null Lines_Access := Object.Lines;
begin
if End_Of_File (Lines.File.all) then
return 0; --... |
9,476 | ada | 1 | jquorning/WeDo | source/terminal_io.adb | <gh_stars>1-10
pragma License (Restricted);
--
-- Copyright (C) 2020 <NAME> All Rights Reserved.
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- M... |
9,477 | ada | 0 | cortlandstarrett/mcada | model/mcada/templates/package/t.type_begin.ada | <reponame>cortlandstarrett/mcada
type ${self.name} is \
|
9,478 | ada | 1 | charlie5/lace-alire | 4-high/gel/source/world/gel-world.adb | with
gel.Events,
physics.Object,
physics.Forge,
openGL.Renderer.lean,
lace.Response,
ada.Text_IO,
ada.Exceptions,
ada.unchecked_Deallocation,
ada.Containers.hashed_Sets;
package body gel.World
is
use gel.Sprite,
linear_Algebra_3D,
-- lace.Event,
... |
9,479 | ada | 3 | rogermc2/GA_Ada | test_factorize/src/test_mv_factor.adb |
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Types;
with Maths;
with Blade;
with Blade_Types;
with GA_Maths;
with GA_Utilities;
with Multivectors; use Multivectors;
with Multivector_Type;
with Multivector_Utilities;
procedure Test_MV_Factor is
use GL.Types;
use Blade;
-- use B... |
9,480 | ada | 0 | melwyncarlo/ProjectEuler | problems/048/a048.adb | <filename>problems/048/a048.adb
with Ada.Text_IO;
with Ada.Strings.Fixed;
-- Copyright 2021 <NAME>
procedure A048 is
use Ada.Text_IO;
use Ada.Strings.Fixed;
Max_N : constant Integer := 1000;
Sum_Val : String (1 .. 10) := "0000000001";
Temp_Str : String (1 .. 20);
... |
9,481 | ada | 13 | annexi-strayline/AURA | stream_hashing.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
9,482 | ada | 8 | pvrego/adaino | project/src/avr-usart.adb | with AVR.MCU;
-- =============================================================================
-- Package body AVR.USART
-- =============================================================================
package body AVR.USART is
procedure Initialize
(In_Port : Port_Type;
In_Setup : Setup_Type)
is
... |
9,483 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr8.ads | with Discr8_Pkg1; use Discr8_Pkg1;
package Discr8 is
type Tag_T is (Tag_One, Tag_Two);
type Local_T (Tag : Tag_T := Tag_One) is
record
case Tag is
when Tag_One =>
A : T;
B : Integer;
when Tag_Two =>
null;
end case;
end record;
procedure Make (C... |
9,484 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/bind_check/verify_ada_sizes.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with SDL_Ada_Sizes; use SDL_Ada_Sizes;
with SDL.Types;
with SDL.Cdrom;
with SDL.Events;
with Interfaces.C;
procedure Verify_Ada_Sizes is
package C renames Interfaces.C;
package AI is new Ada.Text_IO.Integer_IO (Integer);
package CI is new Ada.Text_IO.Integer_IO... |
9,485 | ada | 4 | Entomy/letscode-cards | Deck.ads | with Cards, Ada.Numerics.Discrete_Random;
use Cards;
package Deck is
function Draw return Card;
private
type Index_Type is range 1 .. 52;
package Random_Index is new Ada.Numerics.Discrete_Random(Index_Type);
use Random_Index;
Index_Generator : Random_Index.Generator;
type Deck_Card is new Card with record
... |
9,486 | ada | 1 | BaderKashkash/Ada_Drivers_Library | examples/MicroBit_v2/WorkInProgress/ravenscar_tasking/src/brain.adb | --with Ada.Real_Time; use Ada.Real_Time;
with MicroBit.Console;
package body Brain is
task body Sense is
--Time_Now : Ada.Real_Time.Time;
begin
--loop
for Index in 1..4 loop
MicroBit.Console.Put_Line("Sensing, pass number ");
MicroBit.Console.Put_Line(Integer'Image(Index));
... |
9,487 | ada | 60 | RREE/ada-util | src/core/util-executors.adb | <reponame>RREE/ada-util<gh_stars>10-100
-----------------------------------------------------------------------
-- util-executors -- Execute work that is queued
-- Copyright (C) 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
9,488 | ada | 7 | stcarrez/mat | mat/src/frames/mat-frames.ads | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- mat-frames - Representation of stack frames
-- Copyright (C) 2014, 2015, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
9,489 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bcpith__sparc.adb | <filename>bb-runtimes/src/s-bcpith__sparc.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
9,490 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-circle.ads | <filename>ada/src/afrl/cmasi/afrl-cmasi-circle.ads<gh_stars>0
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with afrl.cmasi.AbstractGeometry; use afrl.cmasi.AbstractGeometry;
with afrl.cmasi.location3d; use afrl.cma... |
9,491 | ada | 0 | fintatarta/generic-dsp | src/dsp-ring_filters.ads | with Ada.Finalization;
use Ada;
--
-- This package provides functions that implement "discrete time finite
-- memory filters" in a general setup.
--
-- According to the model used in this package, the filter processes
-- samples of type Sample_Type and it is parameterized by coefficients
-- of type Coefficient_Type. ... |
9,492 | ada | 52 | onox/orka | orka/src/orka/interface/orka-rendering-textures.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
-... |
9,493 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-regexps-engine.ads | <filename>source/league/matreshka-internals-regexps-engine.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
9,494 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/entry_call.adb | with Entry_Declaration;
procedure Entry_Call is
The_Task : Entry_Declaration.Task_With_Entry;
begin
The_Task.First_Entry;
end Entry_Call;
|
9,495 | ada | 0 | optikos/oasis | source/oasis/program-elements-access_types.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
package Program.Elements.Access_Types is
pragma Pure (Program.Elements.Access_Types);
type Access_Type... |
9,496 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array20.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array20.ads
package Array20 is
pragma Elaborate_Body;
end array20;
|
9,497 | ada | 0 | persan/a-cups | src/gen/cups-cups_raster_h.ads | <filename>src/gen/cups-cups_raster_h.ads<gh_stars>0
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with CUPS.stdio_h;
with Interfaces.C_Streams;
with CUPS.cups_ppd_h;
with CUPS.cups_cups_h;
with Interfaces.C.Strings;
private package CUPS.cups_raster_h is
CUPS_RASTER... |
9,498 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Image-noise/Ada/image-noise-1.ada | <filename>Task/Image-noise/Ada/image-noise-1.ada
with Lumen.Image;
package Noise is
function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor;
end Noise;
|
9,499 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testpalette_sprogs.adb | <gh_stars>0
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as publi... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.