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 |
|---|---|---|---|---|---|
28,900 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putaim.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,901 | ada | 2 | morbos/Ada_Drivers_Library | boards/stm32f469_discovery/src/touch_panel_ft6x06.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
28,902 | ada | 7 | Fabien-Chouteau/Giza | gtkada_backend/example/engine_control_ui.ads | <reponame>Fabien-Chouteau/Giza<gh_stars>1-10
with Giza.Windows;
with Giza.Widgets.Tabs; use Giza.Widgets.Tabs;
with Giza.Widgets.Composite; use Giza.Widgets.Composite;
with RPM_Widget; use RPM_Widget;
with Power_Phase_Widget; use Power_Phase_Widget;
with Giza.Widgets.Number_Selection; use Giza.Widgets.Number_Selection... |
28,903 | ada | 0 | sebsgit/textproc | src/tests/imagetests.adb | with AUnit.Assertions; use AUnit.Assertions;
with PixelArray; use PixelArray;
with ImageThresholds;
with ImageIO;
package body ImageTests is
procedure Register_Tests (T: in out ImageTest) is
use AUnit.Test_Cases.Registration;
begin
Register_Routine(T, testPixelArray'Access, "pixel array");
Re... |
28,904 | ada | 0 | fintatarta/pulsada | test/src/pulsada_test.ads | package Pulsada_Test is
end Pulsada_Test;
|
28,905 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/xml_io/test_xml_io.adb | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
28,906 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/g-os_lib.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,907 | ada | 6 | jquorning/ada-servlet | samples/upload_server.adb | -----------------------------------------------------------------------
-- upload_server -- Example of server with a servlet
-- Copyright (C) 2012, 2015, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in com... |
28,908 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/dynamics/impact-d2-contact-manager.adb | <reponame>charlie5/lace<filename>3-mid/impact/source/2d/dynamics/impact-d2-contact-manager.adb
with impact.d2.Fixture,
impact.d2.Solid;
package body impact.d2.contact.Manager
is
use type int32;
type default_Listener is new world_Callbacks.b2ContactListener with null record;
b2_defaultListener : alia... |
28,909 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada/mojang-authentication/src/model/com-github-asyncmc-mojang-authentication-ada-model-models.adb | -- Mojang Authentication 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 th... |
28,910 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/driver_demos/demo_timer_quad_encoder/src/encoder_emulator.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
28,911 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/slice7.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/slice7.adb<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-gnatws" }
with System.Storage_Elements; use System.Storage_Elements;
with Unchecked_Conversion;
with Slice7_Pkg; use Slice7_Pkg;
procedure Slice7 is
type Discrete_Type is r... |
28,912 | ada | 1 | jrcarter/Image_Random | image_random_test.adb | -- Image_Random_Test: Test of Image_Random
-- Copyright (C) 2020 by Pragmada Software Engineering
-- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses
--
-- 2020-09-01 Initial version
--
with Ada.Streams;
with Ada.Text_IO;
with Image_Random;
procedure Image_Random_Test is
Ran... |
28,913 | ada | 0 | usainzg/EHU | MP/LAB_001_Opt/Ver_Contiene_Caracter.adb | WITH Ada.Text_Io; USE Ada.Text_Io;
procedure Ver_Contiene_Caracter is
-- salida: 7 booleanos(SE)
-- post: corresponden a cada uno de los casos de pruebas dise�ados.
-- pre: { True }
function Contiene_Caracter (
S : String;
L : Character)
return Boolean is
-- EJERCICIO 3- ESPECIFIC... |
28,914 | ada | 0 | thierr26/ada-keystore | src/keystore-marshallers.ads | <gh_stars>0
-----------------------------------------------------------------------
-- keystore-marshallers -- Data marshaller for the keystore
-- 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 co... |
28,915 | ada | 80 | thindil/steamsky | src/ui/knowledge.adb | <reponame>thindil/steamsky
-- 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 ver... |
28,916 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/oconst3.ads | package OCONST3 is
type bit is (zero, one);
type u8 is mod 2**8;
type Base is record
i1 : Integer;
end Record;
type R is record
u : u8;
f : bit;
b : Base;
end record;
for R use record
u at 0 range 0 .. 7;
f at 1 range 0 .. 0;
b at 1 range 1 .. 32; -- unaligned SImode bitfi... |
28,917 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/prj-com.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,918 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements-assoc.adb |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <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:
--
-- * Redistributio... |
28,919 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/t12.adb | -- { dg-do run }
--
with Init12; use Init12;
with Text_IO; use Text_IO;
with Dump;
procedure T12 is
Local_A11 : Arr11;
Local_A22 : Arr22;
begin
Local_A11(1,1) := My_A11(1,1) + 1;
Local_A11(1,2) := My_A11(1,2) + 1;
Local_A11(2,1) := My_A11(2,1) + 1;
Local_A11(2,2) := My_A11(2,2) + 1;
Put ("Local_A11 :... |
28,920 | ada | 3 | jwarwick/aoc_2020 | day14/tests/day-test.adb | with AUnit.Assertions; use AUnit.Assertions;
package body Day.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
p : constant Program := load_file("test1.txt");
t1 : constant Long_Integer := sum_memory(p);
begin
Assert(t1 = 165, "Wrong number, ex... |
28,921 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl/src/sdl_sdl_error_h.ads | <filename>extern/gnat_sdl/gnat_sdl/src/sdl_sdl_error_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
package SDL_SDL_error_h is
-- arg-macro: procedure SDL_OutOfMemory ()
-- SDL_Error(SDL_ENOMEM)
-- arg-macro: procedure SDL_Unsupported (... |
28,922 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/renaming2_pkg4.adb | package body Renaming2_Pkg4 is
package body Inner is
function Next_Value return Value_T is
Next_Value : Value_T renames Value (Next);
begin
return Next_Value;
end Next_Value;
end Inner;
end Renaming2_Pkg4;
|
28,923 | ada | 0 | zorodc/ada-http1 | http-request.adb | <filename>http-request.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
package body HTTP.Request is
package body Parse is
procedure Debug (Ctx : in Context; Str : in String) is
function Slice (Idx: in HTTP.Indexes; Str : in String) return String
is (Str (Idx.First .. Idx.Last));
begin
Put_Li... |
28,924 | ada | 0 | caqg/linux-home | Examples/Ada/greetings.adb | <filename>Examples/Ada/greetings.adb<gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
package body Greetings is
procedure Hello is
begin
Put_Line ("Hello WORLD!");
end Hello;
procedure Goodbye is
begin
Put_Line ("Goodbye WORLD!");
end Goodbye;
end Greetings;
|
28,925 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-comms-lmcp_net_client.adb | with String_Utils; use String_Utils;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
with AVTAS.LMCP.Factory;
with UxAS.Common.Configuration_Manager;
with UXAS.Messages.UxNative.KillService;
with Ada.Text_IO;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Strings.Fixed;
package body UxAS.Comm... |
28,926 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnarl/s-tpoben.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnarl/s-tpoben.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS ... |
28,927 | ada | 15 | mgrojo/adalib | ada-calendar-time_zones.ads | <filename>ada-calendar-time_zones.ads
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 199... |
28,928 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-powtab.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,929 | ada | 1 | samueltardieu/pok | libpok/ada/arinc653/apex-semaphores.ads | <filename>libpok/ada/arinc653/apex-semaphores.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 informa... |
28,930 | ada | 192 | rocher/Ada_Drivers_Library | boards/crazyflie/src/stm32-board.ads | <reponame>rocher/Ada_Drivers_Library<filename>boards/crazyflie/src/stm32-board.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2020, AdaCore --
... |
28,931 | ada | 0 | optikos/oasis | source/nodes/program-nodes-modular_types.ads | <filename>source/nodes/program-nodes-modular_types.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Modular_... |
28,932 | ada | 0 | xuedong/mini-ada | tests/typing/good/testfile-assign-3.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P(X: in out Integer) is begin new_line; end;
type r is record a: integer; end record;
function f return access r is begin return new r; end;
begin
P(f.a);
end;
|
28,933 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c47005a.ada | <reponame>best08618/asylo
-- C47005A.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... |
28,934 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-szunau.ads | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
28,935 | ada | 0 | Letractively/ada-ado | regtests/model/regtests-images-model.ads | <filename>regtests/model/regtests-images-model.ads
-----------------------------------------------------------------------
-- Regtests.Images.Model -- Regtests.Images.Model
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/m... |
28,936 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/MD4/Ada/md4.ada | <gh_stars>1-10
with Ada.Text_IO;
with CryptAda.Digests.Message_Digests.MD4;
with CryptAda.Digests.Hashes;
with CryptAda.Pragmatics;
with CryptAda.Utils.Format;
procedure RC_MD4 is
use CryptAda.Digests.Message_Digests;
use CryptAda.Digests;
use CryptAda.Pragmatics;
function To_Byte_Array (Item : String) r... |
28,937 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__nrf52.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
28,938 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_main_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
with Interfaces.C.Strings;
with SDL_stdinc_h;
package SDL_main_h is
C_LINKAGE : aliased constant String := "C" & ASCII.NUL; -- ..\SDL2_tmp\SDL_main.h:86
-- unsupported macro: main SDL_main
-- Simple DirectMedia... |
28,939 | ada | 3 | charlie5/aIDE | source/types/adam-component_definition.ads | <reponame>charlie5/aIDE
with
AdaM.Entity,
AdaM.subtype_Indication,
AdaM.access_Definition,
Ada.Containers.Vectors,
Ada.Streams;
package AdaM.component_Definition
is
type Item is new Entity.item with private;
-- View
--
type View is access all Item'Class;
procedure View_wri... |
28,940 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | SVD2ada/svd/stm32_svd-opamp.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.OPAMP is
pragma Preelaborate;
---------------
-- Registers --
--------------... |
28,941 | ada | 79 | Roldak/OpenGLAda | tests/glfw3/glfw_test.adb | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Errors;
with Ada.Text_IO;
package body Glfw_Test is
procedure Print_Error (Code : Glfw.Errors.Kind; Description : String) is
begin
Ada.Text_IO.Put_Line ("Error occured... |
28,942 | ada | 3 | charlie5/aIDE | applet/aide/source/aide-gui.ads | <reponame>charlie5/aIDE
with
aIDE.Palette.of_packages,
aIDE.Editor,
AdaM.Entity,
AdaM.a_Package,
AdaM.a_Pragma,
AdaM.context_Line,
AdaM.exception_Handler,
AdaM.a_Type.a_subtype,
-- AdaM.Source,
gtk.Button;
package aIDE.GUI
is
procedure open;
procedure clear_L... |
28,943 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-state_machines.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
28,944 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-7.1.4/wisi-ada-format_parameter_list.adb | -- Abstract :
--
--
--
-- Copyright (C) 2019 - 2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- your option) any later vers... |
28,945 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-string.ads | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-string.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
28,946 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-read_extent_actions-collections.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
28,947 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-dynhta.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
28,948 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdltests/loopwave_callback.ads | <reponame>Lucretia/old_nehe_ada95
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public ... |
28,949 | ada | 0 | alexcamposruiz/dds-requestreply | src/dds-request_reply-request_generic.adb | -------------------------------------------------------------------------------
-- --
-- D D S . R E Q U E S T _ R E P L Y . R E Q U E S T _ G E N E R I C --
-- --
... |
28,950 | ada | 0 | thierr26/ada-keystore | tools/akt-commands-extract.adb | -----------------------------------------------------------------------
-- akt-commands-extract -- Get content from keystore
-- 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 compliance with the L... |
28,951 | ada | 3 | daveshields/AdaEd | demos/concord.ada | with text_io; use text_io;
with list_package;
procedure concordance is
package int_io is new integer_io(integer); use int_io;
package line_list is new list_package(natural); use line_list;
type vstring is access string;
type word_node;
type word_link is access word_node;
subtype alpha is chara... |
28,952 | ada | 20 | HeisenbugLtd/spat | src/app/run_spat-print_summary.adb | <reponame>HeisenbugLtd/spat
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as publi... |
28,953 | ada | 1 | xclemence/adventofcode2020 | day18-ada/src/calculate2.ads | <filename>day18-ada/src/calculate2.ads
with Operation; use Operation;
package Calculate2 is
function Execute(Value: String;
Current_Index: in out Integer;
Priority_Mode: Boolean := False) return NaturalDouble;
end Calculate2;
|
28,954 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__virtex5-xps.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
28,955 | ada | 0 | optikos/oasis | tools/generator/meta-read.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with League.String_Vectors;
package body Meta.Read is
function To_Name (Text : League.Strings.Universal_String)
... |
28,956 | ada | 8 | pvrego/adaino | project/src/avr-timers-scheduler.adb | -- =============================================================================
-- Package body AVR.TIMERS.SCHEDULER
-- =============================================================================
package body AVR.TIMERS.SCHEDULER is
procedure Initialize_CTC_Timer
(Timer : TIMERS.Timer_Type;
Priorit... |
28,957 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array27.adb | -- { dg-do run }
-- { dg-options "-O" }
with Array27_Pkg; use Array27_Pkg;
procedure Array27 is
function Get return Outer_type is
Ret : Outer_Type;
begin
Ret (Inner_Type'Range) := F;
return Ret;
end;
A : Outer_Type := Get;
B : Inner_Type := A (Inner_Type'Range);
begin
if B /= "123" then
... |
28,958 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1223a.ada | -- CC1223A.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... |
28,959 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/dynamics/impact-d2-contact-manager.ads | <gh_stars>10-100
with impact.d2.Broadphase,
impact.d2.Contact,
impact.d2.world_Callbacks;
package impact.d2.contact.Manager
--
--
--
is
-- Delegate of b2World.
--
type b2ContactManager is tagged
record
m_broadPhase : aliased Broadphase.b2BroadPhase := broadphase.to_b2BroadPha... |
28,960 | ada | 1 | TNO/Rejuvenation-Ada | tests/src/missing-aunit-assertions.adb | with AUnit.Assertions; use AUnit.Assertions;
package body Missing.AUnit.Assertions is
procedure Generic_Assert
(Actual, Expected : Element_T; Message : String;
Source : String := GNAT.Source_Info.File;
Line : Natural := GNAT.Source_Info.Line)
is
begin
Assert
... |
28,961 | ada | 0 | RyanMcCarl/.emacs.d | archive/test/manual/etags/ada-src/waroquiers.ada | <reponame>RyanMcCarl/.emacs.d
-- This file is an Ada file containing test data
-- for etags (Ada83 and Ada95 support).
package Pkg1 is
type Private_T is private;
package Inner1 is
procedure Private_T;
end Inner1;
package Inner2 is
task Private_T;
end Inner2;
type Public_T is
record
A :... |
28,962 | ada | 2 | corentingay/ada_epita | project/adl/components/src/io_expander/MCP23xxx/mcp23x08.adb | <reponame>corentingay/ada_epita
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
28,963 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-progress_bar.adb | <gh_stars>100-1000
package body agar.gui.widget.progress_bar is
package cbinds is
procedure set_width
(bar : progress_bar_access_t;
width : c.int);
pragma import (c, set_width, "AG_ProgressBarPercent");
end cbinds;
procedure set_width
(bar : progress_bar_access_t;
width : natur... |
28,964 | ada | 0 | adammw/rtp_labs | week3/max_int_array.adb | <reponame>adammw/rtp_labs
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Max_Int_Array is
type Int_Array is array(Character range <>) of Integer;
function Max(Items : in Int_Array) return Integer is
Max_Value : Integer := Items(Items'First);
begin
for I in Items'R... |
28,965 | ada | 0 | ytomino/gnat4drake | g-dyntab.ads | <reponame>ytomino/gnat4drake
pragma License (Unrestricted);
generic
type Table_Component_Type is private;
type Table_Index_Type is range <>;
Table_Low_Bound : Table_Index_Type;
Table_Initial : Positive;
Table_Increment : Natural;
pragma Unreferenced (Table_Increment);
package GNAT.Dynamic_Tables is
... |
28,966 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/motor/physics-motor-spring.ads |
with physics.Rigid;
with Math;
package physics.Motor.spring is
-- a motor which acts as a spring to bring a target solid to a desired site or attitude.
type Item is abstract new physics.Motor.item with
record
Rigid : physics.Rigid.pointer; -- access to the Solid affected by t... |
28,967 | ada | 7,053 | Elon143/Amass | resources/scripts/scrape/pkey.ads | -- Copyright 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 url = require("url")
name = "PKey"
type = "scrape"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local params = {
['zone']=do... |
28,968 | ada | 15 | My-Colaborations/dynamo | src/gnat/erroutc.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,969 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-direct_sum.adb | <reponame>sciencylab/lagrangian-solver
separate (Numerics.Sparse_Matrices)
function Direct_Sum (A, B : in Sparse_Matrix) return Sparse_Matrix is
C : Sparse_Matrix;
NRow : constant Pos := A.N_Row;
NP : constant Pos := A.P (A.N_Col + 1);
use Ada.Containers;
begin
pragma Assert (A.Format = CSC and B.F... |
28,970 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/styleg-c.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,971 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP3_Sous_Programmes/ecrire_entier.adb | -- Score PIXAL le 07/10/2020 à 16:23 : 100%
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Float_Text_IO; use Ada.Float_Text_IO;
procedure Ecrire_Entier is
function Puissance_Iteratif (Nombre: in Float ; Exposant : in Integer) return Float with
Pre => E... |
28,972 | ada | 4 | faelys/gela-asis | tools/uaflex/symbols.adb | <reponame>faelys/gela-asis<filename>tools/uaflex/symbols.adb
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- ... |
28,973 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/samv71-xplained-ultra/coin_flip/leds.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
28,974 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/main/resources/project-templates/microbit_example/src/display.adb | ------------------------------------------------------------------------------
-- Copyright (C) 2018, AdaCore --
-- --
-- This is free software; you can redistribute it and/or modify it under --
-- t... |
28,975 | ada | 33 | ytomino/drake | source/a-contai.ads | <gh_stars>10-100
pragma License (Unrestricted);
package Ada.Containers is
pragma Pure;
type Hash_Type is mod 2 ** 32; -- implementation-defined
-- extended
-- Shift_Left, Shift_Right, Shift_Right_Arithmetic, Rotate_Left,
-- and Rotate_Right.
-- These subprograms are convenience to make hash fu... |
28,976 | ada | 1 | alexbarker/Nuclear_Submarine_Control_System | Trident/src/trident.adb | -- SET10112 2018-9 TR2 001 - Formal Approaches to Software Engineering
-- Trident - Submarine Coursework
-- Version 0.3.1
-- <NAME>
-- 40333139
-- Last Updated on 19th April 2019
-- trident.adb
with Ada.Text_IO; use Ada.Text_IO;
package body Trident with SPARK_Mode is
procedure ReadyToFire is
begin
if Tri... |
28,977 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/vfa2.ads | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O" }
package VFA2 is
type Bit is mod 2**1
with Size => 1;
type UInt2 is mod 2**2
with Size => 2;
type UInt22 is mod 2**22
with Size => 22;
type MODE_ENUM is
(
Function_0_Default,
Function_1,
... |
28,978 | ada | 33 | ytomino/drake | source/directories/machine-apple-darwin/s-ndfina.adb | <reponame>ytomino/drake<filename>source/directories/machine-apple-darwin/s-ndfina.adb
-- reference:
-- http://www.opensource.apple.com/
-- source/boot/boot-132/i386/libsaio/hfs_compare.c
-- http://www.opensource.apple.com/
-- source/xnu/xnu-1504.15.3/bsd/vfs/vfs_utfconv.c
with Ada.Unchecked_Conversion;
with ... |
28,979 | ada | 1 | mullikine/RosettaCodeData | Task/Create-an-object-at-a-given-address/Ada/create-an-object-at-a-given-address-1.ada | <reponame>mullikine/RosettaCodeData<gh_stars>1-10
type IO_Port is mod 2**8; -- One byte
Device_Port : type IO_Port;
for Device_Port'Address use 16#FFFF_F000#;
|
28,980 | ada | 0 | JeremyGrosser/arm_cmsis_dsp | src/filtering_functions_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with sys_ustdint_h;
with arm_math_types_h;
package filtering_functions_h is
-- unsupported macro: DELTA_Q31 ((q31_t)(0x100))
-- unsupported macro: DELTA_Q15 ((q15_t)0x5)
type arm_fir_instance_q7 is reco... |
28,981 | ada | 4 | davidkristola/vole | kv-avm-instances.ads | with Interfaces;
with kv.avm.Executables;
with kv.avm.Instructions;
with kv.avm.Registers;
with kv.avm.Actors;
with kv.avm.Processors;
with kv.avm.Frames;
with kv.avm.Actor_References;
with kv.avm.Actor_References.Sets;
with kv.avm.Messages;
with kv.avm.Tuples;
with kv.avm.control;
with kv.avm.Memories;
package kv.av... |
28,982 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74407b.ada | <gh_stars>1-10
-- C74407B.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.... |
28,983 | ada | 1 | meowthsli/veriflight_boards | cc3df4revo/src/sbus_commander.adb | pragma Ada_2012;
package body sbus_commander is
----------
-- init --
----------
procedure init is
begin
null;
end init;
-----------------------
-- get_channels_data --
-----------------------
function get_channels_data return sbus_data is
begin
return frame.data;
end... |
28,984 | ada | 0 | notdb/LC-Practice | 136/ada/increment.adb | -- We define the Increment function
function Increment (I : Integer) return Integer is
begin
return I + i;
end Increment; |
28,985 | ada | 1 | io7m/coreland-math_2d | math_2d-points.ads | <gh_stars>1-10
with Math_2D.Types;
with Math_2D.Vectors;
generic
with package Types is new Math_2D.Types (<>);
with package Vectors is new Math_2D.Vectors (Types);
package Math_2D.Points is
function Distance
(Point_A : in Types.Point_t;
Point_B : in Types.Point_t) return Types.Real_Type'Base;
end M... |
28,986 | ada | 12 | jquorning/ada-asf | src/asf-components-html-selects.ads | -----------------------------------------------------------------------
-- html-selects -- ASF HTML UISelectOne and UISelectMany components
-- Copyright (C) 2011, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
28,987 | ada | 1 | selroc/Renaissance-Ada | src/libraries/Missing/src/missing-aunit.ads | <filename>src/libraries/Missing/src/missing-aunit.ads
package Missing.AUnit is
end Missing.AUnit; |
28,988 | ada | 0 | alexcamposruiz/dds-requestreply | src/orig/dds-request_reply-connext_c_replier.adb | pragma Ada_2012;
package body DDS.Request_Reply.Connext_C_Replier is
--------------------------------
-- RTI_Connext_Replier_Delete --
--------------------------------
function RTI_Connext_Replier_Delete
(Self : RTI_Connext_Replier_Access) return DDS.ReturnCode_T
is
begin
return raise Pro... |
28,989 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/pixhawk/hil/hil-gpio.adb | <gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with STM32.GPIO; use STM32.GPIO;
with STM32.Device;
with STM32.Board;
with HIL.Config;
-- @summary
-- Target-specific mapping for HIL of GPIO in ... |
28,990 | ada | 1 | selroc/Renaissance-Ada | src/examples/Rejuvenation_Workshop/src/parentpackage.ads | <reponame>selroc/Renaissance-Ada
with Ada.Text_IO;
package ParentPackage is
end ParentPackage;
|
28,991 | ada | 3 | charlie5/aIDE | applet/aide/source/editors/aide-editor-of_exception_handler.adb | with
AdaM.Declaration.of_exception,
AdaM.Assist,
aIDE.Editor.of_block,
aIDE.GUI,
Glib,
glib.Error,
gtk.Builder,
gtk.Handlers,
ada.unchecked_Deallocation;
with Ada.Text_IO; use Ada.Text_IO;
package body aIDE.Editor.of_exception_handler
is
use Glib,
glib.Error,... |
28,992 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2b16a.ada | <gh_stars>1-10
-- CD2B16A.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.... |
28,993 | ada | 4 | davidkristola/vole | kv-avm-routers.adb | with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Messages;
with kv.avm.Actor_Pool;
with kv.avm.Executables;
with kv.avm.Clients;
with kv.avm.Transactions.Basic;
package body kv.avm.Routers is
use Interfaces;
use kv.avm.Control;
------------------------... |
28,994 | ada | 0 | twinbee/raymondsSpanningTree | as6.adb | ----------------------------csc410/prog6/as6.adb----------------------------
-- Author: <NAME>
-- Class: CSC410 Burgess
-- Date: 11-20-04 Modified: 11-30-04
-- Due: 12-01-04
-- Desc: Assignment 6: KERRY RAYMOND'S SPANNING TREE ALGORITHM
-- FOR VIRTUAL TOPOLOGY NETWORKS
--
-- a nonproduction imple... |
28,995 | ada | 16 | stcarrez/ada-enet | src/net-protos-dispatchers.adb | -----------------------------------------------------------------------
-- net-protos-dispatchers -- Network protocol dispatchers
-- Copyright (C) 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
28,996 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sem_ch7.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
28,997 | ada | 24 | svn2github/matreshka | source/web/spikedog/aws/matreshka-servlet_servers-aws_servers.adb | <filename>source/web/spikedog/aws/matreshka-servlet_servers-aws_servers.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
28,998 | ada | 0 | iyan22/AprendeAda | ejercicios2/escribir_vector.adb | <reponame>iyan22/AprendeAda
with Ada.Text_Io, Ada.Integer_Text_Io; use Ada.Text_Io, Ada.Integer_Text_Io;
with vectores; use vectores;
procedure escribir_vector (V : in Vector_De_Enteros) is
--Pre:
--Post: se han escrito en pantalla todos los valores de V
--
begin
for pos in V'First..V'Last loop
put... |
28,999 | ada | 3 | rogermc2/GA_Ada | ga_lib/src/c3ga.ads | <filename>ga_lib/src/c3ga.ads
with Interfaces;
with GL.Types;
with GA_Maths;
with Blade_Types;
with E3GA;
with Multivectors;
with Multivector_Type_Base;
package C3GA is
-- Vector_E3 corresponds to c3ga.vectorE3GA coordinate storage float m_c[3]
subtype Vector_E3 is GL.Types.Singles.Vector3;
subtype Vect... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.