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
2,800
ada
7
FDMZ17/Hello-world
hello.adb
with Ada.Text_IO; use Ada.Text_IO; procedure AdaHelloworld is begin Put_Line ("Hello world"); end AdaHelloWorld;
2,801
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/s-dim.ads
<filename>tools/scitools/conf/understand/ada/ada12/s-dim.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
2,802
ada
12
TUM-EI-RCS/StratoX
software/unittest/units/src/units.adb
with Interfaces; use Interfaces; with Bounded_Image; use Bounded_Image; package body Units with SPARK_Mode is function average( signal : Unit_Array ) return Unit_Type is function Sat_Add_Unit is new Saturated_Addition (Unit_Type); avg : Unit_Type := 0.0; begin if signal'Length > 0 then ...
2,803
ada
30
jrmarino/AdaBase
src/drivers/adabase-driver-base-postgresql.ads
<filename>src/drivers/adabase-driver-base-postgresql.ads -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt with AdaBase.Interfaces.Driver; with AdaBase.Statement.Base.PostgreSQL; with AdaBase.Connection.Base.PostgreSQL; with Ada.Containers.Vectors; package Ada...
2,804
ada
24
svn2github/matreshka
testsuite/league/TN-331/test_331.adb
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
2,805
ada
1
micahwelf/FLTK-Ada
src/fltk-images-rgb.ads
package FLTK.Images.RGB is type RGB_Image is new Image with private; type RGB_Image_Reference (Data : not null access RGB_Image'Class) is limited null record with Implicit_Dereference => Data; function Copy (This : in RGB_Image; Width, Height : in Natural) ...
2,806
ada
0
Letractively/ada-util
testutil/ahven/ahven-runner.adb
<reponame>Letractively/ada-util<gh_stars>0 -- -- Copyright (c) 2007, 2008 <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice appear in all copies. -- -- THE ...
2,807
ada
81
twdroeger/ada-awa
awa/plugins/awa-questions/src/awa-questions-modules.adb
----------------------------------------------------------------------- -- awa-questions-modules -- Module questions -- Copyright (C) 2012, 2013, 2015, 2016, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compl...
2,808
ada
0
fintatarta/eugen
src/Sym_Expr/test/test.adb
---------------------------------------------------------------------------- -- Symbolic Expressions (symexpr) -- -- Copyright (C) 2012, <NAME> -- -- This file is part of symexpr. -- -- symexpr is free software: you can redistribute it and/or modify -- it under the terms of the L...
2,809
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-textio.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
2,810
ada
1
bracke/websitegenerator
src/commands-destroy.adb
with Ada.Containers; use Ada.Containers; with Ada.Directories; use Ada.Directories; with Blueprint; use Blueprint; with AAA.Strings; use AAA.Strings; with Ada.Command_Line; with Templates_Parser; with Filesystem; with Commands; package body Commands.Destroy is ------------- -- Execute -- ------------...
2,811
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-excach.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,812
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-osvers__vxworks-653.ads
<reponame>djamal2727/Main-Bearing-Analytical-Model<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-osvers__vxworks-653.ads ------------------------------------------------------------------------------ -- -- -- ...
2,813
ada
6
darkestkhan/cbap
tests/src/cbap_variable_detection.adb
pragma License (GPL); ------------------------------------------------------------------------------ -- EMAIL: <<EMAIL>> -- -- License: GNU GPLv3 or any later as published by Free Software Foundation -- -- (see COPYING file) ...
2,814
ada
5
docandrew/troodon
src/compositor.ads
with xcb; use xcb; with xproto; with GLX; with Render; ------------------------------------------------------------------------------- -- Compositor -- Troodon is a compositing window manager, this package sets up the X -- Composite extension and requests an overlay window with a GLX context that -- we can render eac...
2,815
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack12.adb
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack12.adb<gh_stars>1-10 -- { dg-do run } procedure Pack12 is type U16 is mod 2 ** 16; type Key is record Value : U16; Valid : Boolean; end record; type Key_Buffer is record Current, Latch : Key; end record; type...
2,816
ada
1
LaudateCorpus1/RosettaCodeData
Task/Strip-comments-from-a-string/Ada/strip-comments-from-a-string.ada
with Ada.Text_IO; procedure Program is Comment_Characters : String := "#;"; begin loop declare Line : String := Ada.Text_IO.Get_Line; begin exit when Line'Length = 0; Outer_Loop : for I in Line'Range loop for J in Comment_Characters'Range loop if Comment_Characters(J) = Line(I) then...
2,817
ada
0
AsyncMC/Mojang-API-Libs
generated-sources/ada-server/mojang-status/src/server/com-github-asyncmc-mojang-status-ada-server-model-skeletons.ads
-- Mojang API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class manuall...
2,818
ada
0
jhumphry/Ada_BinToAsc
src/utils/storage_array_to_hex_string.adb
<gh_stars>0 -- Storage_Array_To_Hex_String -- This is a simple conversion routine for test or example routines -- Copyright (c) 2015, <NAME> - see LICENSE file for details with System.Storage_Elements; function Storage_Array_To_Hex_String(X : System.Storage_Elements.Storage_Array) re...
2,819
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/round_div.adb
<reponame>best08618/asylo -- { dg-do run } -- { dg-options "-O3" } procedure Round_Div is type Fixed is delta 1.0 range -2147483648.0 .. 2147483647.0; A : Fixed := 1.0; B : Fixed := 3.0; C : Integer; function Divide (X, Y : Fixed) return Integer is begin return Integer (X / Y); end; begin ...
2,820
ada
1
sparre/JSA
src/jsa-tabulated_text_io.adb
------------------------------------------------------------------------------ -- -- package Tabulated_Text_IO (body) -- ------------------------------------------------------------------------------ -- Update log: -- -- 2000.02.01 (<NAME>) -- Written. -- ----------------------------------------------------------...
2,821
ada
0
reznikmm/gela
source/library/program-gnat_unit_naming.adb
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Strings.Wide_Wide_Fixed; with Ada.Wide_Wide_Characters.Handling; package body Program.GNAT_Unit_Naming is -------------------- -- Body_Text_Name -- ---...
2,822
ada
81
My-Colaborations/ada-awa
awa/plugins/awa-setup/src/awa-setup.ads
----------------------------------------------------------------------- -- awa-setup -- Setup and installation -- Copyright (C) 2016, 2017, 2018, 2020 <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...
2,823
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/g-forstr.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
2,824
ada
0
JCGobbi/Nucleo-STM32F334R8
src/test_led_pwm.adb
-- This demonstration illustrates the use of PWM to control the brightness of -- an LED. The effect is to make the LED increase and decrease in brightness, -- iteratively, for as long as the application runs. In effect the LED light -- waxes and wanes. See http://visualgdb.com/tutorials/arm/stm32/fpu/ for the -- ...
2,825
ada
0
Fabien-Chouteau/microbit_examples
text_scrolling/obj/b__main.adb
<filename>text_scrolling/obj/b__main.adb pragma Warnings (Off); pragma Ada_95; pragma Source_File_Name (ada_main, Spec_File_Name => "b__main.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__main.adb"); pragma Suppress (Overflow_Check); package body ada_main is E14 : Short_Integer; pragma Import (Ada...
2,826
ada
0
Letractively/ada-asf
src/asf-components-html-forms.adb
----------------------------------------------------------------------- -- html.forms -- ASF HTML Form Components -- Copyright (C) 2010, 2011, 2012, 2013, 2014, 2015 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in co...
2,827
ada
1
LaudateCorpus1/RosettaCodeData
Task/Scope-modifiers/Ada/scope-modifiers-4.ada
<filename>Task/Scope-modifiers/Ada/scope-modifiers-4.ada<gh_stars>1-10 private package P.Q is ... -- Visible to the siblings only private ... -- Visible to the children only end P.Q;
2,828
ada
0
corentingay/ada_epita
project/adl/boards/native/src/filesystem-native.ads
<filename>project/adl/boards/native/src/filesystem-native.ads<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2016-2017, AdaCore -- -- ...
2,829
ada
52
onox/orka
orka/src/orka/interface/orka-rendering-buffers-mdi.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 -...
2,830
ada
0
reznikmm/gela
source/units/program-units-bodies.ads
<filename>source/units/program-units-bodies.ads<gh_stars>0 -- SPDX-FileCopyrightText: 2019-2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- -- Trivial implementation of library bodies with Program.Library_Unit_Bodies; with Program.Library_Unit_De...
2,831
ada
2
morbos/Ada_Drivers_Library
components/src/gas_sensor/t67xx/t67xx_i2c_io.adb
<filename>components/src/gas_sensor/t67xx/t67xx_i2c_io.adb package body T67XX_I2C_IO is ---------- -- Read -- ---------- procedure Read (This : Any_IO_Port; Func : UInt8; Register : UInt16; Nxfer : UInt16; Response : out I2C_Data) is Result : I2C_Status; ...
2,832
ada
3
Heziode/aoc-ada-2021
utils/src/utils.adb
with Ada.Command_Line; with Ada.Directories; with Ada.Strings.Unbounded; package body Utils is --------------- -- Open_File -- --------------- procedure Open_File (File : in out File_Type; Mode : File_Mode; Path : String; File_Form : String := DEFAULT_FILE_FORM_VALUE; Auto : Boolean := Fa...
2,833
ada
3
pyjarrett/archaic_terminal
src/linux/trendy_terminal-linux.ads
<filename>src/linux/trendy_terminal-linux.ads<gh_stars>1-10 ------------------------------------------------------------------------------- -- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file) -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in comp...
2,834
ada
1
zrmyers/VulkanAda
test/dmat/vulkan-math-dmat4x4-test.adb
<reponame>zrmyers/VulkanAda<filename>test/dmat/vulkan-math-dmat4x4-test.adb -------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2021 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associate...
2,835
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pak.ads
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pak.ads with Ada.Finalization; package Pak is type T is new Ada.Finalization.Controlled with null record; procedure Initialize (X : in out T); procedure Finalize (X : in out T); procedure Assign (X : out T'Class); end Pak;
2,836
ada
0
reznikmm/slimp
source/slim-messages-bled.adb
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; package body Slim.Messages.bled is List : constant Field_Description_Array := (1 => (Uint_16_Field, 1)); -- LED...
2,837
ada
1
TNO/Rejuvenation-Ada
workshop/src/assignmentbyifexamples.ads
<reponame>TNO/Rejuvenation-Ada package AssignmentByIfExamples is procedure Dummy; end AssignmentByIfExamples;
2,838
ada
4
reznikmm/torrent
source/torrent-shutdown.ads
<reponame>reznikmm/torrent -- Copyright (c) 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Interrupts.Names; package Torrent.Shutdown is pragma Unreserve_All_Interrupts; protected Signal is e...
2,839
ada
0
Fabien-Chouteau/libriscv
examples/embedded_simulator/runtime/rv32i/src/crt0/s-macres.adb
<filename>examples/embedded_simulator/runtime/rv32i/src/crt0/s-macres.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
2,840
ada
1
LaudateCorpus1/RosettaCodeData
Task/Pointers-and-references/Ada/pointers-and-references-7.ada
<gh_stars>1-10 type Container is array (Positive range <>) of Element; for I in Container'Range loop declare Item : Element renames Container (I); begin Do_Something(Item); -- Here Item is a reference to Container (I) end; end loop;
2,841
ada
12
TUM-EI-RCS/StratoX
software/hal/old/hal-gpio.adb
with stm32.gpio; use stm32.gpio; package body HAL.GPIO is procedure write (Point : GPIO_Point_Type; Signal : GPIO_Signal_Type) is begin case Signal is when HIGH => case Point.Port is when A => GPIOA_Periph.BSRR.BS.Arr( Point.Pin ) := True; when B => G...
2,842
ada
80
thindil/steamsky
src/ui/mainmenu.adb
-- Copyright (c) 2020-2021 <NAME> <<EMAIL>> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -- This program is...
2,843
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f4/interrupts/irq.adb
<reponame>ekoeppen/STM32_Generic_Ada_Drivers package body IRQ is protected body Controller is procedure IRQ_Handler is begin null; end IRQ_Handler; procedure Run is begin loop null; end loop; end Run; end Controller; end IRQ;
2,844
ada
20
charlie5/lace
1-base/lace/source/events/mixin/ravenscar/lace-make_observer-deferred.ads
<reponame>charlie5/lace<gh_stars>10-100 pragma Profile (Ravenscar); with lace.Event, lace.Response, lace.Subject, lace.Observer; private with ada.Containers.indefinite_Vectors, ada.Containers.indefinite_hashed_Maps, ada.Strings.hash; generic type T is abstract new lace.make_Observer.it...
2,845
ada
1
Fabien-Chouteau/samd51-hal
src/svd/sam_svd-aes.ads
<gh_stars>1-10 pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.AES is pragma Preelaborate; --------------- -- Registers -- --------------- -- AES Modes of operation ...
2,846
ada
1
leo-brewin/adm-bssn-numerical
support/support-clock.ads
<reponame>leo-brewin/adm-bssn-numerical with Ada.Real_Time; package Support.Clock is beg_clock : Ada.Real_Time.Time; end_clock : Ada.Real_Time.Time; function get_date return String; function get_elapsed (beg_clock : Ada.Real_Time.Time; end_clock : Ada.Real_Time.Time) return Real...
2,847
ada
0
xeenta/learning-ada
src/006/steps_4.adb
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Steps_4 is task Step_By_Step is entry Step_One; entry Step_Two; entry Step_Three; entry Finish; end Step_By_Step; task body Step_By_Step is Keep_Looping : Boolean := TRUE; begin while Keep_Looping loop ...
2,848
ada
0
annexi-strayline/ASAP-Modular_Hashing
modular_hashing-xxhash32.ads
------------------------------------------------------------------------------ -- -- -- Modular Hash Infrastructure -- -- -- -- ...
2,849
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-tpobop.adb
<filename>gcc-gcc-7_3_0-release/gcc/ada/s-tpobop.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
2,850
ada
24
svn2github/matreshka
source/amf/dd/amf-visitors-dg_visitors.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
2,851
ada
15
AdaCore/training_material
extern/gnat_sdl/gnat_sdl2/src/sdl_power_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package SDL_power_h is -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 <NAME> <<EMAIL>> -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable fo...
2,852
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-arabic.ads
<reponame>stcarrez/ada-stemmer -- Generated by Snowball 2.2.0 - https://snowballstem.org/ package Stemmer.Arabic with SPARK_Mode is type Context_Type is new Stemmer.Context_Type with private; procedure Stem (Z : in out Context_Type; Result : out Boolean); private type Context_Type is new Stemmer.Context_Type...
2,853
ada
0
alexcamposruiz/dds-requestreply
src/orig/dds-request_reply-connext_c_requester-generic_requester.adb
package body DDS.Request_Reply.Connext_C_Requester.Generic_Requester is -- /* $Id$ -- -- (c) Copyright, Real-Time Innovations, 2012-2016. -- All rights reserved. -- No duplications, whole or partial, manual or electronic, may be made -- without express written permission. Any such copies...
2,854
ada
0
iyan22/AprendeAda
ejercicios3/ordenar_por_burbuja.adb
with datos; use datos; with intercambiar; procedure Ordenar_Por_Burbuja (L : in out Lista_Enteros) is -- pre: -- post: L contiene los valores iniciales en orden ascendente I : Integer; J: Integer; Cuenta : Integer; begin I := L.Numeros'First; if L.Cont > 1 then loop Cuenta := 0; J ...
2,855
ada
52
onox/orka
orka/src/orka/implementation/orka-timers.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2020 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 -...
2,856
ada
1
reinertk/cpros
src/cpros_test1.adb
<reponame>reinertk/cpros -------------------------------------------------------------------------------------- -- -- 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 ...
2,857
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/i-raspberry_pi.ads
<filename>bb-runtimes/src/i-raspberry_pi.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- ...
2,858
ada
4
DNSCatcher/DNSCatcher
src/dnscatcher/dns/transaction_manager/dnscatcher-dns-transaction_manager.adb
-- Copyright 2019 <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 use, copy, modify, merge, publish, ...
2,859
ada
1
LaudateCorpus1/RosettaCodeData
Task/String-length/Ada/string-length-2.ada
Latin_1_Str : String := "Hello World"; UCS_16_Str : Wide_String := "Hello World"; Unicode_Str : Wide_Wide_String := "Hello World"; Latin_1_Length : constant Natural := Latin_1_Str'Length; UCS_16_Length : constant Natural := UCS_16_Str'Length; Unicode_Length : constant Natural := Unicode_Str'Le...
2,860
ada
10
Robert-Tice/AdaRoombot
src/botstate.ads
with Algorithm; use Algorithm; with Communication; use Communication; with Types; use Types; package Botstate is type Bot is tagged record Algo : Algorithm_Ptr; Port : Serial_Port; end record; procedure Init (Self : in out Bot; TTY_Name : in String; ...
2,861
ada
2
morbos/Ada_Drivers_Library
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-gpio.ads
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x_mod2.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.GPIO is pragma Preelaborat...
2,862
ada
1
mullikine/RosettaCodeData
Task/Cholesky-decomposition/Ada/cholesky-decomposition-2.ada
with Ada.Numerics.Generic_Elementary_Functions; package body Decomposition is package Math is new Ada.Numerics.Generic_Elementary_Functions (Matrix.Real); procedure Decompose (A : Matrix.Real_Matrix; L : out Matrix.Real_Matrix) is use type Matrix.Real_Matrix, Matrix.Real; Order : constant Posit...
2,863
ada
19
jquorning/ada-security
src/security-oauth-clients.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- security-oauth -- OAuth Security -- Copyright (C) 2012, 2013, 2016, 2017, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
2,864
ada
6
jonashaggstrom/ada-canopen
src/aco-log.ads
with Ada.Streams; package ACO.Log is pragma Preelaborate; use Ada.Streams; type Log_Level is (Debug, Info, Warning, Error, Off); procedure Put (Level : in Log_Level; Message : in String); procedure Put_Line (Level : in Log_Level; Message : in St...
2,865
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-exnllf.adb
<reponame>vidkidz/crossbridge ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
2,866
ada
1
alvaromb/Compilemon
src/decls-dgenerals.ads
<reponame>alvaromb/Compilemon -- DECLS-DGENERALS.ads -- Paquet de declaracions generals package Decls.Dgenerals is Max_Id : constant Integer := 1000; Long_Num_Ident : constant Integer := 40; Max_Var : constant Integer := 1000; type Num_Var is new Natural range 0 .. Max_Var; Var_Nul : Num_Va...
2,867
ada
80
thindil/steamsky
src/ui/trades-ui.adb
<gh_stars>10-100 -- Copyright (c) 2020-2021 <NAME> <<EMAIL>> -- -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation, either version 3 of the License, or -- (at your option) any later version. -- -...
2,868
ada
71
spanners/learn-adacore-com
backend/tests/functional/run_program/test_run_singlefile_error_ada/test.adb
<reponame>spanners/learn-adacore-com with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin Put_Line ("ABC123") end Test;
2,869
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bulls-and-cows/Ada/bulls-and-cows.ada
<reponame>LaudateCorpus1/RosettaCodeData with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Discrete_Random; procedure Bulls_And_Cows is package Random_Natural is new Ada.Numerics.Discrete_Random (Natural); Number : String (1..4); begin declare -- Generation of number use Random_Natural; Digit ...
2,870
ada
33
ytomino/drake
source/a-tagdel.adb
pragma Check_Policy (Trace => Ignore); with Ada.Unchecked_Conversion; with System.Address_To_Named_Access_Conversions; with System.Shared_Locking; package body Ada.Tags.Delegating is pragma Suppress (All_Checks); use type System.Address; package Tag_Conv is new System.Address_To_Named_Access_Conversions...
2,871
ada
0
hgrodriguez/rp2040_playground
uart_master_slave/src/ItsyBitsy_UART_Interrupt_Handlers.adb
with RP2040_SVD.UART; with RP.Device; with RP.UART; with ItsyBitsy; package body ItsyBitsy_UART_Interrupt_Handlers is UART : RP.UART.UART_Port renames ItsyBitsy.UART; procedure UART0_IRQ_Handler is begin -- if UART.Masked_IRQ_Status (IRQ => RP.UART.Transmit) then -- UART.Clear...
2,872
ada
3
Fabien-Chouteau/atomic
src/intrinsic/atomic-unsigned.adb
with System; package body Atomic.Unsigned with SPARK_Mode => Off is ---------- -- Load -- ---------- function Load (This : aliased Instance; Order : Mem_Order := Seq_Cst) return T is pragma Warnings (Off); function Intrinsic8 (Ptr : System.Address; Model : Integer) retur...
2,873
ada
2
morbos/Ada_Drivers_Library
arch/ARM/NXP/drivers/nxp-inputmux.ads
<reponame>morbos/Ada_Drivers_Library private with NXP_SVD.INPUTMUX; with HAL.GPIO; package NXP.InputMux is procedure Enable_InputMux; procedure Disable_InputMux; end NXP.InputMux;
2,874
ada
0
usainzg/EHU
PMOO/EXAMEN/1516O/Bombilla.ads
package Bombilla is procedure Crear ( id: in String; potencia_nominal: in Float; luminosidad_nominal: in Float; es_regulable: in Boolean; bomb: out Bombilla; ); function Potencia(B: in Bombilla) return Float; function Esta_Encendida(B: in Bombilla) return Bool...
2,875
ada
0
hgrodriguez/rp2040_zfp
src/runtime.adb
package body Runtime is procedure OS_Exit (Status : Integer) is pragma Unreferenced (Status); begin null; end OS_Exit; procedure HardFault_Handler is begin loop null; end loop; end HardFault_Handler; end Runtime;
2,876
ada
0
alire-project/gnatcov-to-codecovio-action
test/src/tests.adb
<reponame>alire-project/gnatcov-to-codecovio-action<filename>test/src/tests.adb with Ada_SPARK_Workflow.Word_Search.Puzzle; with Ada_SPARK_Workflow.Word_Search.Dictionary; with Ada_SPARK_Workflow.Word_Search.Solution; use Ada_SPARK_Workflow.Word_Search; procedure Tests is type Dict_Access is access Dictionary.Inst...
2,877
ada
0
luk9400/nsi
list2/task3/src/square_root.ads
package Square_Root with SPARK_Mode is function Sqrt (X : Float; Tolerance : Float) return Float with SPARK_Mode, Pre => X >= 0.0 and X <= 1.8E19 and Tolerance > Float'Model_Epsilon and Tolerance <= 1.0, Post => abs (X - Sqrt'Result ** 2) <= X * Tolerance; end Square_Root;
2,878
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-hsem.ads
-- This spec has been automatically generated from STM32WB55x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.HSEM is pragma Preelaborate; type Sema_Range is range 0 .. 31; --------------- -- Registers -- ----------...
2,879
ada
24
svn2github/matreshka
source/league/matreshka-internals-regexps-compiler.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
2,880
ada
0
samyvic/OS-Project
Read Only/gdb-6.8/gdb/testsuite/gdb.ada/complete/foo.adb
with Pck; use Pck; procedure Foo is Some_Local_Variable : Integer := 1; External_Identical_Two : Integer := 74; begin My_Global_Variable := Some_Local_Variable + 1; -- START Proc (External_Identical_Two); end Foo;
2,881
ada
1
sparre/JSA
src/jsa-generic_optional_value.ads
<reponame>sparre/JSA<gh_stars>1-10 -- Type for objects which _may_ have a value. -- -- License: ISC generic type Element is private; package JSA.Generic_Optional_Value is type Instance (Set : Boolean := False) is record case Set is when True => Value : Element; ...
2,882
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/enum_derived_type.adb
<reponame>ouankou/rose<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/enum_derived_type.adb procedure Enum_Derived_Type is type Rainbow is (Red, Orange, Yellow, Green, Blue, Indigo, Violet); type ColdColors is new Rainbow range Blue .. Violet; BlueColor : ColdColors := Blue; begin ...
2,883
ada
2
rocher/TTS-Runtime-Ravenscar
examples/main_b.adb
<reponame>rocher/TTS-Runtime-Ravenscar<gh_stars>1-10 with TTS_Example_B; with Ada.Exceptions; use Ada.Exceptions; with Ada.Real_Time; with Ada.Text_IO; use Ada.Text_IO; with System; procedure Main_B with Priority => System.Priority'First is begin TTS_Example_B.Main; delay until Ada.Real_Time.Time_Last; exc...
2,884
ada
0
thierr26/ada-apsepp
src/apsepp-output_class-standard.adb
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Ada.Text_IO; package body Apsepp.Output_Class.Standard is ---------------------------------------------------------------------------- protected body Output_Standard is ----------------------------------------...
2,885
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c48009d.ada
-- C48009D.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...
2,886
ada
1
faelys/lithium3
src/lithium-spoiler_filters.adb
<gh_stars>1-10 ------------------------------------------------------------------------------ -- Copyright (c) 2017-2019, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any ...
2,887
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_clause3.ads
-- { dg-do compile } package Size_Clause3 is -- The record inherits the alignment of Integer, which is 4, so -- the real size is 64 instead of 40. type R1 is record I : Integer; B : aliased Boolean; end record; -- That's not OK, the size of a component of type R1 cannot be 40. type S1 is record ...
2,888
ada
2
thindil/tashy2
tests/tk-frame-test_data.ads
package Tk.Frame.Test_Data is end Tk.Frame.Test_Data;
2,889
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic6_5.adb
<gh_stars>1-10 -- { dg-do compile } -- { dg-options "-fdump-tree-gimple" } with Atomic6_Pkg; use Atomic6_Pkg; procedure Atomic6_5 is type Arr is array (Integer range 1 .. 4) of Boolean; A : Arr; B : Boolean; begin A (Integer(Counter1)) := True; B := A (Timer1); declare pragma Suppress (Index_Check);...
2,890
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt15_pkg.ads
package Opt15_Pkg is procedure Trace_Inlined; pragma Inline (Trace_Inlined); end Opt15_Pkg;
2,891
ada
60
RREE/ada-util
src/sys/encoders/util-encoders-hmac-sha256.ads
<filename>src/sys/encoders/util-encoders-hmac-sha256.ads ----------------------------------------------------------------------- -- util-encoders-hmac-sha256 -- Compute HMAC-SHA256 authentication code -- Copyright (C) 2017, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version ...
2,892
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/common/uxas-common-configuration_manager.ads
-- see OpenUxAS\src\Utilities\UxAS_ConfigurationManager.h with DOM.Core; with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; with UxAS.Comms; with Dynamic_Strings; use Dynamic_Strings; package UxAS.Common.Configuration_Manager is type Manager (<>) is tagged limited private; type Any_Manager is access all Manager'...
2,893
ada
52
onox/orka
orka/src/orka/implementation/orka-logging.adb
<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://www.apache.org/licen...
2,894
ada
20
charlie5/lace
2-low/collada/source/collada-libraries.ads
<reponame>charlie5/lace with collada.Library.geometries, collada.Library.controllers, collada.Library.animations, collada.Library.visual_scenes; package collada.Libraries -- -- Provides a container for the specific collada library packages. -- is type Item is record Geometries ...
2,895
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/solar_system/160_genericity_text/answers/swaps.ads
package Swaps is procedure Swap (Value_1 : in out Integer; Value_2 : in out Integer); end Swaps;
2,896
ada
33
ytomino/drake
source/hash/a-cmuha3.ads
<gh_stars>10-100 pragma License (Unrestricted); -- public domain -- translated unit from MurmurHash3 -- -- MurmurHash3 was written by <NAME>, and is placed in the public -- domain. The author hereby disclaims copyright to this source code. -- -- Ada version: 2014 yt package Ada.Containers.Murmur_Hash_3 is -- 32...
2,897
ada
5
hulpke/smallgrp
id6/id1152.adb
############################################################################# ## #W id1152.adb GAP library of id's <NAME> ## ID_GROUP_TREE.next[1152].next[1].next[106]:= rec( fp:= [ 106, 606, 1106, 1606, 2106 ], next:= [ rec( fp:= [ 63784, 82153, 87342, 98487 ], next:= [ rec( ...
2,898
ada
24
svn2github/matreshka
source/league/ucd/matreshka-internals-unicode-ucd-core_0025.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
2,899
ada
0
sciencylab/lagrangian-solver
src/numerics-sparse_matrices-norm2.adb
separate (Numerics.Sparse_Matrices) function Norm2 (Item : in Sparse_Matrix) return Real is Sum, Result : Real := 0.0; X : RVector renames Item.X; P : IVector renames Item.P; -- use Real_Functions; begin if Item.N_Col = 1 or else Item.N_Row = 1 then -- 2-norm for vectors for Item of X l...