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 |
|---|---|---|---|---|---|
30,100 | ada | 5 | DependableSystemsLab/Trident | llvm-2.9/test/FrontendAda/switch.adb | -- RUN: %llvmgcc -S %s
function Switch (N : Integer) return Integer is
begin
case N is
when Integer'First .. -1 =>
return -1;
when 0 =>
return 0;
when others =>
return 1;
end case;
end;
|
30,101 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-powtab.ads | <filename>tools/scitools/conf/understand/ada/ada95/s-powtab.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,102 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-uml_protocol_transitions.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
30,103 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-debpoo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,104 | ada | 80 | thindil/steamsky | tests/ships-movement-test_data-tests.adb | <filename>tests/ships-movement-test_data-tests.adb
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. ... |
30,105 | ada | 0 | damaki/Verhoeff | src/verhoeff.adb | <filename>src/verhoeff.adb<gh_stars>0
-------------------------------------------------------------------------------
-- 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
-- deal in the... |
30,106 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-request-ees.ads | <filename>specs/ada/common/tkmrpc-request-ees.ads
package Tkmrpc.Request.Ees is
end Tkmrpc.Request.Ees;
|
30,107 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal-gen_bounded_definite_vectors-gen_refs.ads | <gh_stars>0
-- Abstract :
--
-- Variable_Reference for parent.
--
-- In a child package because it's not Spark, and Spark does not
-- allow 'Spark_Mode => Off' on type declarations.
--
-- Copyright (C) 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify ... |
30,108 | ada | 204 | spr93/whitakers-words | src/support_utils/support_utils-addons_package-target_entry_io.adb | -- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c). Permission i... |
30,109 | ada | 24 | svn2github/matreshka | tools/segments_readers.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
30,110 | ada | 0 | e3l6/SSMDev | gps.ads | <gh_stars>0
-------------------------------------------------------------------------------
-- GPS
--
-- Copyright © 2016 <NAME>
--
-- This code is available under the "MIT License".
-- Please see the file COPYING in this distribution for license terms.
--
-- Purpose:
-- This package interfaces to the Adafruit Ultima... |
30,111 | ada | 0 | bracke/Meaning | source/RASCAL-WimpWindow.adb | <gh_stars>0
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
30,112 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/timer_cancel.adb | -- { dg-do run }
with Ada.Real_Time.Timing_Events;
use Ada.Real_Time, Ada.Real_Time.Timing_Events;
procedure Timer_Cancel is
E : Timing_Event;
C : Boolean;
protected Dummy is
procedure Trigger (Event : in out Timing_Event);
end Dummy;
protected body Dummy is
procedure Trigger (Event : in... |
30,113 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile12.ads | package Volatile12 is
type Arr is array (Integer range <>) of Integer with Volatile;
procedure Proc (A : Arr);
end Volatile12;
|
30,114 | ada | 0 | reznikmm/gela | source/resolver/program-simple_resolvers.ads | -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Elements.Identifiers;
with Program.Cross_Reference_Updaters;
private
package Program.Simple_Resolvers is
pragma Preelab... |
30,115 | ada | 6 | jonashaggstrom/ada-canopen | tests/generic_collection_test.adb | with AUnit.Assertions; use AUnit.Assertions;
with ACO.Utils.DS.Generic_Collection;
with ACO.Utils.DS.Generic_Collection.Sorted;
package body Generic_Collection_Test is
pragma Assertion_Policy (Check);
type Item_Type is new Character;
subtype Test_Items is Item_Type range 'a' .. 'z';
package Collection_... |
30,116 | ada | 0 | jfouquart/synth | src/replicant-platform.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Replicant.Platform is
-- returns platform-specific df command
function df_command return String;
-- platform-specific version of file command
function file_type_command return String;
--... |
30,117 | ada | 0 | fintatarta/pulsada | src/pulsada.ads | <filename>src/pulsada.ads
with ada.Finalization;
use ada;
package Pulsada is
type Sampling_Frequency is range 0 .. 1_000_000;
type Sample_Type is mod 2 ** 16
with Size => 16;
Max_Channel : constant := 32;
type Channel_Index is range 1 .. Max_Channel;
type Frame is array (Channel_Index range <>... |
30,118 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr5.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr5.adb
-- { dg-do compile }
procedure Discr5 is
type Enum is (Ten, Twenty);
for Enum use (10, 20);
type Arr is array (Enum range <>) of Integer;
type Rec (Discr: Enum := Ten) is record
case Discr is
when others =>
A: Arr ... |
30,119 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/exp_pakd.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,120 | ada | 30 | jscparker/math_packages | polynomial/clenshaw/clenshaw.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- package body Clenshaw. Generates functions from recurrance relations.
-- Copyright (C) 2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted,... |
30,121 | ada | 33 | ytomino/drake | source/directories/machine-w64-mingw32/s-natcre.adb | with System.Zero_Terminated_WStrings;
with C.winbase;
with C.windef;
with C.winnt;
package body System.Native_Credentials is
use type C.size_t;
use type C.windef.WINBOOL;
function User_Name return String is
Result : aliased C.winnt.WCHAR_array (0 .. C.windef.MAX_PATH - 1);
Length : aliased C.winde... |
30,122 | ada | 12 | TUM-EI-RCS/StratoX | tests/polymorphism/src/i2c_interface.ads |
with HAL_Interface; use HAL_Interface;
package I2C_Interface with SPARK_Mode
--,Abstract_State => State
is
type I2C_Type is new Port_Type with record
pin : Integer := 0;
end record;
overriding
procedure configure(Port : I2C_Type; Config : Configuration_Type);
overriding
procedure wri... |
30,123 | ada | 0 | Fabien-Chouteau/libriscv | examples/simulator/src/gdb_remote-agent.ads | <filename>examples/simulator/src/gdb_remote-agent.ads<gh_stars>0
package GDB_Remote.Agent is
subtype Address is Unsigned_64;
type Instance (Buffer_Size : Buffer_Lenght_Type := 256)
is abstract tagged limited private;
subtype Class is Instance'Class;
type Ptr is access all Class;
procedure Send_To... |
30,124 | ada | 1 | annexi-strayline/ASAP-Unicode | unicode-utf8_stream_decoder-codec.ads | ------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- UTF-8 Stream Decoder --
-- ... |
30,125 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-buffer-indices.ads |
with GL.Buffer.general; pragma Elaborate_All (GL.Buffer.general);
with GL.Geometry;
package GL.Buffer.indices is new GL.Buffer.general (base_object => GL.Buffer.element_array_Object,
index => GL.positive_uInt,
... |
30,126 | ada | 2 | reznikmm/webdriver | source/webdriver-remote-executors.adb | <gh_stars>1-10
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with AWS.Response;
with League.JSON.Documents;
separate (WebDriver.Remote)
package body Executors is
-------------
-- Execute --... |
30,127 | ada | 4 | Alex-Gamper/Ada-Grammar | Win32.ads | <gh_stars>1-10
--------------------------------------------------------------------------------
-- --
-- Copyright (c) 2018 <NAME>, All Rights Reserved. --
-- ... |
30,128 | ada | 0 | Letractively/ada-security | src/security-permissions.adb | <filename>src/security-permissions.adb
-----------------------------------------------------------------------
-- security-permissions -- Definition of permissions
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
30,129 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-colors.ads | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
30,130 | ada | 7 | Fabien-Chouteau/coffee-clock | GUI_test/src/utils.adb | <reponame>Fabien-Chouteau/coffee-clock
with Screen_Interface; use Screen_Interface;
with Giza.Events; use Giza.Events;
with Giza.GUI; use Giza.GUI;
package body Utils is
task body Touch_Screen is
TS, Prev : Touch_State;
Evt : constant Click_Event_Ref := new Click_Event;
Released_Evt : constant Cli... |
30,131 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/unchecked_convert9.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-O -fdump-rtl-final" }
package body Unchecked_Convert9 is
procedure Proc is
L : Unsigned_32 := 16#55557777#;
begin
Var := Conv (L);
end;
end Unchecked_Convert9;
-- { dg-final { scan-rtl-dump-times "set \\(mem/v" 1 "final" } }
|
30,132 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stbuut.adb | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stbuut.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
30,133 | ada | 0 | My-Colaborations/ada-ado | src/postgresql/pq-perfect_hash.adb | <gh_stars>0
-- Generated by gperfhash
with Util.Strings.Transforms;
with Interfaces; use Interfaces;
package body PQ.Perfect_Hash is
P : constant array (0 .. 11) of Natural :=
(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 13);
T1 : constant array (0 .. 11) of Unsigned_16 :=
(458, 26, 756, 54, 156, 452, 817, 8... |
30,134 | ada | 33 | ytomino/drake | source/machine-w64-mingw32/s-stack.adb | <reponame>ytomino/drake<filename>source/machine-w64-mingw32/s-stack.adb
with Ada.Unchecked_Conversion;
package body System.Stack is
pragma Suppress (All_Checks);
-- implementation
procedure Get (
TEB : C.winnt.struct_TEB_ptr := C.winnt.NtCurrentTeb;
Top, Bottom : out Address)
is
functio... |
30,135 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-error_control-slaves.ads | package ACO.Protocols.Error_Control.Slaves is
type Slave
(Id : ACO.Messages.Node_Nr;
Od : not null access ACO.OD.Object_Dictionary'Class)
is new EC with private;
private
type Slave
(Id : ACO.Messages.Node_Nr;
Od : not null access ACO.OD.Object_Dictionary'Class)
is new EC (Id, Od... |
30,136 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Hickerson-series-of-almost-integers/Ada/hickerson-series-of-almost-integers.ada | with Ada.Text_IO;
with Ada.Numerics.Generic_Elementary_Functions;
procedure Almost_Integers is
type Real is new Long_Long_Float;
package Real_IO is
new Ada.Text_IO.Float_IO (Real);
package Integer_IO is
new Ada.Text_IO.Integer_IO (Integer);
function Faculty (N : in Long_Long_Integer) return ... |
30,137 | ada | 2 | stcarrez/bbox-ada-api | tools/druss-commands-devices.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- druss-commands-devices -- Print information about the devices
-- Copyright (C) 2017, 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
30,138 | ada | 10 | jrmarino/libsodium-ada | examples/hash_password/demo_ada.adb | with Sodium.Functions; use Sodium.Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Demo_Ada
is
password : constant String := "<PASSWORD>";
salt : constant String := "<PASSWORD>";
begin
if not initialize_sodium_library then
Put_Line ("Initialization failed");
return;
end if;
Put_L... |
30,139 | ada | 33 | ytomino/drake | source/numerics/a-nlcoar.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Long_Complex_Types;
with Ada.Numerics.Long_Real_Arrays;
package Ada.Numerics.Long_Complex_Arrays is
new Generic_Complex_Arrays (Long_Real_Arrays, Long_Complex_Types);
pragma Pure (Ada.Numerics.Long_Complex_Arr... |
30,140 | ada | 32 | persan/AdaYaml | src/annotation_processor/implementation/yaml-events-context.ads | <filename>src/annotation_processor/implementation/yaml-events-context.ads
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
private with Ada.Containers.Hashed_Maps;
with Yaml.Events.Store;
package Yaml.Events.Context is
type Reference is tagged private... |
30,141 | ada | 33 | ytomino/drake | source/strings/a-wchla1.ads | <filename>source/strings/a-wchla1.ads
pragma License (Unrestricted);
-- extended unit, not in RM
package Ada.Wide_Characters.Latin_1 is
-- Wide_Character version of Ada.Characters.Latin_1.
pragma Pure;
-- Control characters:
NUL : constant Wide_Character :=
Wide_Character'Val (0);
SOH : consta... |
30,142 | ada | 0 | My-Colaborations/ada-ado | src/ado-schemas.ads | <reponame>My-Colaborations/ada-ado
-----------------------------------------------------------------------
-- ado-schemas -- Database Schemas
-- Copyright (C) 2009, 2010, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
30,143 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c58006a.ada | -- C58006A.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... |
30,144 | ada | 19 | jquorning/ada-security | src/security-policies-urls.ads | <reponame>jquorning/ada-security
-----------------------------------------------------------------------
-- security-policies-urls -- URL security policy
-- Copyright (C) 2010, 2011, 2012, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
30,145 | ada | 33 | ytomino/drake | source/s-shaloc.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- implementation unit
package System.Shared_Locking is
pragma Preelaborate;
-- no-operation
procedure Nop is null;
type Enter_Handler is access procedure;
pragma Favor_Top_Level (Enter_Handler);
Enter_Hook : not null Enter_Handler := Nop'Acc... |
30,146 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__first_line_comment/comment-ko-1.adb | <reponame>AdaCore/style_checker<filename>testsuite/tests/NA17-007__first_line_comment/comment-ko-1.adb
-- Copyright (C) 2006, AdaCore --
with Ada.Command_Line; use Ada.Command_Line;
with ALI; use ALI;
with Csets;
with Gnatvsn;
with Hostparm;
with Makeutl; use Makeutl;
with MLib.Tgt; use MLib.Tgt;
with Namet; ... |
30,147 | ada | 1 | bracke/websitegenerator | src/generator.adb | <filename>src/generator.adb
pragma Ada_2012;
with Ada.Directories;
with Ada.Text_IO;
with Ada.Strings.Fixed;
with Ada.Characters.Handling;
with Generator.Frontmatter;
with Generator.Rssfeed;
with Generator.Sitemap;
with Ada.Text_IO.Text_Streams;
with Ada.Streams;
with Ada.Streams.Stream_IO;
with Ada.Numerics.Discrete_R... |
30,148 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Averages-Mode/Ada/averages-mode-2.ada | with Ada.Containers.Indefinite_Vectors;
package body Mode is
-- map Count to Elements
package Count_Vectors is new Ada.Containers.Indefinite_Vectors
(Element_Type => Element_Array,
Index_Type => Positive);
procedure Add (To : in out Count_Vectors.Vector; Item : Element_Type) is
use type Cou... |
30,149 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/old/tlsf-mem_block_size.ads | <reponame>vasil-sd/ada-tlsf<gh_stars>1-10
with TLSF.Config;
use TLSF.Config;
private package TLSF.Mem_Block_Size
with SPARK_Mode is
type Size is mod 2 ** Max_Block_Size_Log2
with Size => Max_Block_Size_Log2;
use type SSE.Storage_Count;
use type SSE.Integer_Address;
function Align ( Sz : Size) retur... |
30,150 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/exp_disp.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,151 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l0x3/stm32_svd-firewall.ads | -- This spec has been automatically generated from STM32L0x3.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.Firewall is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype FIREWALL_CSSA_ADD... |
30,152 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/sercom_u2201/sam-sercom-i2c.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020, AdaCore --
-- --
-- ... |
30,153 | ada | 0 | daemonl/openapi-codegen | snapshot/Ada/server-spec.ada | -- Swagger Petstore
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
-- ------------ EDIT NO... |
30,154 | ada | 0 | optikos/oasis | source/nodes/program-nodes-ordinary_fixed_point_types.adb | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Ordinary_Fixed_Point_Types is
function Create
(Delta_Token : not null Program.Lexical_Elements
... |
30,155 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ees/tkmrpc-operation_handlers-ees-esa_acquire.ads | <reponame>DrenfongWong/tkm-rpc<filename>specs/ada/server/ees/tkmrpc-operation_handlers-ees-esa_acquire.ads<gh_stars>0
with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Operation_Handlers.Ees.Esa_Acquire is
procedure Handle (Req : Request.Data_Type; Res : out Response.Data_Type);
-- Handler for the esa_... |
30,156 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Non-decimal-radices-Convert/Ada/non-decimal-radices-convert.ada | with Ada.Text_Io; use Ada.Text_Io;
with Ada.Strings.Fixed;
With Ada.Strings.Unbounded;
procedure Number_Base_Conversion is
Max_Base : constant := 36;
subtype Base_Type is Integer range 2..Max_Base;
Num_Digits : constant String := "0123456789abcdefghijklmnopqrstuvwxyz";
Invalid_Digit : exception;
functi... |
30,157 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-crbtgo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
30,158 | ada | 35 | arc-aosp/external_libncurses | Ada95/samples/sample-menu_demo-handler.adb | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
30,159 | ada | 0 | mstewartgallus/linted | src/ada-core/src/linted-poller.ads | <filename>src/ada-core/src/linted-poller.ads
-- Copyright 2016,2017 <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
--
-- Unles... |
30,160 | ada | 0 | ytomino/gnat4drake | s-fileio.adb | <reponame>ytomino/gnat4drake
package body System.File_IO is
procedure Check_File_Open (File : File_Control_Block.AFCB_Ptr) is
begin
raise Program_Error; -- unimplemented
end Check_File_Open;
end System.File_IO;
|
30,161 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/visitfailurepackage.adb | with Ada.Text_IO;
use Ada.Text_IO;
package body VisitFailurePackage is
procedure RaiseVisitFailure(msg: String) is
begin
put_line(msg);
raise VisitFailure;
end RaiseVisitFailure;
end VisitFailurePackage;
|
30,162 | ada | 15 | mgrojo/adalib | ada-containers-generic_constrained_array_sort.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-... |
30,163 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-prefetch.ads | <filename>memsim-master/src/memory-prefetch.ads
with Memory.Container; use Memory.Container;
package Memory.Prefetch is
type Prefetch_Type is new Container_Type with private;
type Prefetch_Pointer is access all Prefetch_Type'Class;
function Create_Prefetch(mem : access Memory_Type'Class;
... |
30,164 | ada | 3 | rogermc2/GA_Ada | example_2.2/src/graphic_data.adb | <reponame>rogermc2/GA_Ada<gh_stars>1-10
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Attributes;
with GL.Culling;
with GL.Objects.Buffers;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Rasterization;
with GL.Toggles;
with GL.Types.Colors;
with GL.Uniforms;
wit... |
30,165 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike-ae_reset.adb | <filename>specs/ada/server/ike/tkmrpc-operation_handlers-ike-ae_reset.adb
with Tkmrpc.Servers.Ike;
with Tkmrpc.Results;
with Tkmrpc.Request.Ike.Ae_Reset.Convert;
with Tkmrpc.Response.Ike.Ae_Reset.Convert;
package body Tkmrpc.Operation_Handlers.Ike.Ae_Reset is
-------------------------------------------------------... |
30,166 | ada | 6 | godunko/adagl | sources/glew/opengl-generic_buffers.adb | ------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- --
-- ... |
30,167 | ada | 3 | stcarrez/ada-css | src/css-core.ads | -----------------------------------------------------------------------
-- css-core -- Core CSS API definition
-- 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 the License.
-- Yo... |
30,168 | ada | 1 | selroc/Renaissance-Ada | src/libraries/Rejuvenation_Lib/src/rejuvenation-pretty_print.adb | with Ada.Assertions; use Ada.Assertions;
with Interfaces.C; use Interfaces.C;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.File_Utils; use Rejuvenation.File_Utils;
with Rejuvenation.Indentation; use Rejuvenation.Indentation;
with Rejuvenation.Navigation; u... |
30,169 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_15/problem_15.ads | with Test_Solution; use Test_Solution;
package problem_15 is
type Int128 is range -2**127 .. 2**127 - 1;
function Solution_1 return Int128;
procedure Test_Solution_1;
function Get_Solutions return Solution_Case;
end problem_15;
|
30,170 | ada | 0 | persan/a-cups | src/gen/cups-netinet_in_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.stdint_h;
with CUPS.bits_sockaddr_h;
with CUPS.bits_socket_h;
with System;
with CUPS.unistd_h;
private package CUPS.netinet_in_h is
-- unsupported macro: IPPROTO_IP IPPROTO_IP
-- unsupported macro: IPPROTO_ICMP IPPROTO... |
30,171 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c41401a.ada | -- C41401A.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... |
30,172 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-ststio.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
30,173 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/logger.adb | with Ada.Text_IO;
package body logger with Refined_State => (LogState => null)
is
procedure init(status : out Init_Error_Code) is null;
procedure Start_SDLog is null;
function Image (level : Log_Level) return String is
begin
case level is
when SENSOR => return "S: ";
when ERROR =... |
30,174 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stobbu.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
30,175 | ada | 5 | Kidev/DemoAdaPhysics2D | src/adaphysics2ddemo.adb | <filename>src/adaphysics2ddemo.adb
with Entities; use Entities;
with Rectangles;
with Worlds;
with Materials;
with Vectors2D; use Vectors2D;
with Renderer; use Renderer;
with DemoLogic; use DemoLogic;
with Utils; use Utils;
package body AdaPhysics2DDemo is
procedure Start(This : in out Menu)
is
SCeiling, ... |
30,176 | ada | 60 | RREE/ada-util | src/sys/serialize/util-serialize-io-csv.adb | -----------------------------------------------------------------------
-- util-serialize-io-csv -- CSV Serialization Driver
-- Copyright (C) 2011, 2015, 2016, 2017, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
30,177 | ada | 65 | vdh-anssi/ewok-kernel | src/syscalls/ewok-syscalls-exiting.adb | <reponame>vdh-anssi/ewok-kernel<filename>src/syscalls/ewok-syscalls-exiting.adb<gh_stars>10-100
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
-- - <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ... |
30,178 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cb/cb3003a.ada | <gh_stars>1-10
-- CB3003A.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.... |
30,179 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/answers/130_state_abstractions/refined/a_stack.adb | package body A_Stack with
SPARK_Mode,
-- The_Stack is actually refined into three constituents
Refined_State => (The_Stack => (P, V, M))
is
subtype Pointer_T is Integer range 0 .. Stack_Size;
subtype Index_T is Pointer_T range 1 .. Pointer_T'Last;
P : Pointer_T := 0;
V : array (Inde... |
30,180 | ada | 30 | jscparker/math_packages | polynomial/spline/tridiagonal_lu.ads | <reponame>jscparker/math_packages
-- package Tridiagonal_LU
--
-- The package implements Crout's method for LU decomposition of
-- tri-diagonal matrices. Matrix A is input in the form of three
-- diagonals: the central diagonal of A, indexed by 0, and the
-- two side diagonals indexed by -1 and 1.
--
-- The LU form o... |
30,181 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/geometry/opengl-geometry-colored_textured.adb | with
openGL.Shader,
openGL.Buffer.general,
openGL.Program,
openGL.Attribute,
openGL.Texture,
openGL.Palette,
openGL.Tasks,
openGL.Errors,
GL.Binding,
GL.lean,
GL.Pointers,
System,
Interfaces.C.Strings,
System.storage_Elements;
package body openGL.... |
30,182 | ada | 9 | AntonMeep/parse_args | src/parse_args-generic_discrete_options.ads | -- parse_args-generic_discrete_option.ads
-- A simple command line option parser
-- Copyright (c) 2015, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear i... |
30,183 | ada | 192 | rocher/Ada_Drivers_Library | middleware/src/BLE/bluetooth_low_energy-packets.ads | <filename>middleware/src/BLE/bluetooth_low_energy-packets.ads<gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- ... |
30,184 | ada | 2 | corentingay/ada_epita | project/adl/arch/ARM/Nordic/drivers/nrf51-gpio-tasks_and_events.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
30,185 | ada | 0 | optikos/oasis | source/oasis/program-elements-simple_return_statements.ads | <filename>source/oasis/program-elements-simple_return_statements.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elem... |
30,186 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2401b.ada | -- CE2401B.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... |
30,187 | ada | 286 | auzkok/libagar | ada/core/agar-error.adb | <filename>ada/core/agar-error.adb
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . E R R O R --
-- B o d y ... |
30,188 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__Ada_units/gnat95_config/has_05.adb | <reponame>AdaCore/style_checker
-- An Ada source file which is supposed to be Ada95 only, but has
-- some Ada 2005 code in it.
procedure Has_05 is
begin
-- Introduce a deliberate Ada 2005 construct to verify that
-- the style_checker uses -gnat05, and that the compiler
-- therefore flags this as a violati... |
30,189 | ada | 1 | TNO/Rejuvenation-Ada | workshop/src/prefix_notation.ads | package Prefix_Notation is
type My_Type is tagged private;
procedure Operator_Zero (X : My_Type);
procedure Operator_One (X : My_Type; A : Integer);
private
type My_Type is tagged null record;
procedure Operator_Zero (X : My_Type) is null;
procedure Operator_One (X : My_Type; A : Integer) is nu... |
30,190 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-tporft.adb | <reponame>best08618/asylo<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
30,191 | ada | 1 | faelys/natools-web | src/natools-web-simple_pages.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
30,192 | ada | 33 | ytomino/drake | source/image/required/s-widllu.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Unsigned_Types;
package System.Wid_LLU is
pragma Pure;
-- required for Modular'Width by compiler (s-widllu.ads)
function Width_Long_Long_Unsigned (
Lo, Hi : Unsigned_Types.Long_Long_Unsigned)
return Natural;
... |
30,193 | ada | 0 | eyeonechi/invalid-behaviour-conservative-analysis | src/instruction.adb | with Debug; use Debug;
with Ada.Numerics.Discrete_Random;
with Ada.Characters.Latin_1;
use Ada.Characters.Latin_1;
package body Instruction is
package Random_OpCode is new Ada.Numerics.Discrete_Random (OpCode);
package Random_Reg is new Ada.Numerics.Discrete_Random (Reg);
package Random_Offset is new Ada.N... |
30,194 | ada | 1 | stcarrez/helios | src/linux/helios-monitor-ifnet.ads | -----------------------------------------------------------------------
-- helios-monitor-ifnet -- Linux network interface 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... |
30,195 | ada | 13 | c-jullien/lelisp | GELL/Cbenchmarks/ben.adb | :r -float 32 -symbol 4 -string 5 -cons 24 -heap 512
|
30,196 | ada | 10 | LionelDraghi/smk | src/smk-files-put.adb | <reponame>LionelDraghi/smk<filename>src/smk-files-put.adb
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -------------------------------------------------... |
30,197 | ada | 0 | balintsoos/LearnAda | gyak/gyak6/B1/duplication.ads | generic
type Elem is private;
type Index is (<>);
type Tomb is array (Index range <>) of Elem;
function Duplication (T: in out Tomb) return Boolean;
|
30,198 | ada | 18 | kraileth/ravenadm | src/signals.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Signals is
-- Returns True if Interrupt signal (control-C) has been detected
function graceful_shutdown_requested return Boolean;
-- Enable exception handlers to initiate a shutdown upon detect... |
30,199 | ada | 12 | jquorning/ada-asf | src/asf-components-widgets-panels.adb | <reponame>jquorning/ada-asf<filename>src/asf-components-widgets-panels.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- components-widgets-panels -- Collapsible panels
-- Copyright (C) 2013, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache Lice... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.