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 |
|---|---|---|---|---|---|
5,900 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l4x6/stm32_svd-opamp.ads | -- This spec has been automatically generated from STM32L4x6.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.OPAMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype OPAMP1_CSR_OPAMODE_F... |
5,901 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/proof/relation/tlsf-proof-relation.adb | pragma Ada_2012;
package body TLSF.Proof.Relation is
function Relate(Container : R;
From, To : Element_Type)
return R
is
Len : constant Count_Type := Length(Container);
A : constant Arrow := (From, To);
begin
if Contains(Container, A) then
retu... |
5,902 | ada | 1 | skill-lang/skillAdaTestSuite | test/floats/test_floats-read.adb | package body Test_Floats.Read is
package Skill renames Floats.Api;
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Floats.Read");
Ahven.Framework.Add_Test_Routine (T, Float'Access, "test float");
Ahven.Framework.Add_Test_Routine (T, Double'Access, "test double");
end I... |
5,903 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/pixracer_v1/stm32-board.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
5,904 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-rttiev.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
5,905 | ada | 0 | vivianjia123/Password-Manager | Assignment/mystring.ads | <reponame>vivianjia123/Password-Manager<gh_stars>0
generic
Max_MyString_Length : Positive;
package MyString with SPARK_Mode is
type MyString is private;
function To_String(M : MyString) return String with
Post => To_String'Result'Length = Length(M) and
To_String'Result'First = 1 and To_Str... |
5,906 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testwm_sprogs.adb | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/testwm_sprogs.adb
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under ... |
5,907 | ada | 0 | SSOCsoft/Log_Reporter | src/main.adb | <gh_stars>0
with
Ada.Exceptions.Traceback, System.Address_Image,
Gnoga.Application.Multi_Connect,
Gnoga.Gui.Base,
Gnoga.Gui.Window,
Gnoga.Gui.View,
Gnoga.Gui.Element.Common,
Gnoga.Gui.Element.Form,
Gnoga.Types,
Gnoga.Gui.Document,
Gnoga.Gui.Element.Table,
NSO.JSON.Gnoga_Object,
NSO.Types,
INI.Parameters,
-- INI.Pr... |
5,908 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/view_conversion1.adb | -- { dg-do run }
-- { dg-options "-gnatws" }
procedure View_Conversion1 is
type Matrix is array (Integer range <>, Integer range <>) of Float;
S1 : Matrix (-3 .. -2, 2 .. 3) := ((2.0, -1.0), (-1.0, 2.0));
S2 : Matrix (1 .. 2, 1 .. 2) := S1;
S3 : Matrix (2 .. 3, -3 .. -2);
S4 : Matrix (1 .. 2, 1 .. 2);... |
5,909 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-retide.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
5,910 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/i-pacdec.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,911 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf_svd-clock.ads | <filename>arch/ARM/Nordic/svd/nrf51/nrf_svd-clock.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... |
5,912 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/lm3s8962-demo/main.adb | <filename>bb-runtimes/examples/lm3s8962-demo/main.adb
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
5,913 | ada | 0 | My-Colaborations/ada-ado | src/mysql/mysql-perfect_hash.ads | -- Generated by gperfhash
package Mysql.Perfect_Hash is
pragma Preelaborate;
function Hash (S : String) return Natural;
-- Returns true if the string <b>S</b> is a keyword.
function Is_Keyword (S : in String) return Boolean;
type Name_Access is access constant String;
type Keyword_Array is array... |
5,914 | ada | 23 | SMerrony/dashera | Src/keyboard.adb | <reponame>SMerrony/dashera
-- Copyright (C)2021,2022 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, m... |
5,915 | ada | 0 | Fabien-Chouteau/COBS | tests/src/test_utils-abstract_encoder-cobs_simple.adb | <filename>tests/src/test_utils-abstract_encoder-cobs_simple.adb
with COBS;
package body Test_Utils.Abstract_Encoder.COBS_Simple is
-------------
-- Receive --
-------------
overriding
procedure Receive (This : in out Instance; Data : Storage_Element)
is
begin
This.Input.Append (Data);
e... |
5,916 | ada | 0 | xeenta/learning-ada | src/005/animals-flying_horses.ads | package Animals.Flying_Horses is
type Flying_Horse is new Animals.Animal with private;
type Color is (Snow_White, Pitch_Black, Light_Pink);
function Make (Horse_Color : Color) return Flying_Horse;
overriding
procedure Add_Wings (A : in out Flying_Horse;
N : Positive);
overriding... |
5,917 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34005a.ada | <gh_stars>1-10
-- C34005A.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.... |
5,918 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/host_app/ttc.adb | <gh_stars>0
with GNAT.IO; use GNAT.IO;
with GNAT.Serial_Communications; use GNAT.Serial_Communications;
-- with Ada.Strings.Fixed; use Ada.Strings.Fixed;
-- with Ada.Strings; use Ada.Strings;
-- with HK_Data; use HK_Data;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.IO_Exceptions;
package... |
5,919 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/testsuite/ada/acats/tests/c9/c96007a.ada | -- C96007A.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... |
5,920 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-sai.ads | <gh_stars>0
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype GCR_SYNCIN_Field is HAL.U... |
5,921 | ada | 1,823 | Elon143/Amass | resources/scripts/api/fullhunt.ads | <reponame>Elon143/Amass
-- Copyright 2017-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "FullHunt"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
loca... |
5,922 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/source/120_depends_contract_and_information_flow_analysis/swapping.ads | <filename>courses/spark_for_ada_programmers/labs/source/120_depends_contract_and_information_flow_analysis/swapping.ads
package Swapping
is
procedure Swap (X, Y: in out Positive);
procedure Identity (X, Y: in out Positive)
with Depends => (X => X,
Y => Y);
end Swapping;
|
5,923 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/switch-m.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,924 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Greatest-element-of-a-list/Ada/greatest-element-of-a-list-2.ada | <filename>Task/Greatest-element-of-a-list/Ada/greatest-element-of-a-list-2.ada
generic
type Item is digits <>;
type Items_Array is array (Positive range <>) of Item;
function Generic_Max (List : Items_Array) return Item;
|
5,925 | ada | 4 | faelys/gela-asis | tools/uaflex/regular_expressions.adb | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
5,926 | ada | 5 | reznikmm/increment | source/base/incr.ads | -- Copyright (c) 2015-2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
-- @summary
-- Incremental Analysis Component
--
-- @description
-- This package provides namespace for incremental analysis algorithms
-- an... |
5,927 | ada | 0 | Fabien-Chouteau/COBS | src/cobs-stream-decoder.adb | package body COBS.Stream.Decoder is
subtype Dispatch is Instance'Class;
--------------
-- Do_Flush --
--------------
procedure Do_Flush (This : in out Instance) is
begin
if This.Out_Index > This.Buffer'First then
Dispatch (This).Flush
(This.Buffer (This.Buffer'First .. Thi... |
5,928 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sinfo-cn.adb | <filename>tools-src/gnu/gcc/gcc/ada/sinfo-cn.adb<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,929 | ada | 1 | TNO/Rejuvenation-Ada | src/rejuvenation-patterns.ads | private with Ada.Strings.Unbounded;
package Rejuvenation.Patterns is
type Pattern is tagged private;
function Get_String (P : Pattern) return String;
function Get_Rule (P : Pattern) return Grammar_Rule;
function As_Ada_Node (P : Pattern) return Ada_Node;
function Make_Pattern
(Fragment : Strin... |
5,930 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-casuti.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,931 | ada | 79 | Roldak/OpenGLAda | src/glfw/v3/glfw-input-joysticks.ads | <reponame>Roldak/OpenGLAda
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
private with Glfw.Enums;
package Glfw.Input.Joysticks is
use type Interfaces.C.C_float;
-- GLFW supports up to 16 joysticks; they are indexed from 1 to 16.
type Joystick_... |
5,932 | ada | 2 | thindil/tashy2 | tests/tk-mainwindow-test_data-tests.ads | -- 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 Tk.MainWindow.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.MainWindow
.Test_Data
... |
5,933 | ada | 1 | XMoose25X/Advanced-Dungeon-Assault | Source/inventory_list.ads | with Ada.Integer_Text_IO; Use Ada.Integer_Text_IO;
with Ada.Text_IO; Use Ada.Text_IO;
package inventory_list is
-- inventory system that stores items from items.dat in a linked-list
-- alphabetically.
KEY_ERROR : exception;
OVERFLOW : exception;
type List_Type is private;
type Node_Ptr is private;
type v... |
5,934 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/drivers/nrf_common/nrf-spi_master.adb | <filename>arch/ARM/Nordic/drivers/nrf_common/nrf-spi_master.adb
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2020, AdaCore --
-- ... |
5,935 | ada | 2 | landgraf/nanomsg-ada | src/nanomsg-messages.adb | -- The MIT License (MIT)
-- Copyright (c) 2015 <NAME> <<EMAIL>>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... |
5,936 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/sso1.ads | -- { dg-do compile }
with System;
package SSO1 is
type R is record -- { dg-error "inconsistent with bit order" }
B : Boolean;
end record;
for R'Bit_Order use System.Low_Order_First;
for R'Scalar_Storage_Order use System.High_Order_First; -- { dg-warning "no component clause" }
type RW is reco... |
5,937 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93003a.ada | -- C93003A.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... |
5,938 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-objects-renderbuffers.ads | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Pixels;
with GL.Low_Level.Enums;
package GL.Objects.Renderbuffers is
pragma Preelaborate;
type Renderbuffer_Target (<>) is tagged limited private;
procedure Allocate (Obj... |
5,939 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-context.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Strings.Unbounded;
with GL.Types;
package GL.Context is
pragma Preelaborate;
use GL.Types;
type String_List is array (Positive range <>) of
Ada.Strings.Unbounded.Unbounded_String;
... |
5,940 | ada | 0 | optikos/oasis | source/oasis/program-element_vectors.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Element_Vectors is
procedure Skip_Elements
(Self : Iterator;
Pos : in out Element_Cursor;
Step : Integer)... |
5,941 | ada | 33 | ytomino/drake | source/tasking/a-sytaco.ads | <reponame>ytomino/drake<gh_stars>10-100
pragma License (Unrestricted);
private with Ada.Finalization;
private with System.Storage_Barriers;
private with System.Synchronous_Objects;
package Ada.Synchronous_Task_Control is
pragma Preelaborate;
type Suspension_Object is limited private;
procedure Set_True (S : ... |
5,942 | ada | 25 | thierr26/ada-keystore | tools/intl_nls.adb | <reponame>thierr26/ada-keystore
-----------------------------------------------------------------------
-- intl -- Small libintl binding
-- 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 complianc... |
5,943 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Memory-allocation/Ada/memory-allocation-4.ada | <filename>Task/Memory-allocation/Ada/memory-allocation-4.ada
package P is
X : Integer; -- Allocated in the result the package elaboration
end P;
|
5,944 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr36.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr36.adb<gh_stars>1-10
-- { dg-do compile }
with Discr36_Pkg;
package body Discr36 is
function N return Natural is begin return 0; end;
type Arr is array (1 .. N) of R;
function My_Func is new Discr36_Pkg.Func (Arr);
procedure Proc is
A : consta... |
5,945 | ada | 10 | persan/gdnative_ada | examples/gdnative_c_example/src/simple.adb | with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Exceptions;
package body Simple is
package IC renames Interfaces.C;
package ICS renames Interfaces.C.Strings;
use all type GDNATIVE_API_TYPES;
Core_Api : godot_gdnative_core_api_struct_ptr;
Nativescript_Api : godot_gdnative_ext_nativescript... |
5,946 | ada | 0 | optikos/oasis | source/nodes/program-nodes-simple_expression_ranges.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Simple_Expression_Ranges is
function Create
(Lower_Bound : not null Program.Elements.Expressions
.Expr... |
5,947 | ada | 0 | wookey-project/ewok-legacy | src/Ada/c-socinfo.ads | <filename>src/Ada/c-socinfo.ads
--
-- 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 except in compliance with the License.
-- You may obtain a copy ... |
5,948 | ada | 1 | selroc/Renaissance-Ada | src/tools/Dependency_Graph_Extractor/src/extraction-deferred_constants.adb | with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Deferred_Constants is
use type LALCO.Ada_Node_Kind_Type;
procedure Extract_Edges
(Node : LAL.Ada_Node'Class;
Graph : Graph_Operations.Graph_Context)
is
begin
if Utilities.Is_Relevant_Basic_Decl(Node) the... |
5,949 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_ch10.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,950 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/mlib-tgt.ads | <filename>tools-src/gnu/gcc/gcc/ada/mlib-tgt.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,951 | ada | 1 | Scottx86-64/dotfiles-1 | source/pkgsrc/lang/gcc34/files/5netbsdintman.adb | <filename>source/pkgsrc/lang/gcc34/files/5netbsdintman.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,952 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Iterated-digits-squaring/Ada/iterated-digits-squaring.ada | <filename>Task/Iterated-digits-squaring/Ada/iterated-digits-squaring.ada
with Ada.Text_IO;
procedure Digits_Squaring is
function Is_89 (Number : in Positive) return Boolean
is
Squares : constant array (0 .. 9) of Natural :=
(0, 1, 4, 9, 16, 25, 36, 49, 64, 81);
Sum : Natural := Number;
... |
5,953 | ada | 0 | bracke/Meaning | source/RASCAL-UserMessages.adb | <gh_stars>0
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
5,954 | ada | 0 | hugovk/whitakers-words | src/words_engine/words_engine-list_package.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... |
5,955 | ada | 81 | fuzzysloth/ada-awa | awa/src/awa-permissions-beans.ads | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-permissions-beans -- Permission beans
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance w... |
5,956 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/operator_call/twovecs.ads | <gh_stars>1-10
-- Copyright 2021 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; either version 3 of the License, or
-- (at your option) any later versi... |
5,957 | ada | 0 | sourceryinstitute/rose-sourcery-institute | src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/asis_tool_2-context.ads | <gh_stars>0
with Asis;
with A_Nodes;
with Dot;
package Asis_Tool_2.Context is
type Class is tagged limited private;
procedure Process
(This : in out Class;
Tree_File_Name : in String;
Outputs : in Outputs_Record);
private
type Class is tagged limited -- Initializ... |
5,958 | ada | 0 | Maxelweb/concurrency-sandbox | Resource_Control_Protocol/src/main.adb | with RCP;
with RCP.Control;
with RCP.User;
procedure Main is
use RCP, RCP.Control, RCP.User;
-- user 1 needs 3 resources and "uses them" 8 seconds at a time
One : User_T (1, Short, 3, 8);
-- user 2 needs 2 resources and "uses them" 12 seconds at a time
Two : User_T (2, Short, 2, 12);
... |
5,959 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | drivers/drivers-text_io.adb | with Interfaces; use Interfaces;
package body Drivers.Text_IO is
procedure Put (C : Character) is
begin
USART.Transmit (Character'Pos (C));
end Put;
procedure Put (S : String) is
begin
for C of S loop
Put (C);
end loop;
end Put;
procedure Put_Line (S : String) is
b... |
5,960 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503g.ada | -- C35503G.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... |
5,961 | ada | 0 | cborao/Ada-P3 | maps_g_array/maps_g.adb |
--PRÁCTICA 3: <NAME> (Maps_G_Array.adb)
with Ada.Text_IO;
with Ada.Strings.Unbounded;
package body Maps_G is
package ASU renames Ada.Strings.Unbounded;
procedure Put (M: in out Map;
Key: Key_Type;
Value: Value_Type) is
Position: Natural := 1;
Found: Boolean;
begin
Found := False;... |
5,962 | ada | 0 | Kidev/Ada_Drivers_Library | examples/MicroBit/servos/src/main.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- ... |
5,963 | ada | 0 | patrickf2000/ada-asm | src/x86writer.ads | <filename>src/x86writer.ads
with Ada.Streams.Stream_IO; use Ada.Streams.Stream_IO;
with X86Parser; use X86Parser;
package X86Writer is
procedure assemble(instr_list : Instr_Vector.Vector; writer : Stream_Access);
end X86Writer;
|
5,964 | ada | 1 | faelys/simple-webapps | generated/simple_webapps-commands-append_servers-server_hash.ads | <filename>generated/simple_webapps-commands-append_servers-server_hash.ads
package Simple_Webapps.Commands.Append_Servers.Server_Hash is
pragma Pure;
function Hash (S : String) return Natural;
end Simple_Webapps.Commands.Append_Servers.Server_Hash;
|
5,965 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcaco__leon.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,966 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/test_foret.adb | <gh_stars>1-10
-------------------------------------------------------------------------------
-- Fichier : test_foret.ads
-- Auteur : <NAME> & <NAME>
-- Objectif : Test du module Foret
-- Crée : <NAME> 12 2019
--------------------------------------------------------------------------------
with Ada.Text_I... |
5,967 | ada | 52 | onox/orka | orka_simd/src/x86/generic/orka-simd-sse4_1-singles-compare.adb | -- 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
-... |
5,968 | ada | 0 | fintatarta/protypo | src/lib/Readable_Sequences/readable_sequences-generic_sequences.adb | pragma Ada_2012;
pragma Warnings (Off, "no entities of ""Ada.Text_Io"" are referenced");
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Unchecked_Deallocation;
package body Readable_Sequences.Generic_Sequences is
type Nullable_Buffer_Access is access all Buffer_Type;
procedure Free is
new Ada.Unchecked_Deallo... |
5,969 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Pointers-and-references/Ada/pointers-and-references-2.ada | <filename>Task/Pointers-and-references/Ada/pointers-and-references-2.ada<gh_stars>1-10
type Safe_Int_Access is not null access Integer;
|
5,970 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-di_metamodel-links.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
5,971 | ada | 1 | jorge-real/TTS | examples/main1.adb |
with TTS_Example1;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Real_Time;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main1 is
begin
TTS_Example1.Main;
delay until Ada.Real_Time.Time_Last;
exception
when E : others =>
Put_Line (Exception_Message (E));
end Main1;
|
5,972 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-wtenio.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,973 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-watchdog.ads | <gh_stars>1-10
-- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package RP_SVD.WATCHDOG is
pr... |
5,974 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Count-occurrences-of-a-substring/Ada/count-occurrences-of-a-substring.ada | <filename>Task/Count-occurrences-of-a-substring/Ada/count-occurrences-of-a-substring.ada
with Ada.Strings.Fixed, Ada.Integer_Text_IO;
procedure Substrings is
begin
Ada.Integer_Text_IO.Put (Ada.Strings.Fixed.Count (Source => "the three truths",
Pattern => "th"));... |
5,975 | ada | 1 | bracke/websitegenerator | src/commands-generate.adb | with Ada.Containers; use Ada.Containers;
with Ada.Directories; use Ada.Directories;
with Blueprint; use Blueprint;
with Ada.Text_IO;
with Ada.Command_Line;
with Templates_Parser;
with CLIC.TTY;
with Filesystem;
with Commands;
with Globals;
with Ada.Characters.Handling;
package body Commands.Generate is
pack... |
5,976 | ada | 33 | ytomino/drake | source/strings/a-sbstfu.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- extended unit
with Ada.Strings.Functions;
with Ada.Strings.Generic_Bounded.Generic_Functions;
package Ada.Strings.Bounded_Strings.Functions is
new Generic_Functions (Strings.Functions);
pragma Preelaborate (Ada.Strings.Bounded_Strings.Functions);
|
5,977 | ada | 0 | Letractively/ada-asf | src/asf-applications-main.adb | <reponame>Letractively/ada-asf
-----------------------------------------------------------------------
-- applications -- Ada Web Application
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
5,978 | ada | 1 | psyomn/agen | src/argument_stack.ads | <filename>src/argument_stack.ads
-- Copyright 2019 <NAME> (entomy)
--
-- 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... |
5,979 | ada | 33 | ytomino/drake | source/numerics/a-nlcefu.ads | <gh_stars>10-100
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada.Numerics.Long_Complex_Types;
package Ada.Numerics.Long_Complex_Elementary_Functions is
new Generic_Complex_Elementary_Functions (Long_Complex_Types);
pragma Pure (Ada.Numerics.Long_Complex_Elementary_Func... |
5,980 | ada | 7 | kimtg/euler-ada | euler11.adb | <reponame>kimtg/euler-ada<filename>euler11.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Euler11 is
type Int_Mat is array(Positive range <>, Positive range <>) of Integer;
N : constant Int_Mat :=
((08,02,22,97,38,15,00,40,00,75,04,05,07,78,52,12,50,77,91,08),
(49,49,99,40,17,81,18,57,60,87,17,4... |
5,981 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_system_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with SDL_stdinc_h;
limited with SDL_render_h;
package SDL_system_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1997-2018 <NAME> <<EMAIL>>
-- This software is provided 'as-is', without any express or implied
-... |
5,982 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/mlib-tgt.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,983 | ada | 33 | ytomino/drake | source/textio/a-ztenio.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- separated and auto-loaded by compiler
private generic
type Enum is (<>);
pragma Unreferenced (Enum);
package Ada.Wide_Wide_Text_IO.Enumeration_IO is
Default_Width : Field := 0;
Default_Setting : Type_Set := Upper_Case;
-- procedure Get (
-- File : Fi... |
5,984 | ada | 0 | sonneveld/adazmq | examples/src/rrworker.adb | -- Hello World worker
-- Connects REP socket to tcp://localhost:5560
-- Expects "Hello" from client, replies with "World"
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with Ada.Calendar;
with ZMQ;
procedure RRWorker is
use type Ada.Calendar.Time;
use type GNAT.Formatted_String.Format... |
5,985 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-intman-vms.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,986 | ada | 0 | wookey-project/ewok-legacy | src/Ada/syscalls/ewok-syscalls-cfg-gpio.adb | <filename>src/Ada/syscalls/ewok-syscalls-cfg-gpio.adb
--
-- 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 except in compliance with the License.
-- ... |
5,987 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/exp_unst.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/exp_unst.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,988 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-super.ads | <reponame>strenkml/EE368
with Ada.Containers.Ordered_Maps;
use Ada.Containers;
with Memory.Container; use Memory.Container;
generic
type Value_Type is range <>;
with function Get_Value(mem : access Memory_Type'Class) return Value_Type;
package Memory.Super is
type Super_Type is new Container_Type with priva... |
5,989 | ada | 0 | mgrojo/ASnip | test/test_binsearch.ada | --------------------------------------------------------------------------
-- ASnip Source Code Decorator
-- Copyright (C) 2006, <NAME>
--
-- 1. Permission is hereby granted to use, copy, modify and/or distribute
-- this package, provided that:
-- * copyright notices are retained unchanged,
-- * any d... |
5,990 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_pixels_h.ads | <reponame>AdaCore/training_material
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
with Interfaces.C.Strings;
package SDL_pixels_h is
SDL_ALPHA_OPAQUE : constant := 255; -- ..\SDL2_tmp\SDL_pixels.h:46
SDL_ALPHA_TRANSPARENT : constant := 0; -- ..\SDL2_tmp... |
5,991 | ada | 204 | lenzomj/whitakers-words | src/commands/makedict_main.adb | <reponame>lenzomj/whitakers-words
-- 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 i... |
5,992 | ada | 3 | charlie5/aIDE | attic/asis/find_entities/adam-assist-query-find_entities-element_processing.ads | <reponame>charlie5/aIDE<filename>attic/asis/find_entities/adam-assist-query-find_entities-element_processing.ads
-- This package contains routines for ASIS Elements processing.
with Asis;
package AdaM.Assist.Query.find_Entities.element_Processing is
procedure Process_Construct (The_Element : Asis.Element);
--... |
5,993 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/cortex-m1/microsemi/svd/i-microsemi-coreuartapb.ads | <filename>bb-runtimes/arm/cortex-m1/microsemi/svd/i-microsemi-coreuartapb.ads
--
-- Copyright (C) 2019, AdaCore
--
-- This spec has been automatically generated from PolarFire.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- serial communication controller with a flexible serial data
-- int... |
5,994 | ada | 0 | vivianjia123/Password-Manager | Assignment/main.adb | -- Authors: <NAME> 965600, <NAME> 693241
-- Our implementation proves following security properties:
-- The Get, Put, Remove and Lock operations can only ever be performed
-- when the password manager is in the unlocked state.
-- We implemented procedures called Execute_xxx (i.e. Execute_Lock)
-- for each oper... |
5,995 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-compute.adb | <reponame>onox/orka<gh_stars>10-100
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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://w... |
5,996 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/haswell_shared/hw-gfx-gma-ddi_phy_stub.ads | <reponame>fabiojna02/OpenCellular
--
-- Copyright (C) 2017 secunet Security Networks AG
--
-- 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 your opti... |
5,997 | ada | 2 | stcarrez/bbox-ada-api | tools/druss-gateways.adb | -----------------------------------------------------------------------
-- druss-gateways -- Gateway management
-- Copyright (C) 2017, 2021 <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.... |
5,998 | ada | 3 | charlie5/aIDE | source/adam.ads | with
Ada.Strings.unbounded,
Ada.Containers.vectors;
package AdaM
is
-- Text
--
subtype Text is ada.Strings.Unbounded.Unbounded_String;
function "+" (the_Text : in Text) return String
renames ada.Strings.Unbounded.To_String;
function "+" (the_String : in String) return Text
rena... |
5,999 | ada | 0 | mgrojo/protobuf | testsuite/just_enum/test_2.ads | package Test_2 is end; |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.