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 |
|---|---|---|---|---|---|
1,400 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/source/030_spark_language_and_tools/stest.adb | <filename>courses/spark_for_ada_programmers/labs/source/030_spark_language_and_tools/stest.adb
with Side_Effects;
procedure STest
is
begin
Side_Effects.Test;
end STest;
|
1,401 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | src/inverter_pwm.ads | <gh_stars>0
with HAL; use HAL;
with STM32.GPIO; use STM32.GPIO;
with STM32.Timers; use STM32.Timers;
with STM32.PWM; use STM32.PWM;
with STM32.CORDIC; use STM32.CORDIC;
with STM_Board; use STM_Board;
with Inverter_ADC; use Inverter_ADC;
package Inverter_PWM is
-----------------
-- Definitions... |
1,402 | ada | 1 | bracke/websitegenerator | src/linereader.ads | <filename>src/linereader.ads
with GNATCOLL.Mmap;
generic
Separator_Sequence : in String;
package Linereader is
use GNATCOLL.Mmap;
End_Of_Input_Exception : Exception;
type Reader (Str : Str_Access;
Len : Natural) is tagged private;
-- Read a line of text
function Get_Line (Self : i... |
1,403 | ada | 8 | flyx/OpenCLAda | src/implementation/cl-vectors.adb | <reponame>flyx/OpenCLAda
--------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- 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 a... |
1,404 | ada | 0 | DrenfongWong/tkm-rpc | src/client/tkmrpc-clients-ike-init.adb | --
-- Copyright (C) 2013 <NAME> <<EMAIL>>
-- Copyright (C) 2013 <NAME> <<EMAIL>>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions
-- are met:
-- 1. Redistributions of source code must retain the ... |
1,405 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-valuators-value_inputs.adb |
with
Ada.Unchecked_Deallocation,
Interfaces.C.Strings,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Widgets.Valuators.Value_Inputs is
procedure value_input_set_draw_hook
(W, D : in System.Address);
pragma Import (C, value_input_set_draw_hook, "valu... |
1,406 | ada | 60 | RREE/ada-util | regtests/util-streams-buffered-lzma-tests.adb | <filename>regtests/util-streams-buffered-lzma-tests.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- util-streams-buffered-lzma-tests -- Unit tests for encoding buffered streams
-- Copyright (C) 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under... |
1,407 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/webapi/xhr/webapi-xhr-requests.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,408 | ada | 204 | spr93/whitakers-words | src/words_engine/words_engine-tricks.adb | <gh_stars>100-1000
-- 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
-... |
1,409 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/par-ch2.adb | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,410 | ada | 6 | yannickmoy/SPARKZumo | src/drivers/zumo_buzzer.adb | --pragma SPARK_Mode;
with Interfaces.C; use Interfaces.C;
with System;
package body Zumo_Buzzer is
-- BuzzerFinished : Boolean := True;
procedure Enable_Timer_ISR (State : Boolean)
is
TIMSK2 : Unsigned_Char
with Address => System'To_Address (16#70#);
begin
if State then
TIMSK... |
1,411 | ada | 4 | reznikmm/adaside | sources/ada_pretty-clauses.adb | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Ada_Pretty.Clauses is
--------------
-- Document --
--------------
overriding function Document
(Self : Aspect;
... |
1,412 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/prj-util.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/prj-util.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,413 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_render_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
with Interfaces.C.Strings;
with System;
limited with SDL_video_h;
limited with SDL_surface_h;
with SDL_blendmode_h;
limited with SDL_rect_h;
package SDL_render_h is
-- Simple DirectMedia Layer
-- Copyright (C) 1... |
1,414 | ada | 0 | optikos/oasis | source/nodes/program-nodes-delay_statements.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Delay_Statements;
with Program.Element_Visitors;
package Progr... |
1,415 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3806c.ada | -- CE3806C.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... |
1,416 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/misc_defs.ads | <gh_stars>1-10
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright ... |
1,417 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l0x3/stm32_svd-adc.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.ADC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- interrupt and status regis... |
1,418 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c2/c24003a.ada | -- C24003A.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... |
1,419 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c44003f.ada | <reponame>best08618/asylo<gh_stars>1-10
-- C44003F.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and docume... |
1,420 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a42g.ada | <reponame>best08618/asylo
-- C54A42G.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contai... |
1,421 | ada | 0 | thierr26/ada-apsepp | src/apsepp-scope_bound_locks-private_handler.adb | <filename>src/apsepp-scope_bound_locks-private_handler.adb
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package body Apsepp.Scope_Bound_Locks.Private_Handler is
----------------------------------------------------------------------------
protected body Protected_Hand... |
1,422 | ada | 7 | stcarrez/resource-embedder | regtests/files/test-ada-1/src/test1.adb | <filename>regtests/files/test-ada-1/src/test1.adb<gh_stars>1-10
with Resources1;
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test1 is
use Resources1;
C : Content_Access := Get_Content ("main.html");
begin
if C = null then
Ada.Text_IO.Put_Line ("FAIL: No content 'main.html'");
Ada.Command_Li... |
1,423 | ada | 1 | Fabien-Chouteau/littlefs-ada | src/littlefs.ads | with Interfaces;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
with System;
package Littlefs is
VERSION : constant := 16#00020003#;
-- Software library version
-- Major (top-nibble), incremented on backwards incompatible changes
-- Minor (bottom-nibble), incremented on feature addi... |
1,424 | ada | 1 | STR-UPM/ToyOBDH | src/buffer.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, Universidad Politécnica de Madrid --
-- --
-- ... |
1,425 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-unique-2.adb | <filename>tests/typing/bad/testfile-unique-2.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
T: Integer;
procedure t is begin new_line; end;
begin New_Line; end;
|
1,426 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__tms570-sci.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
1,427 | ada | 0 | hannesb0/rtpl18 | src/lab-code/calendar_package/src/mycalendar.adb | with Ada.Text_IO;
use Ada.Text_IO;
package body mycalendar is
procedure makecal(w: in weekday; d: in daynum; m:in monthnum) is
today_weekday: weekday := w;
today_daynum: daynum := d;
today_monthnum: monthnum := m;
begin
-- print cal
Put_Line("Calendar for the next 30 days:");
for d in Integer range 1 .. 31... |
1,428 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/vms_conv.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/vms_conv.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,429 | ada | 4 | davidkristola/vole | kv-avm-actor_pool.adb | <filename>kv-avm-actor_pool.adb<gh_stars>1-10
with Ada.Containers.Ordered_Maps;
with Ada.Unchecked_Deallocation;
with Interfaces; use Interfaces;
package body kv.avm.Actor_Pool is
use kv.avm.Executables;
package Actors is new Ada.Containers.Ordered_Maps
(Key_Type => Interfaces.Unsigned_32,
El... |
1,430 | ada | 7 | Fabien-Chouteau/Giza | src/giza-types.adb | <filename>src/giza-types.adb
------------------------------------------------------------------------------
-- --
-- Giza --
-- ... |
1,431 | ada | 1 | samueltardieu/pok | libpok/ada/arinc653/apex.ads | <gh_stars>1-10
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENCE F... |
1,432 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-secsta.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,433 | ada | 0 | reznikmm/slimp | source/slim-messages-vers.adb | <gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Text_Codecs;
with Slim.Message_Visiters;
package body Slim.Messages.vers is
----------
-- Read --
----------
ov... |
1,434 | ada | 3 | albinjal/ada_basic | Lab5/person_handling.adb | <gh_stars>1-10
with Date_Package; use Date_Package;
with Ada.Text_IO; use Ada.Text_IO;
package body Person_Handling is
function "="(Person1, Person2: in Person) return Boolean is
begin
return Person1.Birth = Person2.Birth;
end;
function ">"(Person1, Person2: in Person) return Boolean ... |
1,435 | ada | 286 | auzkok/libagar | ada/core/agar-data_source.adb | <gh_stars>100-1000
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . D A T A _ S O U R C E --
-- B o d y ... |
1,436 | ada | 3 | UdayanSinha/Code_Blocks | Ada/cyclic_scheduler.adb | with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Real_Time;
use Ada.Real_Time;
with System_Function_Package;
use System_Function_Package;
procedure Cyclic_Scheduler is
X : Integer := 0; -- Input
Y : Integer := 0; -- Input
task Source_X;
task Source_Y;
task Scheduler;
task body Source_X is -- Generates... |
1,437 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-buttons-light-radio.adb |
with
Interfaces.C,
System;
use type
System.Address;
package body FLTK.Widgets.Buttons.Light.Radio is
procedure radio_light_button_set_draw_hook
(W, D : in System.Address);
pragma Import (C, radio_light_button_set_draw_hook, "radio_light_button_set_draw_hook");
pragma Inline (... |
1,438 | ada | 0 | annexi-strayline/ASAP-Simple_HTTP | simple_http.ads | ------------------------------------------------------------------------------
-- --
-- Simple HTTP --
-- --
-- ... |
1,439 | ada | 4 | faelys/gela-asis | source/asis/spec/annex_f/ada-wide_wide_text_io-editing.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
1,440 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-i2c1.ads | -- 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;
-- DW_apb_i2c address block
package RP_SVD.I2C... |
1,441 | ada | 1 | leo-brewin/adm-bssn-numerical | bssn/code/src/metric.ads | <filename>bssn/code/src/metric.ads
package Metric is
end Metric;
|
1,442 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-tasinf-solaris.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/s-tasinf-solaris.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,443 | ada | 12 | jquorning/ada-asf | src/asf-locales.ads | <gh_stars>10-100
-----------------------------------------------------------------------
-- asf-locales -- Locale support
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
1,444 | ada | 65 | mfkiwl/ewok-kernel-security-OS | src/ewok-softirq.ads | <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 except in compliance with the License.
-- You may obtain a copy of the License ... |
1,445 | ada | 33 | ytomino/drake | source/required/s-pack56.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_56 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_56 is mod 2 ** 56;
for Bits_56'Size use 56;
package Indexing is new... |
1,446 | ada | 3 | albinjal/ada_basic | Lab1/Lab1.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Lab1 is
FP, LP, Steps, Momsproc, Moms: Float;
begin
loop
Put("Första pris: "); Get(FP);
exit when FP >= 0.0;
end loop;
loop
Put("Sista pris: "); Get(LP);
exit when LP >= FP;
end loop;
... |
1,447 | ada | 192 | rocher/Ada_Drivers_Library | boards/stm32_common/stm32f429disco/framebuffer_ili9341.ads | <filename>boards/stm32_common/stm32f429disco/framebuffer_ili9341.ads<gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore ... |
1,448 | ada | 0 | reznikmm/cvsweb2git | source/cvsweb-loaders.adb | -- BSD 3-Clause License
--
-- Copyright (c) 2017, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the above copyright notice,
--... |
1,449 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/makeusg.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,450 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/benchmark_date.adb | <gh_stars>1-10
with Ada.Unchecked_Deallocation;
with Date.Api;
package body Benchmark_Date is
package Skill renames Date.Api;
use Date;
use Skill;
type State_Type is access Skill_State;
State : State_Type;
procedure Create (N : Integer; File_Name : String) is
begin
State := new Skill_Sta... |
1,451 | ada | 3 | TheSledgeHammer/2.11BSD | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/arr_enum_idx_w_gap/foo_q418_043.adb | <gh_stars>1-10
-- Copyright 2018-2020 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 ... |
1,452 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/cortex_m/src/fpu/cortex_m-fpu.ads | <filename>arch/ARM/cortex_m/src/fpu/cortex_m-fpu.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
1,453 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-votes/src/awa-votes.ads | -----------------------------------------------------------------------
-- awa-votes -- Module votes
-- Copyright (C) 2013, 2015, 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 the License... |
1,454 | ada | 65 | PThierry/ewok-kernel | src/arch/socs/stm32f439/soc-exti.ads | <reponame>PThierry/ewok-kernel
--
-- Copyright 2018 The wookey project team <<EMAIL>>
-- - <NAME>
-- - Arnauld Michelizza
-- - <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 ob... |
1,455 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | drivers/drivers-rfm69.ads | <reponame>ekoeppen/MSP430_Generic_Ada_Drivers
with Drivers.Text_IO;
with HAL;
generic
with package Chip_Select is new HAL.Pin (<>);
with package IRQ is new HAL.Pin (<>);
with package SPI is new HAL.SPI (<>);
AES_Enabled : Boolean := False;
Packet_Size : Unsigned_8 := 64;
Frequency : Unsigned_32;
pa... |
1,456 | ada | 0 | ventaquil/PW-Ada | src/pw.ads | <filename>src/pw.ads
package PW is
task type Semaphore is
entry Initialize(N : in Natural);
entry Wait;
entry Signal;
entry Try(Success : out Boolean);
end Semaphore;
type SemaphoreAccess is access Semaphore;
task PlaceSemaphore is
entry Wait;
entry Sign... |
1,457 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-cofuve.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
1,458 | ada | 5 | amvb/GUCEF | dependencies/agar/ada-core/agar-core-database.ads | <reponame>amvb/GUCEF<filename>dependencies/agar/ada-core/agar-core-database.ads
with Agar.Core.Thin;
package Agar.Core.Database is
subtype Database_Access_t is Thin.DB.DB_Access_t;
subtype Database_Not_Null_Access_t is Thin.DB.DB_Not_Null_Access_t;
type Type_t is new Thin.DB.Type_t;
procedure New_D... |
1,459 | ada | 4 | faelys/gela-asis | source/asis/xasis/xasis-types.adb | ------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
1,460 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/test_operator_attribute.ads | package Test_Operator_Attribute is
procedure Test;
end Test_Operator_Attribute;
|
1,461 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-tataat.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
1,462 | ada | 0 | strenkml/EE368 | memsim-master/src/parser-parse_flash.adb |
with Memory.Flash;
with Util; use Util;
separate (Parser)
procedure Parse_Flash(parser : in out Parser_Type;
result : out Memory_Pointer) is
word_size : Positive := 8;
block_size : Positive := 256;
read_latency : Time_Type := 10;
write_latency : Time_Type := 1000;
beg... |
1,463 | ada | 0 | Letractively/ada-util | testutil/aunit/util-xunit.adb | <gh_stars>0
-----------------------------------------------------------------------
-- util-xunit - Unit tests on top of AUnit
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
1,464 | ada | 1 | Roldak/OpenGLAda | deps/FreeTypeAda/src/ft-glyphs.ads | <filename>deps/FreeTypeAda/src/ft-glyphs.ads
-- part of FreeTypeAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with FT.Faces;
package FT.Glyphs is
pragma Preelaborate;
type Glyph_Reference is limited new Ada.Finalization.Limited_Controlled
with private;
-- ... |
1,465 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-errors.ads | <filename>src/gl/interface/gl-errors.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
private with GL.Low_Level;
package GL.Errors is
-- not Pure because Error_Flag can change with each call
pragma Preelaborate;
-- The behavior of this packag... |
1,466 | ada | 33 | ytomino/drake | source/tasking/required/s-taprob.adb | <reponame>ytomino/drake
package body System.Tasking.Protected_Objects is
procedure Initialize_Protection (
Object : not null access Protection;
Ceiling_Priority : Integer)
is
pragma Unreferenced (Ceiling_Priority);
begin
Synchronous_Objects.Initialize (Object.Lock);
end Initialize_P... |
1,467 | ada | 0 | thieryw/snake_array_impl | main.adb | with snake_functions,snake_types,ada.calendar,display,ada.text_io ;
use ada.text_io,ada.calendar ;
procedure main is
s : snake_types.Snake ;
dir : snake_types.Snake_direction:=snake_types.LEFT ;
has_new_user_input: boolean;
user_requested_direction : snake_types.Snake_direction ;
... |
1,468 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-events-gtkmat.adb | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- gprofiler-events - Profiler Events Description
-- Copyright (C) 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
1,469 | ada | 9 | Kidev/AdaPhysics2D | physics.adb | <reponame>Kidev/AdaPhysics2D
with Interfaces; use Interfaces;
with Circles; use Circles;
with Rectangles; use Rectangles;
with Collisions; use Collisions;
with Links; use Links;
package body Physics is
-- This procedure will perform Collision resolution
-- in a way that doesnt require as much RAM as the StepNor... |
1,470 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp2/comprendre_mode_parametre.adb | <reponame>MOUDDENEHamza/ENSEEIHT<filename>1A/S5/PIM/tps/tp2/comprendre_mode_parametre.adb
with Ada.Text_IO;
use Ada.Text_IO;
-- Dans ce programme, les commentaires de spécification
-- ont **volontairement** été omis !
procedure Comprendre_Mode_Parametre is
function Double (N : in Integer) return Integer is
b... |
1,471 | ada | 5 | jhumphry/auto_counters | tests/auto_counters_suite.adb | <filename>tests/auto_counters_suite.adb
-- Auto_Counters_Suite
-- Unit tests for Auto_Counters packages
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Smart_Ptrs_Tests;
with Auto_Counters_Suite.Unique_Ptrs_Tests;
with Auto_Counters_Suite.C_Resources_Tests;
with Auto_Counters_Suite.Refcounted_Flywei... |
1,472 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-convex_raycast-gjk.ads | -- #include "BulletCollision/CollisionShapes/impact.d3.collision.Margin.h"
--
-- #include "LinearMath/impact.d3.Vector.h"
-- #include "impact.d3.collision.convex_Raycast.h"
-- class impact.d3.Shape.convex;
-- class btMinkowskiSumShape;
-- #include "impact.d3.collision.simplex_Solver.h"
with impact.d3.collision.c... |
1,473 | ada | 0 | sebsgit/textproc | src/tests/databatchtests.adb | <reponame>sebsgit/textproc<gh_stars>0
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Containers.Vectors;
with Ada.Text_IO;
with DataBatch;
with MathUtils;
use MathUtils.Float_Vec;
package body DataBatchTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registration;
beg... |
1,474 | ada | 0 | csb6/libtcod-ada | src/libtcod-clipboard.ads | <reponame>csb6/libtcod-ada
package Libtcod.Clipboard is
procedure set(value : String);
function get return String;
end Libtcod.Clipboard;
|
1,475 | ada | 13 | Fabien-Chouteau/GESTE | src/geste-maths.adb | ------------------------------------------------------------------------------
-- --
-- GESTE --
-- --
-- ... |
1,476 | ada | 0 | bracke/Meaning | source/RASCAL-UserMessages.ads | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
1,477 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/allocator_maxalign2.ads | with System;
package Allocator_Maxalign2 is
type Block is record
X : Integer;
end record;
for Block'Alignment use Standard'Maximum_Alignment;
Addr : System.Address;
procedure Check;
end;
|
1,478 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_dse_step.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O1 -gnatp -gnatn" }
with Dse_Step; use Dse_Step;
procedure Test_Dse_Step is
Start : My_Counter := (Value => 0, Step => 1);
Steps : Natural := Nsteps;
begin
Step_From (Start);
if Mv /= Steps then
raise Program_Error;
end if;
end;
|
1,479 | ada | 1 | doug16rogers/solitaire | solitaire_operations.ads | <reponame>doug16rogers/solitaire<filename>solitaire_operations.ads<gh_stars>1-10
package Solitaire_Operations is
subtype Card_Value is Positive range 1 .. 54;
function Value (Card : Card_Value) return Card_Value; -- B Joker (54) returns 53; all others return value
type Deck_List is array (Card_Value) of Card... |
1,480 | ada | 2 | ficorax/PortAudioAda | test/patest_toomanysines/src/patest_toomanysines.adb | with Ada.Float_Text_IO; use Ada.Float_Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with System;
with PortAudioAda; use PortAudioAda;
with PaTest_TooManySines_Types; use PaTest_TooManySines_Types;
with PaTest_TooManySines_Callbacks; use PaTest_TooManySines_Callbacks;
... |
1,481 | ada | 33 | ytomino/drake | source/calendar/a-calari.adb | with Ada.Calendar.Formatting;
with System.Long_Long_Integer_Types;
package body Ada.Calendar.Arithmetic is
use type System.Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Long_Long_Unsigned is
System.Long_Long_Integer_Types.Long_Long_Unsigned;
procedure Addition (Left : Time; Right : Day_Count; Res... |
1,482 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic1_pkg.ads | package Atomic1_Pkg is
type Four_Bits is mod 2 ** 4;
type R16 is record
F1 : Four_Bits;
F2 : Four_Bits;
F3 : Four_Bits;
F4 : Four_Bits;
end record;
for R16 use record
F1 at 0 range 0 .. 3;
F2 at 0 range 4 .. 7;
F3 at 0 range 8 .. 11;
F4 at 0 range 12 ..... |
1,483 | ada | 24 | svn2github/matreshka | source/league/codecs/matreshka-internals-text_codecs-ibm437.adb | <filename>source/league/codecs/matreshka-internals-text_codecs-ibm437.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,484 | ada | 6 | aeszter/lox-spark | src/scanners.ads | <reponame>aeszter/lox-spark
with Ada.Characters.Latin_1;
with SPARK.Text_IO;
with Error_Reporter;
with Tokens;
package Scanners with SPARK_Mode is
procedure Scan_Tokens (Source : String; Token_List : in out Tokens.List) with
Global => (in_out => (Error_Reporter.State, SPARK.Text_IO.Standard_Error)),
Pre =... |
1,485 | ada | 3 | ekzemplaro/data_base_language | text/ada/create/text_create.adb | -- ----------------------------------------------------------------
-- text_create.adb
--
-- Oct/10/2011
--
-- ----------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
with Ada.Command_Line;
--... |
1,486 | ada | 0 | csb6/libtcod-ada | src/generated/path_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with fov_types_h;
with Interfaces.C.Extensions;
with list_h;
package path_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redi... |
1,487 | ada | 52 | onox/orka | orka/src/orka/implementation/orka-instances.adb | <filename>orka/src/orka/implementation/orka-instances.adb
-- 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 ... |
1,488 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/main.adb | <reponame>joffreyhuguet/LmcpGen<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with avtas.lmcp; use avtas.lmcp;
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;... |
1,489 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr4.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr4.adb
-- { dg-do compile }
-- { dg-options "-gnatws" }
procedure aggr4 is
type Byte is range 0 .. 2**8 - 1;
for Byte'Size use 8;
type Time is array (1 .. 3) of Byte;
type UTC_Time is record
Values : Time;
end record;
... |
1,490 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/rep_clause2.ads | -- { dg-do compile }
-- { dg-options "-gnatws" }
package Rep_Clause2 is
type S is new String;
for S'Component_Size use 256;
type T is new S(1..8);
end Rep_Clause2;
|
1,491 | ada | 0 | Sawchord/Ada_Drivers_Library | boards/native/src/native-i2c.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- ... |
1,492 | ada | 20 | charlie5/lace | 1-base/math/source/precision/float/utility/float_math-fast_trigonometry.ads | with
any_Math.any_fast_Trigonometry;
package float_Math.fast_Trigonometry is new float_Math.any_fast_Trigonometry;
|
1,493 | ada | 3 | Heziode/aoc-ada-2021 | 15/1/src/main.adb | with Ada.Containers.Hashed_Maps,
Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils,
Dijkstra;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
Nb_Tiles : constant := 1;
... |
1,494 | ada | 1 | faelys/lithium3 | src/turbojpeg_thin.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
1,495 | ada | 0 | optikos/oasis | source/nodes/program-nodes-enumeration_literal_specifications.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Enumeration_Literal_Specifications is
function Create
(Name : not null Program.Elements.Defining_Names.Defining_Name... |
1,496 | ada | 24 | svn2github/matreshka | tools/gen_cases.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,497 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32f429_discovery/framebuffer_ili9341.ads | with HAL; use HAL;
with HAL.Framebuffer; use HAL.Framebuffer;
with Framebuffer_LTDC;
private with ILI9341;
private with STM32.GPIO;
private with STM32.Device;
package Framebuffer_ILI9341 is
type Frame_Buffer is limited
new Framebuffer_LTDC.Frame_Buffer with private;
procedure Initialize
... |
1,498 | ada | 12 | TUM-EI-RCS/StratoX | software/unittest/estimator/src/fakedev/nvram.adb | <gh_stars>10-100
-- Institution: Technische Universitaet Muenchen
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
with Interfaces; use Interfaces;
package body NVRAM with SPARK_Mode => On, -- Somehow this package includes interrupts, which are accesses
... |
1,499 | ada | 0 | strenkml/EE368 | memsim-master/src/benchmark_runner.adb | <filename>memsim-master/src/benchmark_runner.adb
with Ada.Text_IO; use Ada.Text_IO;
package body Benchmark_Runner is
procedure Register_Benchmark(runner : in out Runner_Type;
benchmark : in Benchmark_Pointer) is
begin
runner.benchmarks.Append(benchmark);
end Register... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.