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 |
|---|---|---|---|---|---|
28,000 | ada | 0 | faelys/natools | generated/natools-static_hash_maps-s_expressions-command_maps-test.ads | -- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps
-- from src/natools-static_hash_maps-s_expressions-hash_maps.sx
function Natools.Static_Hash_Maps.S_Expressions.Command_Maps.Test
return Boolean;
|
28,001 | ada | 1 | JeremyGrosser/sensors | rp2040_drivers/piezo.ads | --
-- Copyright (C) 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with RP.GPIO;
with RP.PWM;
with RP;
package Piezo is
type Beeper
(Point_A : access RP.GPIO.GPIO_Point;
Point_B : access RP.GPIO.GPIO_Point)
is tagged record
Slice : RP.PWM.PWM_Slice := RP.PWM.To_PWM (Po... |
28,002 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-skip_tb.adb | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
28,003 | ada | 269 | brightdigit/NCurses | Sources/cncurses/Ada95/samples/sample-curses_demo-attributes.adb | <reponame>brightdigit/NCurses
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- ... |
28,004 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-ztexio.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
28,005 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/show_deques_priority.adb | -- { dg-do compile }
with Deques;
procedure Show_Deques_Priority is
use Deques;
PD : aliased P_Deque := Create;
begin
PD.Pop;
end Show_Deques_Priority;
|
28,006 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-comver.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/g-comver.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
28,007 | ada | 81 | twdroeger/ada-awa | awa/regtests/awa-users-services-tests.adb | -----------------------------------------------------------------------
-- users - User creation, password tests
-- Copyright (C) 2009, 2010, 2011, 2012, 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 com... |
28,008 | ada | 192 | rocher/Ada_Drivers_Library | components/src/camera/OV2640/bit_fields.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
28,009 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-diflio.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,010 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-network_management.adb | package body ACO.Protocols.Network_Management is
function Is_Allowed_Transition
(Current : ACO.States.State;
Next : ACO.States.State)
return Boolean
is
use ACO.States;
begin
case Current is
when Initializing =>
return Next = Pre_Operational;
wh... |
28,011 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-errors.ads | <reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10
-------------------------------------------------------------------------
-- GL.Errors - error support sub - programs.
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, p... |
28,012 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-cfhase.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/a-cfhase.adb
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
28,013 | ada | 0 | jrcarter/Gnoga_Bar_Codes | gnoga_bar_codes.adb | <reponame>jrcarter/Gnoga_Bar_Codes<gh_stars>0
-- Widget for creating bar codes with Gnoga
--
-- 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 Gnoga.Gui.Element.Canvas.Context_2D;
with Gnoga.Types.Col... |
28,014 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Knuth-shuffle/Ada/knuth-shuffle-2.ada | with Ada.Numerics.Discrete_Random;
procedure Generic_Shuffle (List : in out Array_Type) is
package Discrete_Random is new Ada.Numerics.Discrete_Random(Result_Subtype => Integer);
use Discrete_Random;
K : Integer;
G : Generator;
T : Element_Type;
begin
Reset (G);
for I in reverse List'Range loop
... |
28,015 | ada | 8 | darkestkhan/vt100 | src/vt100.adb | ------------------------------------------------------------------------------
-- EMAIL: <<EMAIL>> --
-- License: ISC License (see COPYING file) --
-- --
-- ... |
28,016 | ada | 20 | charlie5/lace | 1-base/xml/applet/demo/tree/launch_tree.adb | <gh_stars>10-100
with
XML,
ada.Strings.unbounded,
ada.Text_IO;
procedure launch_Tree
--
-- Loads an xml file, parses it into a tree and displays the tree.
--
is
the_Tree : xml.Element := xml.to_XML ("./box.dae");
Depth : Natural := 0;
procedure show_Element (the_Element : in xml.Eleme... |
28,017 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-workspaces/src/awa-workspaces-beans.adb | -----------------------------------------------------------------------
-- awa-workspaces-beans -- Beans for module workspaces
-- Copyright (C) 2011, 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 wi... |
28,018 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3806e.ada | -- CE3806E.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... |
28,019 | ada | 3 | daveshields/AdaEd | demos/phil.ada | <gh_stars>1-10
----------------------------------------------------------------------
--
-- The Dining Philosophers' Problem
--
-- written by
--
-- <NAME>
-- and
-- <NAME>
--
-- Ada Project
-- ... |
28,020 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-witeio.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
28,021 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-data_decomposition-vcheck.ads | <filename>src/asis/asis-data_decomposition-vcheck.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
28,022 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/pack2.ads | -- { dg-do compile }
package Pack2 is
type Rec is record
Ptr: access Character;
Int :Integer;
end record;
type Table is array (1..2) of rec;
pragma Pack (Table);
end Pack2;
|
28,023 | ada | 0 | Letractively/ada-awa | awa/samples/src/model/atlas-microblog-models.adb | <gh_stars>0
-----------------------------------------------------------------------
-- Atlas.Microblog.Models -- Atlas.Microblog.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Gener... |
28,024 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-component_clauses.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Simple_Expression_Ranges... |
28,025 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_elab.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,026 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/rpi2-video/hello.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
28,027 | ada | 0 | charlesincharge/Intro_to_Ada | bad_lunch.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
procedure Bad_Lunch is
-- Enumeration type
type Lunch_Spot_t is (WS, Nine, Home);
type Day_t is (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
-- Subtype Weekday_t is a constrained Day_t
subtype Weekday_t is Day_t range Mon .... |
28,028 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-arit32.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
28,029 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36104b.ada | -- C36104B.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... |
28,030 | ada | 3 | Lucretia/jni | src/jni.ads | with Interfaces.C; use Interfaces.C;
with Interfaces.C.Pointers;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
with JNI_MD; -- use JNI_MD;
package JNI is
JNI_OK : constant := 0; -- Success.
JNI_ERR : constant := -1; -- Unknown error.
JNI_EDETACH... |
28,031 | ada | 33 | ytomino/drake | source/required/s-soflin.adb | <filename>source/required/s-soflin.adb
with Ada.Unchecked_Conversion;
with System.Runtime_Context;
with System.Unwind.Occurrences;
package body System.Soft_Links is
pragma Suppress (All_Checks);
-- implementation
function Do_Get_Current_Excep
return Ada.Exceptions.Exception_Occurrence_Access
is
... |
28,032 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3806f.ada | <reponame>best08618/asylo
-- CE3806F.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... |
28,033 | ada | 15 | mgrojo/adalib | ada-strings-maps-constants.ads | <filename>ada-strings-maps-constants.ads
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, ... |
28,034 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__xps_uart16550.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
28,035 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bit_packed_array5.adb | <reponame>best08618/asylo
-- { dg-do compile }
with System;
package body Bit_Packed_Array5 is
function Inv (Word : Word_Type) return Word_Type is
W : Word_Type := Word;
pragma Volatile (W);
A_W : constant System.Address := W'Address;
V : Short_Bit_Array_Type;
for V'Address use A_W;... |
28,036 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-suenco.adb | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,037 | ada | 1 | ytomino/vampire | source/vampire-villages.adb | <filename>source/vampire-villages.adb
-- The Village of Vampire by YT, このソースコードはNYSLです
package body Vampire.Villages is
use Messages;
use Person_Records;
use People;
use type Ada.Calendar.Time;
use type Ada.Strings.Unbounded.Unbounded_String;
function Equivalent_Messages (Left, Right : Message) return Boolean i... |
28,038 | ada | 30 | jscparker/math_packages | linear_algebra/jacobi_eigen_tst_1.adb | <reponame>jscparker/math_packages
-- Test Jacobi Eigendecomposition of real valued square matrices.
with Ada.Numerics.Generic_elementary_functions;
with Jacobi_Eigen;
with Test_Matrices;
with Text_IO; use Text_IO;
procedure jacobi_eigen_tst_1 is
type Real is digits 15;
--Matrix_Size : constant := 2277;
--Matr... |
28,039 | ada | 5 | ianloic/unladen-swallow | Util/llvm/test/FrontendAda/Support/fat_fields.ads | <filename>Util/llvm/test/FrontendAda/Support/fat_fields.ads
package Fat_Fields is
pragma Elaborate_Body;
type A is array (Positive range <>) of Boolean;
type A_Ptr is access A;
P : A_Ptr := null;
end;
|
28,040 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-spm.ads |
with Memory.Container; use Memory.Container;
package Memory.SPM is
type SPM_Type is new Container_Type with private;
type SPM_Pointer is access all SPM_Type'Class;
function Create_SPM(mem : access Memory_Type'Class;
size : Natural;
latency : Time_... |
28,041 | ada | 0 | 97kovacspeter/ADA | main.adb | with Text_IO, Aircraft, Coords, Card_Dir;
use Text_IO, Card_Dir;
procedure main is
package ACrafts is new Aircraft(Integer);
use ACrafts;
procedure ACraft_Info (A: Aircraft_Type) is
begin
Put("Name: ");
Put_Line(Integer'Image(GetName(A)));
Put("coordiantes:");
Put(Integer'Image(Coords.Get_X(Get_Coord(A)... |
28,042 | ada | 1 | XMoose25X/Advanced-Dungeon-Assault | Source/advgame.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with display; use display;
with stats; use stats;
with player; use player;
with game_map; use game_map;
with inventory_list; use inventory_list;
with save_load_game; use save_load_game;
with Cutscenes; use Cutscenes;
procedure advgam... |
28,043 | ada | 12 | TUM-EI-RCS/StratoX | tests/generic-unit/src/mission.ads | <reponame>TUM-EI-RCS/StratoX
with Generic_Unit;
package Mission with SPARK_Mode is
package New_Unit is new Generic_Unit(Index_Type => Integer,
Element_Type => Float);
use New_Unit;
-- the mission can only go forward
type Mission_State_Type is (
UNKNOWN,
... |
28,044 | ada | 0 | csb6/libtcod-ada | demo/keys.adb | with Libtcod.Console, Ada.Text_IO, Ada.Exceptions, Libtcod.Input, Libtcod.Maps.Paths;
use type Libtcod.Input.Event_Type;
procedure Keys is
use Ada.Exceptions, Libtcod, Libtcod.Input;
package IO renames Ada.Text_IO;
context : Console.Context := Console.make_context(w => 100, h => 100, title => "Test");
scr... |
28,045 | ada | 24 | svn2github/matreshka | source/xml/catalogs/matreshka-xml_catalogs-handlers.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
28,046 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/samg55/setup_pll.adb | <filename>bb-runtimes/arm/sam/samg55/setup_pll.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,047 | ada | 0 | shintakezou/adaplayground | src/mandel_utf.adb | -- this is taken from https://ideone.com/a1ky4l, which comes from
-- here http://cowlark.com/2014-04-27-ada/index.html (<NAME>)
--
-- I've polished it, adapted in style, removed some comments,
-- changed other things, … but mostly it's his code.
--
with
Ada.Numerics.Elementary_Functions,
Ada.Numerics.Generic_Comp... |
28,048 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming7_pkg.ads | <gh_stars>1-10
package Renaming7_Pkg is
A : Integer;
end Renaming7_Pkg;
|
28,049 | ada | 0 | VMika/Des_Ada | Des_Ada/src/mainSequential.adb |
WITH P_DesHandler;
USE P_DesHandler;
----------
-- Main --
----------
procedure mainSequential is
DesAlg : aliased DesHandler;
begin
DesAlg.Process;
end mainSequential;
|
28,050 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network-udpsocket.ads | <reponame>Fabien-Chouteau/ASFML
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any dama... |
28,051 | ada | 0 | Letractively/ada-ado | regtests/ado-parameters-tests.adb | -----------------------------------------------------------------------
-- ado-parameters-tests -- Test query parameters and SQL expansion
-- 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 complia... |
28,052 | ada | 8 | flyx/OpenCLAda | src/implementation/cl_gl/mac/cl-contexts-cl_gl.adb | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice... |
28,053 | ada | 10 | LionelDraghi/smk | src/smk-main-build.adb | -- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache ... |
28,054 | ada | 3 | charlie5/aIDE | applet/aide/source/editors/aide-editor-of_pragma.ads | with
AdaM.a_Pragma,
gtk.Widget;
private
with
aIDE.Editor.of_block,
aIDE.Editor.of_context,
gtk.Box,
gtk.Button,
gtk.Frame,
gtk.Label,
gtk.Alignment,
gtk.GEntry;
package aIDE.Editor.of_pragma
is
type Item is new Editor.item with private;
type View is access all... |
28,055 | ada | 0 | faelys/natools | src/natools-s_expressions-interpreters.adb | <reponame>faelys/natools
------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software ... |
28,056 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-operations-ees.ads |
package Tkmrpc.Operations.Ees is
Esa_Acquire : constant Operations.Operation_Type := 16#0100#;
Esa_Expire : constant Operations.Operation_Type := 16#0101#;
end Tkmrpc.Operations.Ees;
|
28,057 | ada | 33 | ytomino/drake | source/strings/a-swfuma.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- extended unit
with Ada.Characters.Conversions;
with Ada.Strings.Maps;
package Ada.Strings.Wide_Functions.Maps is
new Generic_Maps (
Expanding => Characters.Conversions.Max_Length_In_Wide_String,
Put => Characters.Conversions.Put,
Get => Characters... |
28,058 | ada | 6 | yannickmoy/SPARKZumo | src/drivers/zumo_pushbutton.adb | <filename>src/drivers/zumo_pushbutton.adb
pragma SPARK_Mode;
with Sparkduino; use Sparkduino;
with Types; use Types;
package body Zumo_Pushbutton is
Zumo_Button : constant := 12;
Zumo_Button_Pullup : constant PinMode := INPUT_PULLUP;
Zumo_Button_Default_Pinval : constant DigPinValue := HIGH;
procedure I... |
28,059 | ada | 9 | SALLYPEMDAS/DW1000 | src/dw1000-driver.adb | <reponame>SALLYPEMDAS/DW1000<gh_stars>1-10
-------------------------------------------------------------------------------
-- Copyright (c) 2016 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a
-- copy of this software and associated documentation files (the "Software"),
-- to de... |
28,060 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-entityconfiguration.adb | <filename>ada/src/afrl/cmasi/afrl-cmasi-entityconfiguration.adb
package body afrl.cmasi.entityConfiguration is
function getFullLmcpTypeName (this : EntityConfiguration) return String is ("afrl.cmasi.entityConfiguration.EntityConfiguration");
function getLmcpTypeName (this : EntityConfiguration) return String is... |
28,061 | ada | 4 | davidkristola/vole | kv-avm-test_a.adb | <filename>kv-avm-test_a.adb
with Ada.Text_IO;
use Ada.Text_IO;
with kv.avm.Instructions;
procedure kv.avm.test_a is
x : instruction.overlay_type := (instruction.directive, instruction.no_op, false, false, 0);
begin
Put_Line("Hello there.");
end kv.avm.test_a;
|
28,062 | ada | 0 | optikos/oasis | source/nodes/program-nodes-known_discriminant_parts.ads | <filename>source/nodes/program-nodes-known_discriminant_parts.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Discriminant_Specifications;
wit... |
28,063 | ada | 1 | bracke/websitegenerator | src/generator-frontmatter.adb | with GNAT.Regexp; use GNAT.Regexp;
with Ada.Directories;
with Ada.Characters.Conversions;
with Ada.Text_IO;
with GNATCOLL.Mmap;
with Templates_Parser;
with GNAT.Strings;
with Ada.Strings.Fixed;
with Globals;
with Ada.Exceptions; use Ada.Exceptions;
with Linereader;
with Ada.Strings;
with Ada.Strings.Maps;
with Ad... |
28,064 | ada | 2 | landgraf/nanomsg-ada | src/nanomsg-socket.adb | -- The MIT License (MIT)
-- Copyright (c) 2015 <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 u... |
28,065 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt46_pkg.ads | generic
type Table_Component_Type is private;
type Table_Index_Type is range <>;
Table_Low_Bound : Table_Index_Type;
package Opt46_Pkg is
type Table_Type is
array (Table_Index_Type range <>) of Table_Component_Type;
subtype Big_Table_Type is
Table_Type (Table_Low_Bound .. Table_Index_Typ... |
28,066 | ada | 2 | thorstel/Advent-of-Code-2018 | day16/opcode_helper.adb | package body Opcode_Helper is
function Execute_Instruction
(Op : String;
Reg : Registers;
A, B, C : Unsigned_64) return Registers
is
type Operations is
(addr, addi, mulr, muli, banr, bani, borr, bori,
setr, seti, gtir, gtri, gtrr, eqir, eqri, eqrr);
Result :... |
28,067 | ada | 0 | persan/dds-requestreply | src/dds-request_reply-requester-impl.adb | <reponame>persan/dds-requestreply
-- ----------------------------------------------------------------------------
-- Note this is an implementation package and is subject to change att any time.
-- ----------------------------------------------------------------------------
package body DDS.Request_Reply.Requester.I... |
28,068 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-strops.ads | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
28,069 | ada | 7 | 98devin/ada-gba-dev | zfp-gba/gnat/a-except.adb | <filename>zfp-gba/gnat/a-except.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
28,070 | ada | 0 | jgrivera67/projects-with-amy | array_utils/tests/src/array_utils-test_cases.adb | with AUnit.Assertions;
package body Array_Utils.Test_Cases is
Test_Array : constant Array_Type (1 .. 8) := (10, 20, 30, 40, 50, 60, 70, 80);
procedure Test_Linear_Search_Element_Found_First_Entry (T : in out Test_Case) is
pragma Unreferenced (T);
begin
AUnit.Assertions.Assert (Linear_Search (Tes... |
28,071 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-internals-amf_uri_stores.ads | <filename>source/amf/mof/amf-internals-amf_uri_stores.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
28,072 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/renderer/opengl-impostor-simple.ads | <gh_stars>10-100
package openGL.Impostor.simple
--
-- Can impostor any 'visual'.
--
is
type Item is new Impostor.item with private;
type View is access all Item'Class;
overriding
function current_Camera_look_at_Rotation (Self : in Item) return Matrix_3x3;
overriding
function update_Required (Self ... |
28,073 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Multiple-regression/Ada/multiple-regression-1.ada | <filename>Task/Multiple-regression/Ada/multiple-regression-1.ada
generic
type Element_Type is private;
Zero : Element_Type;
One : Element_Type;
with function "+" (Left, Right : Element_Type) return Element_Type is <>;
with function "-" (Left, Right : Element_Type) return Element_Type is <>;
with funct... |
28,074 | ada | 3 | jwarwick/aoc_2020 | day03/src/main.adb | <reponame>jwarwick/aoc_2020
-- AOC 2020, Day 3
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
procedure main is
f : constant Forest := load_map("input.txt");
slope : constant Natural := 3;
begin
put_line("Part 1: " & Natural'Image(trees_hit(f, slope)));
put_line("Part 2: " & Natural'Image(many_trees_hit... |
28,075 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/ee3203a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/ee3203a.ada
-- EE3203A.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
-- unlimit... |
28,076 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/umingw_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package umingw_h is
USE_u_u_UUIDOF : constant := 0; -- d:\install\gpl2018\x86_64-pc-mingw32\include\_mingw.h:79
WINVER : constant := 16#0502#; -- d:\install\gpl2018\x86_64-pc-mingw32\include\_min... |
28,077 | ada | 0 | jhumphry/aLua | examples/simple_example.adb | -- Simple_Example
-- A simple example of using the Ada 2012 interface to Lua
-- 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_Text_IO;
with Lua; use Lua;
with Lua.Util; use Lua.U... |
28,078 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-mrt.ads | <gh_stars>1-10
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.MRT is
pragma Pr... |
28,079 | ada | 6 | yannickmoy/SPARKZumo | bsp/sparkduino.adb | pragma SPARK_Mode;
with System;
package body Sparkduino is
procedure Arduino_Serial_Print (Msg : System.Address);
pragma Import (C, Arduino_Serial_Print, "Serial_Print");
procedure Arduino_Serial_Print_Byte (Msg : System.Address;
Val : Byte);
pragma Import (C, Ard... |
28,080 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-stats.ads | <reponame>strenkml/EE368
with Histograms;
with Memory.Container; use Memory.Container;
package Memory.Stats is
type Stats_Type is new Container_Type with private;
type Stats_Pointer is access all Stats_Type'Class;
function Create_Stats(mem : access Memory_Type'Class) return Stats_Pointer;
overriding
... |
28,081 | ada | 4 | faelys/gela-asis | source/asis/asis-implementation-permissions.ads | <filename>source/asis/asis-implementation-permissions.ads
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 7 package Asis.Implementation.Permissions
------------------------------------------------------... |
28,082 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/fakedev/hmc5883l-driver.adb | with Simulation;
with Ada.Text_IO; use Ada.Text_IO;
package body hmc5883l.driver with
Refined_State => (State => (buffer, mode))
is
procedure initialize is null;
function testConnection return Boolean is (True);
-- CONFIG_A register
function getSampleAveraging return Unsigned_8 is
begin
-- TOD... |
28,083 | ada | 33 | ytomino/drake | source/distributed/required/s-vercon.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Version_Control is
pragma Pure;
subtype Version_String is String (1 .. 8);
-- required for PACKAGE'Version by compiler (s-vercon.ads)
function Get_Version_String (V : Unsigned_Types.Unsi... |
28,084 | ada | 0 | strenkml/EE368 | memsim-master/src/test-shift.adb | <filename>memsim-master/src/test-shift.adb
with Memory.Transform.Shift; use Memory.Transform.Shift;
with Memory.Join; use Memory.Join;
package body Test.Shift is
procedure Test_Positive is
mem : constant Monitor_Pointer := Create_Monitor(0);
bank : constant Monitor_Pointer := Create_M... |
28,085 | ada | 8 | darkestkhan/lumen | src/lumen-events-key_translate.adb |
-- Lumen.Events.Key_Translate -- Translate X11 keysym to Lumen symbol
--
-- <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... |
28,086 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Doubly-linked-list-Element-insertion/Ada/doubly-linked-list-element-insertion-3.ada | with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure List_Insertion is
package String_List is new Ada.Containers.Doubly_Linked_Lists(Unbounded_String);
use String_List;
procedure Print(Position : Cursor) is
begin
... |
28,087 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-bituti.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
28,088 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Nth/Ada/nth.ada | with Ada.Text_IO;
procedure Nth is
function Suffix(N: Natural) return String is
begin
if N mod 10 = 1 and then N mod 100 /= 11 then return "st";
elsif N mod 10 = 2 and then N mod 100 /= 12 then return "nd";
elsif N mod 10 = 3 and then N mod 100 /= 13 then return "rd";
else return "th"... |
28,089 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/ae3709a.ada | <gh_stars>1-10
-- AE3709A.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.... |
28,090 | ada | 1 | Kurinkitos/Twizy-Security | src/converters.adb | package body converters with SPARK_Mode is
function double_to_speed (d : double) return Types.speed
is temp : Types.Speed;
begin
if (d <= double(-80.0)) then
temp := Types.Speed(-79.0);
return temp;
end if;
if (d >= double(80.0)) then
temp := Types.Speed(7... |
28,091 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74208a.ada | -- C74208A.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... |
28,092 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/vectors_2d_i.ads | <filename>Sources/Library/vectors_2d_i.ads<gh_stars>1-10
--
-- Jan & <NAME>, Australia, July 2011
--
with Vectors_xD_I; pragma Elaborate_All (Vectors_xD_I);
package Vectors_2D_I is
type xy_Coordinates is (x, y);
package Vectors_2Di is new Vectors_xD_I (Integer, xy_Coordinates);
subtype Vector_2D_I is Vect... |
28,093 | ada | 0 | faelys/natools | src/natools-parallelism.ads | <reponame>faelys/natools<filename>src/natools-parallelism.ads<gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2016, <NAME> --
-- --
-- Permission to ... |
28,094 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Palindrome-detection/Ada/palindrome-detection-2.ada | <reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10
function Palindrome (Text : String) return Boolean is
(for all i in Text'Range => Text(i)= Text(Text'Last-i+Text'First));
|
28,095 | ada | 412 | tobireinhard/cbmc | regression/symtab2gb/multiple_symtabs/library.adb | <reponame>tobireinhard/cbmc<gh_stars>100-1000
procedure Library (X : Integer) is
begin
-- Failure
pragma Assert (X < 10);
-- Success
pragma Assert (X > 0);
end Library;
|
28,096 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Semordnilap/Ada/semordnilap-1.ada | <filename>Task/Semordnilap/Ada/semordnilap-1.ada
with Ada.Containers.Indefinite_Vectors, Ada.Text_IO;
package String_Vectors is
package String_Vec is new Ada.Containers.Indefinite_Vectors
(Index_Type => Positive, Element_Type => String);
type Vec is new String_Vec.Vector with null record;
function Rea... |
28,097 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-gclk.ads | <gh_stars>1-10
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.GCLK is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Control
type GCLK_CTRL... |
28,098 | ada | 0 | annexi-strayline/ASAP-CLI | cli-widgets-spinners.adb | ------------------------------------------------------------------------------
-- --
-- Command Line Interface Toolkit --
-- --
-- -... |
28,099 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-choice_parameter_specifications.ads | <reponame>reznikmm/gela<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Choice_Parameter_Specifications;
with P... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.