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 |
|---|---|---|---|---|---|
10,700 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/dispatch/impact-d3-simulation_island_manager.adb | with impact.d3.collision.overlapped_pair_Callback.cached;
with impact.d3.collision.Proxy;
-- #include "LinearMath/impact.d3.Scalar.h"
-- #include "impact.d3.simulation_island_Manager.h"
-- #include "BulletCollision/BroadphaseCollision/impact.d3.Dispatcher.h"
-- #include "BulletCollision/NarrowPhaseCollision/impact.... |
10,701 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/drawing.adb | <gh_stars>10-100
package body Drawing is
-- http://rosettacode.org/wiki/Bitmap/Bresenham%27s_line_algorithm#Ada
procedure Line (Start, Stop : Point;
Col : Color;
Thickness : Natural := 1)
is
DX : constant Float := abs Float (Stop.X - Start.X);
D... |
10,702 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_adc_polling/src/demo_adc_vref_polling.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
10,703 | ada | 5 | docandrew/troodon | include/xlib_xcb.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
limited with Xlib;
limited with xcb;
package Xlib_xcb is
-- Copyright (C) 2003-2006 <NAME>, <NAME>
-- * This file is licensed under the MIT license. See the file COPYING.
function XGetXCBConnection (dpy : access Xlib.Display) ... |
10,704 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-components.ads | <filename>source/amf/uml/amf-uml-components.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
10,705 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85011a.ada | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85011a.ada<gh_stars>1-10
-- C85011A.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 ... |
10,706 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43103b.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C43103B.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... |
10,707 | ada | 0 | optikos/oasis | source/oasis/program-elements-record_definitions.ads | <reponame>optikos/oasis<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Lexical_Elements;
with Program.Element_Vectors;
package Program.Ele... |
10,708 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-io.ads | <filename>Sources/Globe_3d/gl/gl-io.ads
------------------------------------------------------------------------------
-- File : GL - IO.ads
-- Description : I/O for (Open)GL graphics
--
-- This package provides currently:
--
-- **************************... |
10,709 | ada | 1 | dshadrin/AProxy | src/logging_message.adb | <gh_stars>1-10
----------------------------------------
-- Copyright (C) 2019 <NAME> --
-- All rights reserved. --
----------------------------------------
with Pal;
with Logging;
with Logging_Message;
with TimeStamp; use TimeStamp;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
----------------... |
10,710 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Primality-by-trial-division/Ada/primality-by-trial-division-2.ada | with Prime_Numbers;
procedure Test_Prime is
package Integer_Numbers is new
Prime_Numbers (Natural, 0, 1, 2);
use Integer_Numbers;
begin
if Is_Prime(12) or (not Is_Prime(13)) then
raise Program_Error with "Test_Prime failed!";
end if;
end Test_Prime;
|
10,711 | ada | 0 | svn2github/matreshka | source/web/spikedog/aws/matreshka-servlet_aws_responses.ads | <reponame>svn2github/matreshka<gh_stars>0
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
10,712 | ada | 6 | bosepchuk/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf51_svd-ecb.ads | <filename>arch/ARM/Nordic/svd/nrf51/nrf51_svd-ecb.ads
-- Copyright (c) 2013, Nordic Semiconductor ASA
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source cod... |
10,713 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_keccakf-byte_lanes-twisted.adb | <filename>src/common/keccak-generic_keccakf-byte_lanes-twisted.adb
-------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided th... |
10,714 | ada | 15 | mgrojo/adalib | ada-numerics-float_random.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, 1995 Intermetrics, Inc.
-- SPDX-License-... |
10,715 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-internals-helpers.adb | <reponame>svn2github/matreshka<filename>source/amf/mof/amf-internals-helpers.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
--... |
10,716 | ada | 0 | salmoni/CompStats_Statistics_Ada | CompStats_Statistics.adb | with Ada.Numerics.Elementary_Functions;
Package body CompStats_Statistics is
function Get_Count (Values: Values_Array) return Integer is
Count: Integer; -- Stores final count
begin
Count := Values'Length;
return Count;
end Get_Count;
--------------------------------------------------------------
fun... |
10,717 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-casper.ads | -- 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.CASPER is
pragma Preelaborate;
... |
10,718 | ada | 1 | leo-brewin/adm-bssn-numerical | utilities/ada-merge.adb | <reponame>leo-brewin/adm-bssn-numerical<gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Support; use Support;
with Support.Cmdline; use Support.Cmdline;
with Support.Strings; use Support.Strings;
w... |
10,719 | ada | 1 | procrastiraptor/euler | ada/primes.ads | package Primes is
type List is array (Positive range <>) of Positive;
function First(N: Positive) return List;
end Primes;
|
10,720 | ada | 0 | yannickmoy/SPARKNaCl | src/sparknacl-debug.ads | <reponame>yannickmoy/SPARKNaCl
package SPARKNaCl.Debug
with SPARK_Mode => On
is
procedure DH (S : in String; D : in Byte_Seq);
procedure DH (S : in String; D : in Boolean);
procedure DH (S : in String; D : in I64);
-- Same but output in hex
procedure DHH (S : in String; D : in I64);
end SPARKNaC... |
10,721 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/070_subprograms/main.adb | <filename>courses/fundamentals_of_ada/labs/prompts/070_subprograms/main.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
type List_T is array (Integer range <>) of Integer;
-- Is_Found will search a list for an item and will
-- return True if the item is found in the list
-- function Is_Found ( ?
... |
10,722 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-format.ads | -- Copyright 2016 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed to in writi... |
10,723 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/itypes.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/itypes.ads
package itypes is
procedure Proc;
end;
|
10,724 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-nodes-timed_nodes-project_infos.ads | with EU_Projects.Nodes;
with EU_Projects.Times.Time_Expressions;
with Eu_Projects.Event_Names;
with EU_Projects.Node_Tables;
package Eu_Projects.Nodes.Timed_Nodes.Project_Infos is
type Project_Info is new Timed_Node with private;
type Info_Access is access all Project_Info;
function Create (Label : N... |
10,725 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-overriding.d/input_2.adb | -- Taken from #2382 submitted by @JulienPivard
with Ada.Text_IO;
package body input_2
with Spark_Mode => Off
is
---------------------------------------------------------------------------
task body Tasche_T is
-- Les déclarations qui vont bien.
begin
accept Coucou do
null;
end... |
10,726 | ada | 7 | Fabien-Chouteau/Giza | test/src/test_images.adb | with bmp_test_rgb24;
with bmp_test_indexed_1bit;
with bmp_test_indexed_2bits;
with bmp_test_indexed_4bits;
with bmp_test_indexed_8bits;
with bmp_test_rgb24_dma2d;
with bmp_test_indexed_1bit_dma2d;
with bmp_test_indexed_2bits_dma2d;
with bmp_test_indexed_4bits_dma2d;
with bmp_test_indexed_8bits_dma2d;
package body Test... |
10,727 | ada | 9 | stcarrez/ada-search | src/search-documents.adb | <reponame>stcarrez/ada-search
-----------------------------------------------------------------------
-- search-documents -- Documents indexed by the search engine
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use th... |
10,728 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/freetype-face.ads | with
freetype.face_Size,
freetype.charMap,
freeType_C.FT_Face,
freeType_C.FT_GlyphSlot,
interfaces.C;
package freetype.Face
--
-- The Face class provides an abstraction layer for the Freetype Face.
--
is
type Item is tagged private;
type View is access all Item'Class;
---------
... |
10,729 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/msp430g2452/svd/msp430_svd-flash.ads | -- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Flash
package MSP430_SVD.FLASH is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- FLASH Control 1
type FCTL1... |
10,730 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48009a.ada | -- C48009A.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... |
10,731 | ada | 30 | jscparker/math_packages | disorderly/chi_gaussian_cdf.adb | <gh_stars>10-100
-------------------------------------------------------------------------------
-- package body Chi_Gaussian_CDF, CDF of Normal and Chi-square distributions
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee i... |
10,732 | ada | 2 | thorstel/Advent-of-Code-2018 | day17/day17.adb | <reponame>thorstel/Advent-of-Code-2018<filename>day17/day17.adb<gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Input17; use Input17;
procedure Day17 is
Grid : array
(Natural range 0 .. 2000, Natural range 0 .. 2000) of Character :=
(others => (others => '.'));
Min_X, Min_Y : Natural := Nat... |
10,733 | ada | 23 | SMerrony/dashera | Src/xmodem.adb | <gh_stars>10-100
-- Copyright ©2022 <NAME>
-- This file is a part of DasherA.
-- 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... |
10,734 | ada | 2 | rocher/TTS-Runtime-Ravenscar | extensions/xada-dispatching-tts.adb | ------------------------------------------------------------
--
-- GNAT RUN-TIME EXTENSIONS
--
-- XADA . DISPATCHING . TIME-TRIGGERED SCHEDULING
--
-- @file x-distts.adb / xada-dispatching-tts.adb
--
-- @package XAda.Dispatching.TTS (BODY)
--
-- @author <NAME> <<EMAIL>>
-- @author <NAME> <<EMAIL>>
--
------------... |
10,735 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5vtaprop.adb | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
10,736 | ada | 33 | ytomino/drake | source/s-forlit.ads | pragma License (Unrestricted);
-- implementation unit
package System.Formatting.Literals is
pragma Pure;
-- parsing Ada-form literals
procedure Skip_Spaces (Item : String; Last : in out Natural);
procedure Check_Last (Item : String; Last : Natural; Error : out Boolean);
procedure Get_Exponent (
... |
10,737 | ada | 2 | morbos/Ada_Drivers_Library | examples/shared/hello_world_blinky/src/blinky.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
10,738 | ada | 1 | mullikine/RosettaCodeData | Task/Loops-Infinite/Ada/loops-infinite.ada | loop
Put_Line("SPAM");
end loop;
|
10,739 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/exp_ch3.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
10,740 | ada | 9 | stcarrez/ada-search | src/search-indexers.adb | <filename>src/search-indexers.adb
-----------------------------------------------------------------------
-- search-indexers -- Search engine indexer
-- 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... |
10,741 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/auto_exceptions/gl-raise_exception_on_opengl_error.adb | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Errors;
separate (GL)
procedure Raise_Exception_On_OpenGL_Error is
begin
case Errors.Error_Flag is
when Errors.Invalid_Operation => raise Errors.Invalid_Operation_Error;
... |
10,742 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-dp_training.adb | --
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2017 <NAME> <<EMAIL>>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at... |
10,743 | ada | 32 | robdaemon/AdaYaml | dropin/src/yaml-destination-c_handler.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Destination.C_Handler is
use type Yaml.C.Bool;
function As_Destination (Handler : Yaml.C.Write_Handler;
Data : System.Address) return Pointer is
(ne... |
10,744 | ada | 1 | Jellix/open_weather_map_api | test/standard_application.ads | --------------------------------------------------------------------------------
-- Copyright (C) 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 t... |
10,745 | ada | 1 | ytomino/vampire | source/vampire-r3-user_list_page.adb | <filename>source/vampire-r3-user_list_page.adb
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Hierarchical_File_Names;
procedure Vampire.R3.User_List_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;... |
10,746 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/NXP/svd/lpc55s6x/nxp_svd-usb.ads | <filename>arch/ARM/NXP/svd/lpc55s6x/nxp_svd-usb.ads
-- 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;
... |
10,747 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3011a.ada | -- CC3011A.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... |
10,748 | ada | 0 | alexcamposruiz/dds-requestreply | src/orig/dds-request_reply-connext_c_entity_params.ads | <reponame>alexcamposruiz/dds-requestreply
with DDS.Entity_Params;
package DDS.Request_Reply.Connext_C_Entity_Params renames DDS.Entity_Params;
|
10,749 | ada | 2 | egustafson/sandbox | Ada/exception/multiply.adb | <filename>Ada/exception/multiply.adb
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Multiply is
Number_Of_Cases, A, B : Integer;
begin
Put("Integer range: ");
Put(Integer'First);
Put(" .. ");
Put(Integer'Last);
New_Line;
Put_Line("How many cases? ");
F... |
10,750 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/services/example_spark_service/uxas-comms-lmcp_net_client-service-example_spark_service.ads | with Common_Formal_Containers; use Common_Formal_Containers;
with DOM.Core;
package UxAS.comms.LMCP_net_client.service.Example_Spark_Service is
type Example_Spark_Service is new Service_Base with private;
type Example_Spark_Service_Ref is access all Example_Spark_Service;
Type_Name : constant String := "... |
10,751 | ada | 18 | jquorning/ada-wiki | src/wiki-filters-collectors.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- wiki-filters-collectors -- Wiki word and link collectors
-- Copyright (C) 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
10,752 | ada | 5 | onox/dcf-ada | zipdcf/src/zipdcf.adb | <gh_stars>1-10
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2019 onox <<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 limita... |
10,753 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-plus2.adb | separate (Numerics.Sparse_Matrices)
function Plus2 (Left : in Sparse_Matrix;
Right : in Sparse_Matrix) return Sparse_Matrix is
use Ada.Text_IO, Ada.Containers;
X, Y : RVector;
Ai, Aj, Bi, Bj : IVector;
N_Row, N_Col : Pos;
N : constant Count_Type := Left.X.Length + Right.X.Length;
C : Sparse_Matrix... |
10,754 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/tasks-sfp/tasking.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- OPEN RAVENSCAR VALIDATION TEST SUITE --
-- ... |
10,755 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45291a.ada | <reponame>best08618/asylo
-- C45291A.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... |
10,756 | ada | 0 | DrenfongWong/tkm-rpc | src/server/tkmrpc-process_stream.ads | <filename>src/server/tkmrpc-process_stream.ads
--
-- Copyright (C) 2013 <NAME> <<EMAIL>>
-- Copyright (C) 2013 <NAME> <<EMAIL>>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- 1. ... |
10,757 | ada | 0 | dksmiffs/gnatmake-examples | cpp-main-big/src/ada-b/i_am_ada_too.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
package body I_Am_Ada_Too is
procedure Ada_Procedure_Too is
begin
Put_Line(" Hello, I am Ada code too.");
end Ada_Procedure_Too;
end I_Am_Ada_Too;
|
10,758 | ada | 12 | TUM-EI-RCS/StratoX | tests/assert_cut/src/calc.adb | <filename>tests/assert_cut/src/calc.adb
package body calc with SPARK_Mode is
procedure Forgetful_Assert (X, Y : out Integer) with
SPARK_Mode
is
begin
X := 1;
Y := 2;
pragma Assert (X = 1);
pragma Assert (Y = 2);
pragma Assert_And_Cut (X > 0); -- also forgets about Y
... |
10,759 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Exceptions/Ada/exceptions-4.ada | <reponame>LaudateCorpus1/RosettaCodeData
procedure Call_Foo is
begin
Foo;
exception
when Foo_Error =>
... -- do something
when others =>
... -- this catches all other exceptions
end Call_Foo;
|
10,760 | ada | 2 | zenharris/ada-bbs | src/formatter-get-format_character.adb | separate (Formatter.Get)
procedure Format_character (Data : in Contents;
In_The_String : in out String;
Location : in out Natural;
Width : in Natural := 0;
Left_Ju... |
10,761 | ada | 0 | Louis-Aime/Milesian_calendar_Ada | computus_test.adb | -- Computus_test : Comparison of Easter date computations methods.
-- copyright Miletus 2015-2017 - no transformation allowed, no commercial use
-- application developed using GPS GPL 2014 of Adacore
-- inquiries: see www.calendriermilesien.org
-- Versions
-- M2017-11-14 : several tests possible within one single ses... |
10,762 | ada | 10 | Robert-Tice/AdaRoombot | src/algorithm.adb | <filename>src/algorithm.adb<gh_stars>1-10
with Commands; use Commands;
with Ada.Unchecked_Deallocation;
package body Algorithm is
procedure Process (Self : in out Pong_Algorithm;
Port : in Serial_Port;
Sensors : in Sensor_Collection)
is
begin... |
10,763 | ada | 2 | reznikmm/webdriver | source/webdriver.ads | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
------------------------------------------------------------------------------
-- WebDriver is a remote control interface that enables introspection a... |
10,764 | ada | 20 | HeisenbugLtd/spat | src/util/spat-log.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- Copyright (C) 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... |
10,765 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming11.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body Renaming11 is
function F (Arg: Ptr3) return Integer is
V : Ptr1 renames Arg.all.all;
I : Integer renames V.A(1);
begin
return I;
end;
end Renaming11;
|
10,766 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-maps.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the Lic... |
10,767 | ada | 0 | reznikmm/declarative-regions | source/regions/regions-contexts-environments-package_nodes.ads | -- SPDX-FileCopyrightText: 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Regions.Contexts.Environments.Nodes;
with Regions.Entities.Packages;
with Regions.Shared_Hashed_Maps;
-- with Regions.Shared_Lists;
private
package Regions.Contexts... |
10,768 | ada | 0 | damaki/EVB1000 | src/stm32-usart.ads | <filename>src/stm32-usart.ads
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.USART is
pragma Preelaborate;
---------------
-- Registers --
---------------
-----------------
-- SR_Register -... |
10,769 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-text.ads | with
openGL.Font;
package openGL.Model.text
--
-- Provides an abstract model for rendering text.
--
is
type Item is abstract new Model.item with -- TODO: Make private.
record
null;
end record;
type View is access all Item'Class;
procedure Text_is (Self : in out Item; Now :... |
10,770 | ada | 3 | jwarwick/aoc_2020 | day04/tests/day-test.adb | with AUnit.Assertions; use AUnit.Assertions;
package body Day.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
batch : constant Passport_Vectors.Vector := load_batch("test1.txt");
len : constant Count_Type := batch.length;
cnt : constant... |
10,771 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-pools.ads | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
10,772 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-memory.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
10,773 | ada | 30 | Componolit/libsparkcrypto | src/shared/generic/lsc-ops_generic.adb | -------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- @author <NAME>
-- @date 2019-01-22
--
-- Copyright (C) 2018 Componolit GmbH
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modifi... |
10,774 | ada | 7 | Fabien-Chouteau/Giza | gtkada_backend/example/rpm_widget.ads | with Giza.Widgets.Frame; use Giza.Widgets.Frame;
with Giza.Graphics; use Giza.Graphics;
with Giza.Events; use Giza.Events;
package RPM_Widget is
subtype RPM_Range is Natural range 0 .. 9999;
type RPM is new Gframe with private;
overriding
procedure Draw (This : in out RPM;
Ctx : in o... |
10,775 | ada | 0 | TNO/Rejuvenation-Ada | workshop/src/parentpackage.adb | <reponame>TNO/Rejuvenation-Ada<gh_stars>0
with Ada.Containers;
pragma Unreferenced (Ada.Containers);
package body ParentPackage is
procedure ParentDummy is null;
end ParentPackage;
|
10,776 | ada | 4 | jerry-sky/academic-notebook | electives/pw/lab/lista-1/ada/node.ads | <reponame>jerry-sky/academic-notebook
with Ada.Numerics.Float_Random;
with RandInt;
with Logger;
with External; use External;
package Node is
package RAF renames Ada.Numerics.Float_Random;
package LOG renames Logger;
package RAD renames RandInt;
type NodeObj;
type pNodeObj is access NodeObj;
... |
10,777 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/answers/160_interfacing/counter.adb | <filename>courses/spark_for_ada_programmers/labs/answers/160_interfacing/counter.adb
with System.Storage_Elements;
package body Counter
with SPARK_Mode
is
procedure Bump_And_Monitor (Alarm : out Boolean)
is
Calc : Integer;
begin
Calc := Port;
Alarm := Limit < Calc;
end Bump_And_Monitor... |
10,778 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/g-moreex.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/g-moreex.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS -... |
10,779 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Hailstone-sequence/Ada/hailstone-sequence-3.ada | package body Hailstones is
function Create_Sequence (N : Positive) return Integer_Sequence is
begin
if N = 1 then
-- terminate
return (1 => N);
elsif N mod 2 = 0 then
-- even
return (1 => N) & Create_Sequence (N / 2);
else
-- odd
return (1 =>... |
10,780 | ada | 33 | ytomino/drake | source/s-ucf8t3.ads | pragma License (Unrestricted);
-- implementation unit
package System.UTF_Conversions.From_8_To_32 is
pragma Pure;
pragma Suppress (All_Checks); -- for instantiation
procedure Convert is
new Convert_Procedure (
Character,
String,
Wide_Wide_Character,
Wide_Wide_String... |
10,781 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-exexpr-gcc.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/a-exexpr-gcc.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
10,782 | ada | 80 | thindil/steamsky | src/ui/bases-lootui.adb | -- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is... |
10,783 | ada | 12 | jquorning/ada-asf | src/asf-security-filters.ads | -----------------------------------------------------------------------
-- security-filters -- Security filter
-- Copyright (C) 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 compliance with t... |
10,784 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstffts16_h.ads | <filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_fft_gstffts16_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with System;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with GStreamer.GST_Lo... |
10,785 | ada | 0 | hannesb0/rtpl18 | src/test01/src/counting.adb | <filename>src/test01/src/counting.adb<gh_stars>0
-- Task 2 of RTPL WS17/18
-- Team members: <NAME>. and <NAME>.
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
package body counting with SPARK_Mode is
-- Procedure for option 1
procedure opt1 is
-- Integer values for user input
I1 ... |
10,786 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-awk.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-awk.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
10,787 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_procedure_access_types.adb | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Formal_Procedure_Access_Types is
function Create
(Not_Token : Program.Lexical_Elements.Lexical... |
10,788 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp8/abr.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
package body ABR is
procedure Free is
new Ada.Unchecked_Deallocation (Object => T_Noeud, Name => T_ABR);
procedure Initialiser(Abr: out T_ABR) is
begin
Abr := Null;
end Initialiser;
function Est_Vide (Abr : T_Abr) return Boole... |
10,789 | ada | 20 | charlie5/lace | 3-mid/opengl/source/opengl.ads | <gh_stars>10-100
with
GL,
float_Math.Algebra.linear.d2,
float_Math.Algebra.linear.d3,
float_Math.Geometry.d2,
float_Math.Geometry.d3,
ada.Containers;
package openGL
--
-- Provides a namespace and set of core types.
--
is
pragma Pure;
Error : exception;
------------
-- ... |
10,790 | ada | 24 | svn2github/matreshka | source/xml/dom/matreshka-dom_character_datas.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
10,791 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-debpoo.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
10,792 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-tables-uml_metamodel-objects.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
10,793 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/030_basic_types/main.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
-- type Number_Of_Tests_T is ?
-- type Test_Score_Total_T is ?
-- Number_Of_Tests : Number_Of_Tests_T;
-- Test_Score_Total : Test_Score_Total_T;
-- type Degrees_T is ?
-- Angle : Degrees_T;
-- type Cymk_T is ?
-- Color : Cymk_T;
b... |
10,794 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | apps/bootloader/flash.ads | with Interfaces; use Interfaces;
package Flash is
pragma Preelaborate;
procedure Init
with Inline_Always;
procedure Unlock
with Inline_Always;
procedure Lock
with Inline_Always;
procedure Enable_Erase
with Inline_Always;
procedure Enable_Write
with Inline_Always;
pr... |
10,795 | ada | 0 | thierr26/ada-keystore | tools/akt-commands.adb | -----------------------------------------------------------------------
-- akt-commands -- Ada Keystore Tool commands
-- Copyright (C) 2019 <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.... |
10,796 | ada | 3 | rogermc2/GA_Ada | ga_ref_impl/src/blade.ads |
with Interfaces; use Interfaces;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Blade_Types; use Blade_Types;
with GA_Maths;
with Metric;
package Blade is
use Ada.Strings.Unbounded;
type Basis_Blade is record
Bitmap : Interfaces.Unsigned_32 :... |
10,797 | ada | 15 | mgrojo/adalib | ada-numerics.ads | <filename>ada-numerics.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, 1995 Intermetr... |
10,798 | ada | 33 | ytomino/drake | source/machine-apple-darwin/s-stack.ads | <filename>source/machine-apple-darwin/s-stack.ads
pragma License (Unrestricted);
-- runtime unit specialized for Darwin
with C.pthread;
with C.signal;
package System.Stack is
pragma Preelaborate;
procedure Get (
Thread : C.pthread.pthread_t := C.pthread.pthread_self;
Top, Bottom : out Address);
... |
10,799 | ada | 0 | My-Colaborations/ada-el | src/el-expressions.ads | <gh_stars>0
-----------------------------------------------------------------------
-- EL.Expressions -- Expression Language
-- Copyright (C) 2009, 2010, 2011, 2017, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.