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 |
|---|---|---|---|---|---|
7,900 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-if_expressions.ads | <filename>source/nodes/program-nodes-if_expressions.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Elsif_Paths;
with Program.E... |
7,901 | ada | 24 | svn2github/matreshka | source/league/matreshka-cldr-collation_rules_parser.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,902 | ada | 81 | twdroeger/ada-awa | awa/plugins/awa-workspaces/src/awa-workspaces-beans.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-workspaces-beans -- Beans for module workspaces
-- Copyright (C) 2011, 2012, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this... |
7,903 | ada | 24 | svn2github/matreshka | tools/ayacc/examples/ada_parser/parse.adb | with ada_parse, ada_lex.io, ada_lex, text_io;
use ada_parse, text_io;
procedure parse is
in_file_name: string(1..80);
last : natural;
begin
text_io.put("Enter input file: ");
text_io.get_line(in_file_name, last);
ada_lex.io.open_input(in_file_name(1..last));
ada_lex.io.create_output;
p... |
7,904 | ada | 0 | Fabien-Chouteau/libriscv | src/libriscv.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- --
-- Redistrib... |
7,905 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/scn.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/scn.adb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,906 | ada | 1 | stcarrez/helios | src/helios-monitor-sysfile.adb | -----------------------------------------------------------------------
-- helios-monitor-sysfile -- Generic system file monitor
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with t... |
7,907 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/c_words.adb | -- { dg-do compile }
package body C_Words is
function New_Word (Str : String) return Word is
begin
return (Str'Length, Str);
end New_Word;
function New_Word (Str : String) return C_Word is
begin
return (Str'Length, Str);
end New_Word;
end C_Words;
|
7,908 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic7_2.adb | <gh_stars>1-10
--- { dg-do run }
with Atomic7_Pkg1; use Atomic7_Pkg1;
procedure Atomic7_2 is
begin
if I /= 1 then
raise Program_Error;
end if;
end;
|
7,909 | ada | 80 | thindil/steamsky | src/bases-cargo.adb | <gh_stars>10-100
-- Copyright 2017-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (... |
7,910 | ada | 12 | TUM-EI-RCS/StratoX | bug-reports/const-unit-argument/src/units-navigation.adb | <filename>bug-reports/const-unit-argument/src/units-navigation.adb
with Units; use Units;
package body Units.Navigation with SPARK_Mode is
function foo return Heading_Type is
result : Angle_Type;
-- SPARK GPL 2016: everything okay.
-- SPARK Pro 18.0w: error with DEGREE 360; remove "constant" and... |
7,911 | ada | 52 | onox/orka | orka_simd/src/x86/gnat/orka-simd-avx-doubles-math.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
7,912 | ada | 30 | jrmarino/AdaBase | src/results/adabase-results-converters.adb | <reponame>jrmarino/AdaBase
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Strings;
with Ada.Characters.Conversions;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
package body AdaBase.Results.Converters is
package AS renames Ada.Strings;
... |
7,913 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | ADL/drivers/stm32h743/stm32-exti.ads | <reponame>JCGobbi/Nucleo-STM32H743ZI
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
7,914 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__armv8a.adb | <filename>bb-runtimes/src/s-bbbosu__armv8a.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,915 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-common-sentinel_serial_buffers.ads | <gh_stars>0
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with Dynamic_Strings; use Dynamic_Strings;
package UxAS.Common.Sentinel_Serial_Buffers is
Type_Name : constant String := "SerialStringSentinel";
Sentinal_Buffer_Max_Capacity : constant := 2 * 1024; -- arbitrary TODO: see how big it really needs to be
... |
7,916 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker-toml.ads | <reponame>Fabien-Chouteau/fsmaker<filename>src/fsmaker-toml.ads
package FSmaker.TOML is
procedure Build_From_TOML (Path_To_TOML, Path_To_Output : String);
end FSmaker.TOML;
|
7,917 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/noreturn3.ads | package Noreturn3 is
Exc1 : Exception;
Exc2 : Exception;
Exc3 : Exception;
type Enum is (One, Two, Three);
procedure Raise_Error (E : Enum; ErrorMessage : String);
pragma No_Return (Raise_Error);
end Noreturn3;
|
7,918 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-cache.ads |
with Memory.Container; use Memory.Container;
package Memory.Cache is
type Cache_Type is new Container_Type with private;
type Cache_Pointer is access all Cache_Type'Class;
type Policy_Type is (LRU, -- Least recently used
MRU, -- Most recently used
... |
7,919 | ada | 9 | jhumphry/SPARK_NORX | src/load_store_le/norx_load_store.ads | <gh_stars>1-10
-- NORX_Load_Store
-- A collection of functions to load and store words of different sizes from
-- Storage_Array in Little Endian format. This version assumes that the machine
-- is Little Endian and does unchecked conversions to convert the types.
-- Copyright (c) 2016, <NAME> - see LICENSE file for de... |
7,920 | ada | 0 | Robert-Tice/AdaFractalLib | src/julia_set.ads | with Computation_Type;
with Image_Types;
generic
with package CT is new Computation_Type (<>);
with package IT is new Image_Types (<>);
Escape_Threshold : CT.Real;
package Julia_Set is
use CT;
procedure Calculate_Pixel (Re : Real;
Im : Real;
... |
7,921 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/table.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,922 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf_svd-uicr.ads | <filename>arch/ARM/Nordic/svd/nrf51/nrf_svd-uicr.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 code... |
7,923 | ada | 11 | psyomn/ash | test/common_utils_suite.adb | <filename>test/common_utils_suite.adb
-- Copyright 2019 <NAME> (psyomn)
--
-- 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
--
-- Unle... |
7,924 | ada | 1 | charlie5/lace-alire | 4-high/gel/applet/demo/sprite/mixed_joints_2d/launch_mixed_joints_2d.adb | <reponame>charlie5/lace-alire
with
gel.Window.setup,
gel.Applet.gui_world,
gel.Forge,
gel.Sprite,
gel.Joint,
opengl.Palette,
Physics,
ada.Text_IO,
ada.Exceptions;
pragma unreferenced (gel.Window.setup);
procedure launch_mixed_Joints_2d
--
-- Drops a variety of shapes ... |
7,925 | ada | 0 | faelys/natools | tests/natools-time_statistics-tests.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
7,926 | ada | 45 | alkalinin/raytracer | ada/src/main.adb | <reponame>alkalinin/raytracer
--
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- main program
--
-- Ada packages
with Ada.Text_IO; use Ada.Text_IO; -- I/O
with Ada.Real_Time; -- timing
-- local packages
with Bitmap;
with Cameras;
with Colors;
with Lights;
with O... |
7,927 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-window-joystick.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... |
7,928 | ada | 0 | tyudosen/DualStack | ArrivalForRepair.adb | <reponame>tyudosen/DualStack<filename>ArrivalForRepair.adb
with RandFloat; use RandFloat;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting;
with Ada.Calendar.Time_zones; use Ada.Calendar.Time_zones;
with Unchecked_Conversion;
with gstack;
... |
7,929 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/drivers/dma2d/stm32-dma2d.ads | <filename>software/hal/hpl/STM32/drivers/dma2d/stm32-dma2d.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
7,930 | ada | 0 | VitalijBondarenko/adagettext | src/l10n_table.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2015 <NAME> <<EMAIL>> --
-- --
----------------------------... |
7,931 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-abstractgeometry.ads | <reponame>joffreyhuguet/LmcpGen<gh_stars>0
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with avtas.lmcp.types; use avtas.lmcp.types;
package afrl.cmasi.abstractGeometry is
type AbstractGeometry is new afrl.cmasi.object.Object with private;
type Abst... |
7,932 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Singly-linked-list-Traversal/Ada/singly-linked-list-traversal.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_Io; use Ada.Text_Io;
procedure Traversal_Example is
package Int_List is new Ada.Containers.Doubly_Linked_Lists(Integer);
use Int_List;
procedure Print(Position : Cursor) is
begin
Put_Line(Integer'Image(Ele... |
7,933 | ada | 1 | mullikine/RosettaCodeData | Task/Power-set/Ada/power-set.ada | with Ada.Text_IO, Ada.Command_Line;
use Ada.Text_IO, Ada.Command_Line;
procedure powerset is
begin
for set in 0..2**Argument_Count-1 loop
Put ("{");
declare
k : natural := set;
first : boolean := true;
begin
for i in 1..Argument_Count loop
if k mod 2 = 1 then
Put ((if first then "" else ","... |
7,934 | ada | 1 | XMoose25X/Advanced-Dungeon-Assault | Source/player.ads | with inventory_list; Use inventory_list;
with stats; Use stats;
package player is
Type Player_Type is record
weapon : inventoryItem;
helmet : inventoryItem;
chestArmor : inventoryItem;
gauntlets : inventoryItem;
legArmor : inventoryItem;
boots : inventoryItem;
backpack : List_Type;
stats : statT... |
7,935 | ada | 45 | alkalinin/raytracer | ada/src/vectors.adb | --
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- implementation for 3d Vectors, which describe positions, directions, etc.
--
pragma Ada_2020;
-- Ada packages
with Ada.Numerics.Generic_Elementary_Functions;
-- local packages
with RayTracing_Constants; use RayTracing_Constan... |
7,936 | ada | 1 | jhumphry/Ascon_SPARK | src/ascon-utils.ads | <gh_stars>1-10
-- Ascon.Utils
-- Some utility routines useful when writing the examples.
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
generic
package Ascon.Utils is
procedure Put_State(S : in Ascon.State);
-- Print out a hexadecimal representation of the state to the console
procedure Put_... |
7,937 | ada | 0 | reznikmm/markdown | sources/md/markdown-inline_parsers-autolinks.adb | <reponame>reznikmm/markdown<filename>sources/md/markdown-inline_parsers-autolinks.adb<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Regexps;
package body Markdown.Inline_Parsers.Autolinks is... |
7,938 | ada | 7 | kimtg/euler-ada | euler20.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Euler20 is
function To_Integer(C : Character) return Integer is (Character'Pos(C) - Character'Pos('0'));
function To_String(I : Integer) return String is
S : String := Integer'Image(I);
begin
if... |
7,939 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36180a.ada | -- C36180A.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... |
7,940 | ada | 33 | ytomino/drake | source/strings/a-stgeun.ads | pragma License (Unrestricted);
-- generalized unit of Ada.Strings.Unbounded
with Ada.References;
with Ada.Streams;
with Ada.Unchecked_Deallocation;
private with Ada.Finalization;
private with System.Reference_Counting;
generic
type Character_Type is (<>);
type String_Type is array (Positive range <>) of Characte... |
7,941 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/msp430g2452/svd/msp430_svd.ads | <filename>msp430x2/msp430g2452/svd/msp430_svd.ads
-- This spec has been automatically generated from out.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces; use Interfaces;
with System;
package MSP430_SVD is
pragma Preelaborate;
---------------
-- B... |
7,942 | ada | 80 | thindil/steamsky | tests/factions-test_data-tests.ads | <reponame>thindil/steamsky
-- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Factions.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Factions.Tes... |
7,943 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_ch6.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,944 | ada | 33 | ytomino/drake | source/tasking/required/s-tpobop.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with Ada.Exceptions;
with System.Tasking.Protected_Objects.Entries;
package System.Tasking.Protected_Objects.Operations is
-- required by compiler
type Communication_Block is null record;
pragma Suppress_Initialization (Communication... |
7,945 | ada | 0 | optikos/oasis | source/nodes/program-nodes-while_loop_statements.adb | <filename>source/nodes/program-nodes-while_loop_statements.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.While_Loop_Statements is
function Create
(Statement_I... |
7,946 | ada | 0 | reznikmm/slimp | source/slim-fonts.adb | <reponame>reznikmm/slimp<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
with Ada.Wide_Wide_Text_IO;
with Interfaces;
with League.Regexps;
with League.String_Vectors;
wi... |
7,947 | ada | 0 | Roldak/OpenGLAda | tests/glfw2/glfw_test-display.adb | <filename>tests/glfw2/glfw_test-display.adb
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Display;
with Glfw.Display.Modes;
with Glfw.Events;
with Glfw.Events.Keys;
with Ada.Text_IO;
procedure Glfw_Test.Display is
procedure Write_Mode (Su... |
7,948 | ada | 4 | davidkristola/vole | kv-avm-methods.ads | with kv.avm.References;
with kv.avm.Registers;
with kv.avm.Instructions;
package kv.avm.Methods is
type Method_Type is tagged private;
type Method_Access is access Method_Type;
function New_Method(Name : String; Code : kv.avm.Instructions.Code_Access) return Method_Access;
procedure Initialize
(Se... |
7,949 | ada | 0 | SSOCsoft/Log_Reporter | src/ini-print.ads | Procedure INI.Print(Object : Instance);
|
7,950 | ada | 1 | ytomino/vampire | source/vampire-r3-index_page.adb | -- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Index_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
HTML_Directory : in String;
Summaries : in out Tabula.Villages.Lists.Summary_Maps.Map;
Muramura : in Natural;
... |
7,951 | ada | 0 | bracke/Meaning | source/Controller_Help.adb | with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.Toolbox; use RASCAL.Toolbox;
with RASCAL.WimpTask; use RASCAL.WimpTask;
with RASCAL.UserMessages;
with RASCAL.InteractiveHelp;
with RASCAL.StrongHelp;
with Main; use Main;
with Ada.Exceptions;
with Reporter;
... |
7,952 | ada | 33 | ytomino/drake | source/image/required/s-wchwts.adb | with System.UTF_Conversions.From_16_To_8;
with System.UTF_Conversions.From_32_To_8;
package body System.WCh_WtS is
function Wide_String_To_String (
S : Wide_String;
EM : WC_Encoding_Method)
return String
is
pragma Unreferenced (EM);
begin
return UTF_Conversions.From_16_To_8.Conve... |
7,953 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-proxy.ads | limited
with impact.d3.collision.Algorithm;
package impact.d3.collision.Proxy
--
-- The impact.d3.collision.Proxy is the main class that can be used with the Bullet broadphases.
--
-- It stores collision shape type information, collision filter information and a client object, typically a impact.d3.Object or impac... |
7,954 | ada | 17 | jrmarino/ravensource | bucket_4C/AdaBrowse/files/ad-projects-impl.ads | -- The FSF GNAT 4.9 Project code is hopelessly too modern for AdaBrowse to
-- hook into it. Just build AdaBrowse without it.
pragma License (GPL);
with AD.Projects.Impl_No;
private package AD.Projects.Impl
renames AD.Projects.Impl_No;
|
7,955 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2201f.ada | -- CE2201F.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... |
7,956 | ada | 6 | jquorning/ada-el | regtests/el-testsuite.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- EL testsuite - EL Testsuite
-- Copyright (C) 2009, 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with ... |
7,957 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-table.ads | <filename>ada/original_2008/ada-gui/agar-gui-widget-table.ads
with agar.core.event;
with agar.core.slist;
with agar.core.timeout;
with agar.gui.surface;
with agar.gui.widget.menu;
with agar.gui.widget.scrollbar;
with agar.gui.window;
package agar.gui.widget.table is
use type c.unsigned;
type popup_t is limited p... |
7,958 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-nodes-timed_nodes-milestones.adb | with Ada.Finalization; use Ada.Finalization;
with EU_Projects.Nodes.Action_Nodes.WPs;
package body EU_Projects.Nodes.Timed_Nodes.Milestones is
------------
-- Create --
------------
function Create
(Label : Milestone_Label;
Name : String;
Short_... |
7,959 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-objects.ads | <reponame>Roldak/OpenGLAda<filename>src/gl/interface/gl-objects.ads<gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Finalization;
with GL.Types;
private with GL.Low_Level;
package GL.Objects is
pragma Preelaborate;
use GL... |
7,960 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/stack_usage2.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O2 -fstack-usage" }
with System;
procedure Stack_Usage2 is
Sink : System.Address;
pragma Import (Ada, Sink);
procedure Transmit_Data (Branch : Integer) is
pragma No_Inline (Transmit_Data);
X : Integer;
begin
case Branch is
... |
7,961 | ada | 0 | hgrodriguez/eeprom_i2c_examples | examples_rp2040/src/helpers.ads | -----------------------------------------------------------------------------
-- Helpers package for different functions/procedures to minimize
-- code duplication
--
-- Copyright 2022 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.I2C;
with RP.GPIO;
with RP.I2C_Master;
with EEPROM_I2C;
packa... |
7,962 | ada | 1 | michalkonecny/polypaver | examples/SPARK2005/sqrt/src/sqrt.ads | <reponame>michalkonecny/polypaver
--# inherit PolyPaver.Exact, PolyPaver.Floats;
package Example is
function Sqrt (X : in Float) return Float;
--# pre 1.0 <= X and X <= 2.0;
--# return R =>
--# R <= (1.0+4.0*PolyPaver.Floats.Eps_Rel)*PolyPaver.Exact.Sqrt(X);
end Example;
|
7,963 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-transform_parser.adb |
with Memory.Container; use Memory.Container;
with Ada.Text_IO; use Ada.Text_IO;
package body Parser.Transform_Parser is
procedure Parse(parser : in out Parser_Type;
result : out Memory_Pointer) is
trans : T_Pointer := Create_Transform;
tname : constant String := Get_Nam... |
7,964 | ada | 0 | Letractively/ada-security | src/security-openid.adb | -----------------------------------------------------------------------
-- security-openid -- OpenID 2.0 Support
-- Copyright (C) 2009, 2010, 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 with... |
7,965 | ada | 0 | reznikmm/webidl | source/parser/webidl-parsers.ads | <filename>source/parser/webidl-parsers.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with WebIDL.Factories;
with WebIDL.Tokens;
with League.String_Vectors;
package WebIDL.Parsers is
pragma Preelabor... |
7,966 | ada | 0 | hajin-kim/PLS_TinyAda_Compiler | sample_input/testcase4.ada | Procedure Test is
COLUMN_MAX : constant := 10;
Begin
End Test; |
7,967 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c57004b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c57004b.ada
-- C57004B.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
-- unlimi... |
7,968 | ada | 2 | thindil/tashy2 | src/tcl-strings.adb | -- Copyright (c) 2020-2021 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or... |
7,969 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Huffman-coding/Ada/huffman-coding-3.ada | <filename>Task/Huffman-coding/Ada/huffman-coding-3.ada
with Ada.Text_IO;
with Huffman;
procedure Main is
package Char_Natural_Huffman_Tree is new Huffman
(Symbol_Type => Character,
Put => Ada.Text_IO.Put,
Symbol_Sequence => String,
Frequency_Type => Natural);
Tree : Char_Natural_Huf... |
7,970 | ada | 1 | faelys/lithium3 | src/lithium-comment_cookie_smaz.adb | <reponame>faelys/lithium3
------------------------------------------------------------------------------
-- Copyright (c) 2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software... |
7,971 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/interface5.ads | -- { dg-do compile }
-- { dg-options "-gnatc" }
package interface5 is
type Lim_Iface is limited interface;
protected type Prot_Typ is new Lim_Iface with
private
end Prot_Typ;
end interface5;
|
7,972 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-knd_conv.ads | <reponame>My-Colaborations/dynamo<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- ... |
7,973 | ada | 0 | alexcamposruiz/dds-requestreply | src/orig/dds-request_reply-replieruntypedimpl.adb | with DDS.Topic;
with DDS.TopicDescription;
with DDS.Request_Reply.Untypedcommon;
with DDS.Request_Reply.Connext_C_Entity_Params;
with System;
with DDS.Request_Reply.Connext_C_Replier;
package body DDS.Request_Reply.Replieruntypedimpl is
use System;
use Untypedcommon;
use Connext_C_Entity_Params;
use Conne... |
7,974 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | apps/nrf24_modem/main.adb | with Modem;
procedure Main is
begin
if Modem.Init then
Modem.Run;
else
Modem.Error;
end if;
end Main;
|
7,975 | ada | 0 | bracke/Meaning | source/Controller_Internet.ads | with RASCAL.OS; use RASCAL.OS;
package Controller_Internet is
type TEL_ViewHomePage_Type is new Toolbox_UserEventListener(16#18#,-1,-1) with null record;
type TEL_SendEmail_Type is new Toolbox_UserEventListener(16#19#,-1,-1) with null record;
--
-- The user wants to view the ... |
7,976 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45242b.ada | -- C45242B.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... |
7,977 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | ADL/devices/stm32-device.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- --
-- ... |
7,978 | ada | 0 | reznikmm/gela | source/oasis/program-elements-derived_record_extensions.ads | <reponame>reznikmm/gela<filename>source/oasis/program-elements-derived_record_extensions.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Pr... |
7,979 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Inverted-syntax/Ada/inverted-syntax.ada | Foo := 1;
loop
exit when Foo = 10;
Foo := Foo + 1;
end loop;
|
7,980 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/FM25V0x/fm25v0x.adb | -- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with System;
with Interfaces;
with HAL; use HAL;
with HIL.SPI; use HIL.SPI;
package body FM25v0x with SPARK_Mode
-- with Refined_State => (State => Is_Init)
is... |
7,981 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_16.ads | <reponame>Tim-Tom/project-euler<filename>Ada/inc/Problem_16.ads<gh_stars>0
package Problem_16 is
procedure Solve;
end Problem_16;
|
7,982 | ada | 0 | Latence-Technologies/Kafka-Ada | src/kafka-topic-config.ads |
package Kafka.Topic.Config is
--
-- Creates a new kafka topic config object
--
-- librdkafka equivalent: rd_kafka_topic_conf_new
--
function Create return Topic_Config_Type
with Import => True,
Convention => C,
External_Name => "rd_kafka_topic_conf_new";
... |
7,983 | ada | 20 | charlie5/lace | 1-base/lace/source/events/interface/lace-response.adb | with
ada.Tags;
package body lace.Response
is
function Name (Self : in Item) return String
is
begin
return ada.Tags.expanded_Name (Item'Class (Self)'Tag);
end Name;
end lace.Response;
|
7,984 | ada | 0 | faelys/natools | tests/natools-smaz_tests.adb | <gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --... |
7,985 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/g-pehage.ads | <reponame>brucegua/moocos
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,986 | ada | 286 | auzkok/libagar | ada/gui/agar-widget.ads | ------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . W I D G E T --
-- S p e c --
----... |
7,987 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/curr_task.adb | -- { dg-do run }
-- { dg-options "-gnatws" }
with Ada.Exceptions;
with Ada.Text_IO;
with Ada.Task_Identification;
procedure Curr_Task is
use Ada.Task_Identification;
-- Simple semaphore
protected Semaphore is
entry Lock;
procedure Unlock;
private
TID : Task_Id := Null_Task_Id;... |
7,988 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/opengl-conversions.adb | package body openGL.Conversions
is
function to_Vector_4 (From : in rgba_Color) return Vector_4
is
begin
return (Real (to_Primary (From.Primary.Red)),
Real (to_Primary (From.Primary.Green)),
Real (to_Primary (From.Primary.Blue)),
Real (to_Primary (From.Alpha)));
... |
7,989 | ada | 0 | KipodAfterFree/KAF-2019-FireHog | firehog/ncurses/Ada95/samples/sample-menu_demo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
7,990 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/comperr.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,991 | ada | 0 | thierr26/ada-apsepp | src/apsepp-generic_shared_instance.adb | <filename>src/apsepp-generic_shared_instance.adb
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Unchecked_Deallocation;
package body Apsepp.Generic_Shared_Instance is
----------------------------------------------------------------------------
procedure Unl_C... |
7,992 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Draw-a-clock/Ada/draw-a-clock.ada | with Ada.Numerics.Elementary_Functions;
with Ada.Calendar.Formatting;
with Ada.Calendar.Time_Zones;
with SDL.Video.Windows.Makers;
with SDL.Video.Renderers.Makers;
with SDL.Events.Events;
procedure Draw_A_Clock is
use Ada.Calendar;
use Ada.Calendar.Formatting;
Window : SDL.Video.Windows.Window;
Renderer... |
7,993 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-simple_return_statements.adb | <filename>source/nodes/program-nodes-simple_return_statements.adb<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Simple_Return_Statements is
function Create
(Return_Token ... |
7,994 | ada | 0 | Letractively/ada-awa | awa/src/awa-users-modules.ads | <filename>awa/src/awa-users-modules.ads<gh_stars>0
-----------------------------------------------------------------------
-- awa-users-module -- User management module
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the... |
7,995 | ada | 2 | zenharris/ada-bbs | src/dbase-login.adb |
Package body Dbase.Login is
CIB : Direct_Cursor;
function If_Exists (Usrnme : Unbounded_String) return Boolean is
Stmt : Prepared_Statement;
SQLstatement : Unbounded_String;
begin
SQLstatement := "SELECT * FROM users WHERE username = '"& Usrnme & "'";
Add (Standard_Window,
... |
7,996 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putima.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putima.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
7,997 | ada | 1 | TNO/Rejuvenation-Ada | src/string_sets_utils.adb | <filename>src/string_sets_utils.adb
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body String_Sets_Utils is
function From_Vector (V : Vector) return Set
is
Return_Value : Set;
begin
for E of V loop
Return_Value.Include (E);
end loop;
return Return_Value;
... |
7,998 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | msp430x2/msp430g2553/svd/msp430_svd-usci_b0_spi_mode.ads | -- This spec has been automatically generated from msp430g2553.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- USCI_B0 SPI Mode
package MSP430_SVD.USCI_B0_SPI_MODE is
pragma Preelaborate;
---------------
-- Registers --
---------------
--... |
7,999 | ada | 1 | jed-frey/e200-gcc | build_gnu/binutils/gdb/testsuite/gdb.ada/iwide/classes.ads | <filename>build_gnu/binutils/gdb/testsuite/gdb.ada/iwide/classes.ads<gh_stars>1-10
-- Copyright 2012-2014 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation;... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.