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 |
|---|---|---|---|---|---|
800 | ada | 0 | xuedong/mini-ada | tests/exec/fib.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Fib is
procedure PrintInt(N: Integer) is
C: Integer := N rem 10;
begin
if N > 9 then PrintInt(N / 10); end if;
Put(Character'Val(48 + C));
end;
f : integer;
procedure fib(n : integer) is
procedure somme is
tmp : integer;
... |
801 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto2.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto2.adb<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-flto" { target lto } }
procedure Lto2 (Nbytes : Natural) is
type Message_T (Length : Natural) is record
case Length is
when 0 => null;
when others => Id : Natural;
end c... |
802 | ada | 0 | iyan22/AprendeAda | ejercicios1/prueba_multporsumas.adb |
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with multporsumas;
procedure prueba_multporsumas is
numero, multiplicador, resultado: integer;
begin
-- Caso de prueba 1: multiplicación estándar
numero:=3;
multiplicador:=4;
put("El resultado de la multiplicacion es 12");... |
803 | ada | 7 | jquorning/trendy_test | src/trendy_test-assertions.ads | with Trendy_Test;
package Trendy_Test.Assertions is
-- Forcibly fail a test.
procedure Fail (Op : in out Operation'Class;
Message : String;
Loc : Source_Location := Make_Source_Location);
-- A boolean check which must be passed for the test to contin... |
804 | ada | 0 | damaki/Verhoeff | test/verhoeff_tests.adb | <gh_stars>0
-------------------------------------------------------------------------------
-- Copyright (c) 2016 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to
-- deal in the Software without restrict... |
805 | ada | 15 | mgrojo/adalib | interfaces-c-strings.ads | <gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
... |
806 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-wtenau.adb | <filename>tools-src/gnu/gcc/gcc/ada/a-wtenau.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
807 | ada | 1 | psyomn/agen | src/actions-comment.adb | -- Copyright 2014-2019 <NAME> (psyomn)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agreed... |
808 | ada | 0 | persan/a-libpcap | src/pcap-low_level.ads | <reponame>persan/a-libpcap
package Pcap.Low_Level is
end pcap.Low_level;
|
809 | ada | 30 | Componolit/libsparkcrypto | src/shared/generic/lsc-internal-ops32.ads | <reponame>Componolit/libsparkcrypto
-------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2010, <NAME>
-- Copyright (C) 2010, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary... |
810 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-opaque_expressions.ads | <filename>source/amf/uml/amf-uml-opaque_expressions.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
811 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-wwdwch.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
812 | ada | 12 | My-Colaborations/ada-asf | regtests/asf-applications-views-tests.adb | <reponame>My-Colaborations/ada-asf<filename>regtests/asf-applications-views-tests.adb
-----------------------------------------------------------------------
-- asf-applications-views-tests - Unit tests for ASF.Applications.Views
-- Copyright (C) 2009, 2010, 2011, 2012, 2014, 2015, 2018, 2019 <NAME>
-- Written by <N... |
813 | ada | 2 | stcarrez/hestia | tools/src/gid/gid-decoding_png.adb | -- A PNG stream is made of several "chunks" (see type PNG_Chunk_tag).
-- The image itself is contained in the IDAT chunk(s).
--
-- Steps for decoding an image (step numbers are from the ISO standard):
--
-- 10: Inflate deflated data; at each output buffer (slide),
-- process with step 9.
-- 9: Read filter... |
814 | ada | 15 | mgrojo/adalib | system-storage_pools.ads | -- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-... |
815 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_net_gstnetclientclock_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstsystemclock_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h;
-- limited with GStreamer.GST_L... |
816 | ada | 0 | Roldak/OpenGLAda | tests/glfw2/glfw_test.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Display;
package body Glfw_Test is
procedure Key_To_Title (Subject : Glfw.Events.Keys.Key;
Action : Glfw.Events.Button_State) is
use type Glfw.Events.Button_Sta... |
817 | ada | 2 | timboudreau/netbeans-contrib | ada.editor/test/unit/data/subprogram_declarations.adb | <gh_stars>1-10
--
-- 6.1 Subprogram Declarations
--
-- NOTE: This module is not compilation is used only for testing purposes
--
package Subprogram_Declarations is
-- Examples of subprogram declarations:
procedure Traverse_Tree;
procedure Increment(X : in out Integer);
procedure Right_Indent(Margin : ... |
818 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-list_templates-t.ads | <filename>generated/natools-static_maps-web-list_templates-t.ads
-- Generated at 2015-08-01 13:43:50 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-list_templates-maps.sx
function Natools.Static_Maps.Web.List_Templates.T
return Boolean;
pragma Pure (Natools.Static_Maps.Web.List_Templates.T);
|
819 | ada | 24 | svn2github/matreshka | source/web/soap/web_services-soap-clients.ads | <filename>source/web/soap/web_services-soap-clients.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
820 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/switch.adb | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
821 | ada | 1 | mullikine/RosettaCodeData | Task/Pig-the-dice-game/Ada/pig-the-dice-game-3.ada | with Pig, Ada.Text_IO;
procedure Play_Pig is
use Pig;
type Hand is new Actor with record
Name: String(1 .. 5);
end record;
function Roll_More(A: Hand; Self, Opponent: Player'Class) return Boolean;
function Roll_More(A: Hand; Self, Opponent: Player'Class) return Boolean is
Ch: Character :=... |
822 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/globe_3d-bsp.ads | <reponame>ForYouEyesOnly/Space-Convoy
----------------------------------
-- Binary Space Partition (BSP) --
----------------------------------
--
-- Changes:
--
-- 31 - Mar - 2008 : comment : node_id also meant for use with I/O
-- 14 - Oct - 2006 : created
package GLOBE_3D.BSP is
type BSP_node;
... |
823 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-wwunio.ads | <reponame>vidkidz/crossbridge
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
824 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-ctrl_c.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/ada/g-ctrl_c.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
825 | ada | 236 | jquorning/septum | src/common/sp-progress.adb | <filename>src/common/sp-progress.adb
with Ada.Calendar;
with Ada.Strings.Fixed;
with Progress_Indicators.Spinners;
with SP.Terminal;
with Trendy_Terminal.VT100;
package body SP.Progress is
task body Update_Progress is
Spinner : PI.Spinners.Spinner := PI.Spinners.Make (PI.Spinners.Normal, 1);
... |
826 | ada | 0 | thomas070605/shoot-n-loot | src/monsters.adb | -- Shoot'n'loot
-- Copyright (c) 2020 <NAME>
with Game_Assets.Tileset;
with Game_Assets.Tileset_Collisions;
with Game_Assets.Misc_Objects;
with GESTE_Config; use GESTE_Config;
with GESTE.Tile_Bank;
with GESTE.Sprite.Animated;
with Sound;
package body Monsters is
package Item renames Game_Assets.Misc_Objects.I... |
827 | ada | 24 | svn2github/matreshka | source/amf/ocl/amf-ocl-iterator_exps-collections.ads | <reponame>svn2github/matreshka<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
828 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-graphics-text.ads | <reponame>Fabien-Chouteau/ASFML
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2018 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for any dama... |
829 | ada | 0 | Roldak/OpenGLAda | src/glfw/v2/glfw-events-mouse.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
with Glfw.Enums;
package body Glfw.Events.Mouse is
function Pressed (Query : Button) return Boolean is
begin
return API.Get_Mouse_Button (Query) = Events.Press;
end Pressed;
... |
830 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/sem.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
831 | ada | 33 | ytomino/drake | source/image/required/s-valwch.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_WChar is
pragma Pure;
-- (s-wchcon.ads)
type WC_Encoding_Method is range 1 .. 6;
-- required for Wide_Character'Value by compiler (s-valwch.ads)
function Value_Wide_Character (Str : String; EM : WC_Encoding... |
832 | ada | 0 | Letractively/ada-util | src/util-refs.ads | <gh_stars>0
-----------------------------------------------------------------------
-- util-refs -- Reference Counting
-- Copyright (C) 2010, 2011 <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... |
833 | ada | 0 | aeszter/sharepoint2ics | src/seminar.ads | <reponame>aeszter/sharepoint2ics<filename>src/seminar.ads<gh_stars>0
package Seminar is
pragma Pure;
end Seminar;
|
834 | ada | 0 | dpr1005/Tiempo-Real-Ejercicios | Practica 03/P03_Crea_Tarea/obj/b__crea_tarea.adb | pragma Warnings (Off);
pragma Ada_95;
pragma Source_File_Name (ada_main, Spec_File_Name => "b__crea_tarea.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__crea_tarea.adb");
pragma Suppress (Overflow_Check);
with System.Restrictions;
with Ada.Exceptions;
package body ada_main is
E066 : Sh... |
835 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada-server/mojang-sessions/src/server/com-github-asyncmc-mojang-sessions-ada-server-model-skeletons.adb | -- Mojang Session 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... |
836 | ada | 30 | jrmarino/AdaBase | testcases/multiquery/multiquery.adb | with AdaBase;
with Connect;
with Ada.Text_IO;
with Ada.Exceptions;
procedure MultiQuery is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package EX renames Ada.Exceptions;
numrows : AdaBase.Affected_Rows;
setting : Boolean;
nextone : Boolean;
SQL : constant String :=
"... |
837 | ada | 24 | svn2github/matreshka | testsuite/xml/xmlconf-testsuite_handlers.adb | <filename>testsuite/xml/xmlconf-testsuite_handlers.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
838 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-targets-gtkmat.adb | <reponame>stcarrez/mat
-----------------------------------------------------------------------
-- mat-targets-gtkmat - Gtk target management
-- 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 compl... |
839 | ada | 0 | optikos/oasis | source/nodes/program-nodes-for_loop_statements.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Loop_Parameter_Specifications;
with Program.Elements.G... |
840 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization10.ads | with Loop_Optimization10_Pkg; use Loop_Optimization10_Pkg;
package Loop_Optimization10 is
type Dual_Axis_Type is (One, Two);
type Array_Real_Type is array (Dual_Axis_Type) of Float;
type Array_Limit_Type is array (Dual_Axis_Type) of Limit_Type;
function F (Low, High : in Array_Real_Type) return Arra... |
841 | ada | 1 | GauBen/Arbre-Genealogique | src/scenario_graphe.adb | <filename>src/scenario_graphe.adb
with Graphe;
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
procedure Scenario_Graphe is
subtype T_Etiquette_Sommet is Integer;
type T_Etiquette_Arete is
(A_Pour_Parent, A_Pour_Enfant, A_Pour_Frere, A_Pour_Conjoint);
packa... |
842 | ada | 30 | jrmarino/AdaBase | src/statements/adabase-statement-base-sqlite.adb | <reponame>jrmarino/AdaBase<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package body AdaBase.Statement.Base.SQLite is
-------------------
-- log_problem --
-------------------
procedure log_problem
(statement : SQLite_s... |
843 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-progress_bar.ads | <filename>ada/original_2008/ada-gui/agar-gui-widget-progress_bar.ads
with agar.core.types;
package agar.gui.widget.progress_bar is
use type c.unsigned;
type type_t is (PROGRESS_BAR_HORIZ, PROGRESS_BAR_VERT);
for type_t use (PROGRESS_BAR_HORIZ => 0, PROGRESS_BAR_VERT => 1);
for type_t'size use c.unsigned'si... |
844 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-nuelfu.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
845 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-strings-handlers-portable__32.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
846 | ada | 24 | svn2github/matreshka | source/xml/templates/xml-templates-streams.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
847 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-votes/src/awa-votes-modules.ads | -----------------------------------------------------------------------
-- awa-votes-modules -- Module votes
-- Copyright (C) 2013, 2014, 2018 <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 Licen... |
848 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/tagged_type_pkg.adb | package body Tagged_Type_Pkg is
function Pass_TT_Access (Obj : access TT'Class) return access TT'Class is
begin
if Obj = null then
return null;
else
-- The implicit conversion in the assignment to the return object
-- must fail if Obj's actual is not a librar... |
849 | ada | 4 | faelys/gela-asis | source/asis/spec/standard.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 --
-- ... |
850 | ada | 20 | charlie5/lace | 1-base/math/source/precision/float/utility/float_math-random.ads | with
any_Math.any_Random;
package float_Math.Random is new float_Math.any_Random;
|
851 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Morse-code/Ada/morse-code-3.ada | with Morse; use Morse;
procedure Morse_Tx is
begin
Morsebeep (Convert ("Science sans Conscience"));
end Morse_Tx;
|
852 | ada | 0 | glencornell/ada-object-framework | examples/object_hierarchy/labels.adb | <gh_stars>0
with Ada.Text_Io;
with Ada.Strings.Unbounded;
package body Labels is
procedure Paint_Event (This : in out Label'Class) is
begin
Ada.Text_Io.Put_Line("Labels.Paint_Event() called");
Ada.Text_Io.Put_Line(" Label_Text = """ & Ada.Strings.Unbounded.To_String(This.Label_Text.Get) & """");... |
853 | ada | 3 | daveshields/AdaEd | bugs/bug07b.ada | <filename>bugs/bug07b.ada
with u1;
package u3 is
type t is new u1.t;
end u3;
|
854 | ada | 80 | thindil/steamsky | src/ui/errordialog.ads | -- 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... |
855 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/haswell_shared/hw-gfx-gma-connectors.adb | <reponame>fabiojna02/OpenCellular<filename>firmware/coreboot/3rdparty/libgfxinit/common/haswell_shared/hw-gfx-gma-connectors.adb<gh_stars>1-10
--
-- Copyright (C) 2015-2017 secunet Security Networks AG
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Pu... |
856 | ada | 33 | ytomino/drake | source/numerics/a-numdis.adb | <gh_stars>10-100
with System.Long_Long_Elementary_Functions;
with System.Long_Long_Integer_Types;
package body Ada.Numerics.Distributions is
use type System.Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Long_Long_Unsigned is
System.Long_Long_Integer_Types.Long_Long_Unsigned;
function popcountll (... |
857 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c94008a.ada | -- C94008A.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... |
858 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/case_null.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body Case_Null is
procedure P1 (X : T) is
begin
case X is
when S1 => -- { dg-error "not.*static" }
null;
when e =>
null;
when others =>
null;
end case;
en... |
859 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/tms570ls31x/config.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
860 | ada | 79 | Roldak/OpenGLAda | src/glfw/v3/glfw-monitors.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Interfaces.C.Strings;
with Glfw.API;
package body Glfw.Monitors is
function Monitors return Monitor_List is
use type API.Address_List_Pointers.Pointer;
Count : aliased Interfaces.C.int;... |
861 | ada | 0 | ALPHA-60/ada-keystore | src/keystore.ads | <filename>src/keystore.ads<gh_stars>0
-----------------------------------------------------------------------
-- keystore -- Ada 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 complian... |
862 | ada | 0 | Letractively/ada-asf | src/asf-views-nodes.ads | -----------------------------------------------------------------------
-- asf-views-nodes -- Facelet node tree representation
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
863 | ada | 0 | 0xA1/pi-spi | spec/stdint_h.ads | <filename>spec/stdint_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package stdint_h is
-- unsupported macro: INT8_MIN (-128)
-- unsupported macro: INT16_MIN (-32767-1)
-- unsupported macro: INT32_MIN (-2147483647-1)
-- unsupporte... |
864 | ada | 26 | damaki/libkeccak | tests/unit_tests/keccakf_suite.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2016, <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... |
865 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/rident.ads | <filename>llvm-gcc-4.2-2.9/gcc/ada/rident.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
866 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-sfp-stm32g474/gnarl/s-bbtiev.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
867 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-wtiopi.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
868 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-coprnu.ads | <reponame>vidkidz/crossbridge<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
869 | ada | 1 | lkujaw/ada-blake2 | b2stest/spark_io.ads | -----------------------------------------------------------------------
-- Copyright 2012 Altran Praxis Limited --
-- Copyright 2021 <NAME> --
-- --
-- This file is part ... |
870 | ada | 12 | TUM-EI-RCS/StratoX | software/boot/boot.adb | with Main;
with Config.Tasking;
with Crash; -- must be here, to activate last_chance_handler
with LED_Manager;
pragma Unreferenced (Crash); -- protect the "with" above
-- the entry point after POR
procedure boot with SPARK_Mode is
pragma Priority (Config.Tasking.TASK_PRIO_MAIN);
Self_Test_Passed : Boolean := Fa... |
871 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd2a23a.ada | -- CD2A23A.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... |
872 | ada | 3 | charlie5/aIDE | source/types/adam-component_definition.adb | with
AdaM.Factory;
package body AdaM.component_Definition
is
-- Storage Pool
--
record_Version : constant := 1;
pool_Size : constant := 5_000;
package Pool is new AdaM.Factory.Pools (".adam-store",
"component_Definitions",
... |
873 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/lv-hal-disp.ads | with Lv.Color;
with Lv.Area;
private with System;
package Lv.Hal.Disp is
type Color_Array is
array (0 .. Natural'Last) of aliased Lv.Color.Color_T with
Convention => C;
type Disp_Drv_T is record
-- Write the internal buffer (VDB) to the display. 'lv_flush_ready()' has
-- to be calle... |
874 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/common/timeout.ads | <reponame>ekoeppen/STM32_Generic_Ada_Drivers<filename>examples/common/timeout.ads
with Ada.Real_Time; use Ada.Real_Time;
package Timeout is
procedure Start (Timeout_Time : out Time ; Duration : Time_Span);
function Timed_Out (Timeout_Time : Time) return Boolean;
end Timeout;
|
875 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-hexagon.ads | package openGL.Model.hexagon
--
-- Provides an abstract model of a hexagon.
--
is
type Item is abstract new openGL.Model.item with -- TODO: Make private.
record
Radius : Real := 1.0;
end record;
subtype site_Id is Integer range 1 .. 6;
type Sites is array (site_Id) of Vector_3;... |
876 | ada | 0 | iyan22/AprendeAda | ejercicios3/insertar_elemento_en_pos.adb | with datos; use datos;
with rotar_derecha;
procedure insertar_elemento_en_pos (num, pos: in Integer; R: in out Lista_Enteros) is
-- pre: la posicion de insercion sera menor o igual
-- que el numero de elementos que contenga la lista +1
-- post: el elemento quedara insertado en la posicion de insercion
... |
877 | ada | 0 | usainzg/EHU | MP/LAB_001_Opt/Ver_Substring_Opcional.adb | <reponame>usainzg/EHU<filename>MP/LAB_001_Opt/Ver_Substring_Opcional.adb<gh_stars>0
WITH Ada.Text_Io; USE Ada.Text_Io;
procedure Ver_Substring_Opcional is
-- salida: 11 booleanos(SE)
-- post: corresponden a cada uno de los casos de pruebas dise�ados.
-- pre: { True }
function Substring_Sub(
S : Stri... |
878 | ada | 33 | ytomino/drake | source/calendar/machine-w64-mingw32/s-naexti.adb | with System.Native_Time;
with C.winbase;
with C.windef;
package body System.Native_Execution_Time is
use type C.windef.WINBOOL;
-- implementation
function Clock return CPU_Time is
CreationTime : aliased C.windef.FILETIME;
ExitTime : aliased C.windef.FILETIME;
KernelTime : aliased C.windef.... |
879 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl/src/vadefs_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with System;
package vadefs_h is
subtype uu_gnuc_va_list is System.Address; -- c:\home\ochem\install\bin\../lib/gcc/i686-pc-mingw32/4.7.3/../../../../i686-pc-mingw32/include/vadefs.h:24
subtype va_list is uu_gnuc_va_list; -- c:... |
880 | ada | 1 | reznikmm/network | source/network-generic_promises.ads | <gh_stars>1-10
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Finalization;
generic
type Resolve_Element is private;
-- Type for reolving a promise
type Reject_Element is private;
-- Type for r... |
881 | ada | 7,053 | Elon143/Amass | resources/scripts/api/c99.ads | <reponame>Elon143/Amass
-- Copyright 2020-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "C99"
type = "api"
function start()
set_rate_limit(10)
end
function check()
local c
local cfg ... |
882 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/freeze.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
883 | ada | 30 | jscparker/math_packages | linear_algebra/jacobi_eigen_tst_2.adb |
-- Test Jacobi Eigendecomposition of real valued square matrices.
-- Uses Intel's 18 digit Real to estimate eigval err in 15 digit real,
-- so not very portable.
with Jacobi_Eigen;
with Test_Matrices;
with Text_IO; use Text_IO;
procedure jacobi_eigen_tst_2 is
type Index is range 1 .. 138;
-- the test matrix ... |
884 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/comperr.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
885 | ada | 0 | AsyncMC/Mojang-API-Libs | generated-sources/ada/mojang-authentication/src/model/com-github-asyncmc-mojang-authentication-ada-model-models.ads | -- 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... |
886 | ada | 20 | charlie5/lace | 4-high/gel/source/gel.adb | package body GEL
is
function to_Asset (Self : in String) return asset_Name
is
the_Name : String (asset_Name'Range);
begin
the_Name (1 .. Self'Length) := Self;
the_Name (Self'Length + 1 .. the_Name'Last) := (others => ' ');
return asset_Name (the_Name);
end to_Asset;... |
887 | ada | 20 | charlie5/lace | 1-base/math/source/generic/pure/geometry/trigonometry/cached_rotation.ads | <filename>1-base/math/source/generic/pure/geometry/trigonometry/cached_rotation.ads
with
ada.Numerics.generic_elementary_Functions;
generic
type Float_type is digits <>;
type Matrix_2x2_type is private;
with package float_elementary_Functions is new ada.Numerics.generic_elementary_Functions (Floa... |
888 | ada | 0 | optikos/oasis | source/oasis/program-elements-extension_aggregates.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Lexical_Elements;
with Program.Elements.Record_Component_Associations;
package Program.Elements.Extens... |
889 | ada | 3 | pmderodat/libyaml-ada | src/yaml.adb | <filename>src/yaml.adb<gh_stars>1-10
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
package body YAML is
use type C_Int;
procedure Deallocate is new Ada.Unchecked_Deallocation
(String, String_Access);
procedure Deallocate is new Ada.Unchecked_Deallocation
(Document_Type, Document_... |
890 | ada | 17 | jrmarino/ravensource | bucket_55/aws/patches/patch-src_core_aws-net.adb | <filename>bucket_55/aws/patches/patch-src_core_aws-net.adb<gh_stars>10-100
--- src/core/aws-net.adb.orig 2021-05-19 05:14:31 UTC
+++ src/core/aws-net.adb
@@ -655,7 +655,7 @@ package body AWS.Net is
-- to be shure that it is S1 and S2 connected together
- exit when Peer_Addr (STC (S2)) = Local_Hos... |
891 | ada | 0 | hannesb0/rtpl18 | src/lab-code/select-accept/src/main.adb | with Ada.text_io; use Ada.Text_IO;
procedure main is
task type Server_Task is
entry A;
entry B;
end Server_Task;
task body Server_Task is
begin
loop
Put_Line("Server starts next cycle");
select
accept A do
Put_Line("A start");
d... |
892 | ada | 1 | mapcode-foundation/mapcode-ada | src/mapcodes.ads | <filename>src/mapcodes.ads<gh_stars>1-10
-- -----------------------------------------------------------------------------
-- Copyright (C) 2003-2019 Stichting Mapcode Foundation (http://www.mapcode.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complia... |
893 | ada | 8 | pvrego/adaino | examples/usart_interruptive_echo_issue_dbg/src/test.ads | <filename>examples/usart_interruptive_echo_issue_dbg/src/test.ads
package TEST is
USART1RX : constant String := "__vector_36";
procedure Handle_Interrupt_USART1_RX;
pragma Machine_Attribute
(Entity => Handle_Interrupt_USART1_RX,
Attribute_Name => "signal");
pragma Export
(Conventio... |
894 | ada | 0 | Fabien-Chouteau/ASFML | tests/renderwindow/main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Sf.Window.Window; use Sf, Sf.Window, Sf.Window.Window;
with Sf.Window.VideoMode; use Sf.Window.VideoMode;
with Sf.Window.Event; use Sf.Window.Event;
with Sf.Window.Keyboard; use Sf.Window.Keyboard;
with Sf.System.Sleep; use Sf.System.Sleep;
with Sf.System.Tim... |
895 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-italian.adb | <filename>src/lang/stemmer-italian.adb<gh_stars>1-10
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Italian is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Wa... |
896 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-stwibo.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/gcc/gcc/ada/a-stwibo.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
897 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/tlsf-block.ads | <filename>tlsf/src/tlsf-block.ads
package TLSF.Block with SPARK_Mode, Pure, Preelaborate is
end TLSF.Block;
|
898 | ada | 0 | optikos/oasis | source/oasis/program-library_unit_declarations.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Compilation_Unit_Vectors;
with Program.Compilation_Units;
with Program.Library_Items;
with Program.Library_Unit_Bodies;
package Program.L... |
899 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack16_pkg.ads | <reponame>best08618/asylo
package Pack16_Pkg is
N : Natural := 16;
end Pack16_Pkg;
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.