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
27,700
ada
1
reznikmm/network
examples/listeners.adb
-- Copyright (c) 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Text_IO; with Ada.Wide_Wide_Text_IO; with Ada.Streams; with League.String_Vectors; with League.Characters.Latin; with League.Text_Codecs; wit...
27,701
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/iface1.ads
<gh_stars>1-10 generic type Data is private; package Iface1 is type Future is synchronized interface; type Any_Future is access all Future; procedure Get (This : in out Future; P : out Data) is abstract; procedure Set (This : in out Future; P : in Data) is abstract; type Reusable_Future is synchroni...
27,702
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gsttypefindfactory_h.ads
<reponame>persan/A-gst 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_gstpluginfeature_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gsttypefind_h; with System; limite...
27,703
ada
81
twdroeger/ada-awa
awa/plugins/awa-blogs/regtests/awa-blogs-modules-tests.adb
----------------------------------------------------------------------- -- awa-blogs-tests -- Unit tests for blogs module -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exce...
27,704
ada
60
Letractively/ada-util
samples/mapping.adb
<gh_stars>10-100 ----------------------------------------------------------------------- -- mapping -- Example of serialization mappings -- Copyright (C) 2010, 2011, 2012, 2014 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
27,705
ada
0
My-Colaborations/ada-util
regtests/util-beans-objects-tests.adb
----------------------------------------------------------------------- -- util-beans-objects-tests -- Unit tests for objects -- Copyright (C) 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 with the ...
27,706
ada
3
malymato/openapi-generator
samples/client/petstore/ada/src/model/samples-petstore-models.ads
-- OpenAPI Petstore -- This is a sample server Petstore server. For this sample, you can use the api key `special_key` to test the authorization filters. -- -- OpenAPI spec version: 1.0.0 -- -- -- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0-SNAPSHOT. -- https://openapi-generator.tech -- Do n...
27,707
ada
0
charlesdaniels/libagar
ada/core/agar-object.ads
------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . O B J E C T -- -- S p e c -- ----...
27,708
ada
0
balintsoos/LearnAda
gyak/gyak3/szummazas.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Szummazas is type Index is new Integer; type Elem is new Integer; type Tomb is array (Index range <>) of Elem; function Szumma ( T: Tomb ) return Elem is S: Elem := 0; begin for I in T'Range loop S := S + T(I); ...
27,709
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ststbo.ads
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ststbo.ads ------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- ...
27,710
ada
0
Letractively/ada-asf
src/asf-views-nodes-core.ads
<reponame>Letractively/ada-asf ----------------------------------------------------------------------- -- nodes-core -- Core nodes -- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
27,711
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-nselfu.ads
<filename>llvm-gcc-4.2-2.9/gcc/ada/a-nselfu.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
27,712
ada
30
Componolit/libsparkcrypto
tests/lsc_internal_test_ripemd160.adb
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2018 Componolit GmbH -- Copyright (C) 2010, <NAME> -- Copyright (C) 2010, secunet Security Networks AG -- All rights reserved. -- -- Redistribution and use in source and...
27,713
ada
4
Lucretia/raytracer_challenge
src/features/steps/rtch-colours-steps.adb
<reponame>Lucretia/raytracer_challenge with BDD.Asserts; use BDD.Asserts; package body RTCH.Colours.Steps is procedure Given_Colour_C (Red, Green, Blue : Float) is begin C := Make_Colour (Red, Green, Blue); end Given_Colour_C; procedure Then_C_Red_Is (Red : Float) is begin Assert (C.Red = ...
27,714
ada
12
TUM-EI-RCS/StratoX
software/hal/boards/common/hil/hil-buzzer.ads
<reponame>TUM-EI-RCS/StratoX<gh_stars>10-100 -- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: <NAME> (<EMAIL>> with Units; -- @summary -- Target-independent specification for simple HIL of Piezo Buzzer package HIL.Buzzer with SPAR...
27,715
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/examples/monitor/p5566/flash.adb
<filename>bb-runtimes/examples/monitor/p5566/flash.adb ------------------------------------------------------------------------------ -- -- -- GNAT EXAMPLE -- -- ...
27,716
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/g-boubuf.adb
<reponame>djamal2727/Main-Bearing-Analytical-Model ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
27,717
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-unit.adb
<filename>ada/original_2008/ada-gui/agar-gui-unit.adb package body agar.gui.unit is package cbinds is function find (key : cs.chars_ptr) return unit_const_access_t; pragma import (c, find, "AG_FindUnit"); function best (unit_group : unit_const_access_t; n : c.double) return unit_...
27,718
ada
33
ytomino/drake
source/strings/a-sgecin.adb
with Ada.Strings.Naked_Maps.Case_Folding; function Ada.Strings.Generic_Equal_Case_Insensitive (Left, Right : String_Type) return Boolean is Mapping : constant not null Naked_Maps.Character_Mapping_Access := Naked_Maps.Case_Folding.Case_Folding_Map; Left_Last : Natural := Left'First - 1; Right_Last : N...
27,719
ada
0
orb-zhuchen/Orb
support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-suteio.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
27,720
ada
1
LaudateCorpus1/RosettaCodeData
Task/Monte-Carlo-methods/Ada/monte-carlo-methods.ada
with Ada.Text_IO; use Ada.Text_IO; with Ada.Numerics.Float_Random; use Ada.Numerics.Float_Random; procedure Test_Monte_Carlo is Dice : Generator; function Pi (Throws : Positive) return Float is Inside : Natural := 0; begin for Throw in 1..Throws loop if Random (Dice) ** 2...
27,721
ada
0
reznikmm/gela
source/oasis/program-elements-with_clauses.ads
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Clauses; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.With_Clauses is prag...
27,722
ada
0
Letractively/ada-asf
src/asf-responses-mockup.adb
----------------------------------------------------------------------- -- asf.responses -- ASF Requests -- 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 License. -- Yo...
27,723
ada
0
VitalijBondarenko/notifyada
src/notify.adb
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2021 <NAME> <<EMAIL>> -- -- -- ----------------------------...
27,724
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-point.ads
<filename>ada/original_2008/ada-gui/agar-gui-point.ads package agar.gui.point is type point_t is record x : c.int; y : c.int; end record; type point_access_t is access all point_t; pragma convention (c, point_t); pragma convention (c, point_access_t); end agar.gui.point;
27,725
ada
0
Rahul24-06/ADA-Line-Follower-using-STM32-Nucleo-64
pincon.adb
with reg; package body pinconfig is use type reg.Word; procedure Enable_Input (Pin : in Pin_ID; Mode : in Input_Mode) is begin case Pin is when Pin_2 => reg.RCC_AHB1ENR := reg.RCC_AHB1ENR or 2#10_0000#; -- bit 5 reg.GPIOF_MODER...
27,726
ada
0
Letractively/ada-util
src/os-linux/util-processes-os.adb
<gh_stars>0 ----------------------------------------------------------------------- -- util-processes-os -- System specific and low level operations -- Copyright (C) 2011, 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
27,727
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35507a.ada
-- C35507A.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...
27,728
ada
0
bhayward93/Ada-Traffic-Light-Sim
icasrc/perpendiculardirections.adb
<reponame>bhayward93/Ada-Traffic-Light-Sim with HWIF;use HWIF; with HWIF_Types; use HWIF_Types; --with Ada.Text_IO; use Ada.Text_IO; procedure DirectionHelper is type DirectionArray is array(North, East, South, West) of Direction; begin; function PerpendicularDirections(dir : DirectionArray) return DirectionArr...
27,729
ada
0
faelys/natools
src/natools-s_expressions-printers.ads
------------------------------------------------------------------------------ -- Copyright (c) 2013-2015, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
27,730
ada
4
onox/xoshiro
src/xoshiro128.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2022 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
27,731
ada
18
jquorning/ada-wiki
src/wiki-render-html.adb
----------------------------------------------------------------------- -- wiki-render-html -- Wiki HTML renderer -- Copyright (C) 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
27,732
ada
0
Letractively/ada-util
regtests/util-streams-sockets-tests.adb
----------------------------------------------------------------------- -- util-streams-sockets-tests -- Unit tests for socket streams -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance ...
27,733
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/widechar.adb
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
27,734
ada
1
vidkidz/crossbridge
gdb-7.3/gdb/testsuite/gdb.ada/uninitialized_vars/parse_controlled.ads
-- Copyright 2009, 2011 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 version. -- --...
27,735
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/prj-env.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
27,736
ada
81
fuzzysloth/ada-awa
awa/plugins/awa-mail/src/aws/awa-mail-clients-aws_smtp-initialize_ssl.adb
<filename>awa/plugins/awa-mail/src/aws/awa-mail-clients-aws_smtp-initialize_ssl.adb ----------------------------------------------------------------------- -- awa-mail-clients-aws_smtp-initialize -- Initialize SMTP client with SSL support -- Copyright (C) 2016 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed un...
27,737
ada
3
daveshields/AdaEd
bugs/bug06a.ada
<reponame>daveshields/AdaEd<gh_stars>1-10 package u1 is type T is private; private type rep is record tag : boolean; val : integer; end record; type T is access rep; end u1;
27,738
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simpleada.ads
<filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simpleada.ads package SimpleAda is type Device is new Integer; end SimpleAda;
27,739
ada
1
danva994/ASFML-1.6
include/sf-network-selector.ads
<filename>include/sf-network-selector.ads -- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 <NAME> (<EMAIL>) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will th...
27,740
ada
1
skill-lang/skillAdaTestSuite
test/constants/test_constants.ads
<filename>test/constants/test_constants.ads package Test_Constants is end Test_Constants;
27,741
ada
1
mullikine/RosettaCodeData
Task/List-comprehensions/Ada/list-comprehensions.ada
with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers.Doubly_Linked_Lists; procedure Pythagore_Set is type Triangles is array (1 .. 3) of Positive; package Triangle_Lists is new Ada.Containers.Doubly_Linked_Lists ( Triangles); use Triangle_Lists; function Find_List (Upper_Bound : Positive) return...
27,742
ada
0
persan/a-vulkan
src/gen/vulkan-low_level-vk_layer_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Vulkan.Low_Level.vulkan_core_h; with Interfaces.C.Strings; with System; package Vulkan.Low_Level.vk_layer_h is -- unsupported macro: VK_LAYER_EXPORT __attribute__((visibility("default"))) MAX_NUM_UNKNOWN_EXTS : constant := ...
27,743
ada
0
DrenfongWong/tkm-rpc
specs/ada/common/tkmrpc-request-ike-nc_create-convert.ads
with Ada.Unchecked_Conversion; package Tkmrpc.Request.Ike.Nc_Create.Convert is function To_Request is new Ada.Unchecked_Conversion ( Source => Nc_Create.Request_Type, Target => Request.Data_Type); function From_Request is new Ada.Unchecked_Conversion ( Source => Request.Data_Type, Targe...
27,744
ada
0
xeenta/learning-ada
src/002/greetings.ads
with Person; package Greetings is Unknown_Greeting : exception; Hello : constant String := "hello"; Hi : constant String := "hi"; Good_Morning : constant String := "good morning"; What_s_Up : constant String := "what's up"; procedure Swear (Greeting : String; ...
27,745
ada
0
alexcamposruiz/dds-requestreply
src/dds-patches/dds-domainparticipant_impl.adb
<reponame>alexcamposruiz/dds-requestreply -- (c) Copyright, Real-Time Innovations, $Date:: 2012-02-16 #$ -- All rights reserved. -- -- No duplications, whole or partial, manual or electronic, may be made -- without express written permission. Any such copies, or -- revisions thereof, must display this notice unal...
27,746
ada
33
ytomino/drake
source/strings/a-stzfun.ads
pragma License (Unrestricted); -- extended unit with Ada.Strings.Generic_Functions; package Ada.Strings.Wide_Wide_Functions is new Generic_Functions ( Character_Type => Wide_Wide_Character, String_Type => Wide_Wide_String, Space => Wide_Wide_Space); pragma Preelaborate (Ada.Strings.Wide_Wide_Funct...
27,747
ada
0
fintatarta/protypo
src/Internals/protypo-code_trees-interpreter-string_interpolation_handlers.ads
<filename>src/Internals/protypo-code_trees-interpreter-string_interpolation_handlers.ads with Protypo.Api.Engine_Values.Handlers; with Protypo.Api.Engine_Values.Parameter_Lists; with Ada.Tags; private package Protypo.Code_Trees.Interpreter.String_Interpolation_Handlers is use type Ada.Tags.Tag; type String_Int...
27,748
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-cc_add_certificate.adb
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Cc_Add_Certificate.Convert; with Tkmrpc.Response.Ike.Cc_Add_Certificate.Convert; package body Tkmrpc.Operation_Handlers.Ike.Cc_Add_Certificate is ------------------------------------------------------------------------- procedure Handle (Req...
27,749
ada
33
ytomino/drake
source/directories/machine-w64-mingw32/s-ndfina.adb
<filename>source/directories/machine-w64-mingw32/s-ndfina.adb with System.Zero_Terminated_WStrings; with C.string; with C.winnls; with C.winnt; package body System.Native_Directories.File_Names is use type C.size_t; -- see http://blogs.msdn.com/b/michkap/archive/2005/10/17/481600.aspx function NTFS_Compare ...
27,750
ada
0
VitalijBondarenko/notifyada
src/notify-notification.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014-2021 <NAME> <<EMAIL>> -- -- -- ----------------...
27,751
ada
60
RREE/ada-util
src/base/beans/util-beans-objects-maps.adb
<filename>src/base/beans/util-beans-objects-maps.adb ----------------------------------------------------------------------- -- util-beans-objects-maps -- Object maps -- Copyright (C) 2010, 2011, 2012, 2017, 2018, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "...
27,752
ada
0
Ekrekr/Adamazing
adamazing.adb
<reponame>Ekrekr/Adamazing with Ada.Text_IO; use Ada.Text_IO; with Maze; procedure Adamazing is Size : Integer; begin Put_Line("Enter Difficulty (1 to 25), you may have to zoom out."); -- Making the size an odd number improves impearance. Size := Integer'Value(Get_Line) * 10 + 1; Maze (Size); Put_Li...
27,753
ada
12
jquorning/ada-asf
src/asf-events-faces-actions.adb
<filename>src/asf-events-faces-actions.adb ----------------------------------------------------------------------- -- asf-events-faces-actions -- Actions Events -- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -...
27,754
ada
0
cocolab8/cocktail
reuse/ada/stringm.adb
-- $Id: StringM.mi,v 1.5 1993/08/18 15:06:51 grosch rel $ -- $Log: StringM.mi,v $ -- Ich, <NAME>, Informatiker, Sept. 1994 with DynArray, Strings, Text_Io; use Strings, Text_Io; package body StringM is package Int_Io is new Integer_IO (Integer); use Int_Io; package Char_DA is new DynArray (Character); use Char_...
27,755
ada
20
charlie5/lace
3-mid/opengl/source/lean/opengl-texture.ads
with ada.unchecked_Conversion, ada.Strings.unbounded.Hash, ada.Containers.hashed_Maps; package openGL.Texture -- -- Provides openGL textures. -- is -- Object - an openGL texture 'object' -- type Object is tagged private; type Objects is array (Positive range <>) of Object; null_Objec...
27,756
ada
9
jhumphry/SPARK_NORX
src/norx-compare_tags.ads
<gh_stars>1-10 -- NORX.Compare_Tags -- Compare two Tag_Type values using a constant-time approach. This is split out -- into a separate child unit from NORX so that different compilation flags can -- be used. It is advisable to prevent optimisation of this function or else -- a clever compiler might use a short-circui...
27,757
ada
0
caqg/linux-home
.emacs.d/elpa/ada-ref-man-2012.5/progs/arm_frmd.ads
private package ARM_Format.Data is -- -- Ada reference manual formatter (ARM_Form). -- -- This package contains various data used by the input file parser. -- -- --------------------------------------- -- Copyright 2011, 2012 AXE Consultants. All rights reserved. -- P.O. Box 1...
27,758
ada
1
Blady-Com/Gate3
src/gate3.adb
<reponame>Blady-Com/Gate3 ------------------------------------------------------------------------------ -- -- Gate3 code sketcher : -- -- Parse a Glade3's XML project file and generate the Ada code -- to test User Interface. -- -- Gate3 is limited in scope and does not generate User_Handler -- callbacks. It is ju...
27,759
ada
33
ytomino/drake
source/a-assert.ads
<filename>source/a-assert.ads pragma License (Unrestricted); package Ada.Assertions is pragma Pure; Assertion_Error : exception with Export, Convention => Ada, External_Name => "assertion_error"; -- modified -- Assert reports the source location if it's called without a message. -- procedure Asse...
27,760
ada
24
svn2github/matreshka
source/league/league-application-initialize_arguments_environment__windows.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
27,761
ada
0
fintatarta/protypo
src/API/protypo-api-engine_values-array_wrappers.ads
with Protypo.Api.Engine_Values.Engine_Value_Array_Wrappers; with Protypo.Api.Engine_Values.Engine_Value_Vectors; with Protypo.Api.Engine_Values.Handlers; -- -- ## What is this? -- -- This is a generic package that allows you to export to the template -- an "array of something". -- -- The wrapper implements the `Ambiva...
27,762
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/prompts/135_visibility/types-strings.ads
<filename>courses/fundamentals_of_ada/labs/prompts/135_visibility/types-strings.ads package Types.Strings is Exponent_Digits : Natural := 2; Digits_After_Decimal : Natural := 3; function To_String (Value : Miles_T) return String; function To_String (Value : Hours_T) return Strin...
27,763
ada
5
jhumphry/auto_counters
src/flyweights/flyweights-basic_hashtables.adb
-- flyweights-basic_hashtables.adb -- A package of non-task-safe hash tables for the Flyweights packages -- Copyright (c) 2016, <NAME> -- -- 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 and this pe...
27,764
ada
1
LaudateCorpus1/RosettaCodeData
Task/History-variables/Ada/history-variables-1.ada
private with Ada.Containers.Indefinite_Vectors; generic type Item_Type (<>) is private; package History_Variables is type Variable is tagged limited private; -- set and get current value procedure Set(V: in out Variable; Item: Item_Type); function Get(V: Variable) return Item_Type; -- number of ite...
27,765
ada
1
mullikine/RosettaCodeData
Task/Collections/Ada/collections-5.ada
with Ada.Containers.Vectors; use Ada.Containers; procedure Vector_Example is package Vector_Pkg is new Vectors (Natural, Integer); use Vector_Pkg; V : Vector; begin V.Append (1); V.Append (2); V.Append (3); end Vector_Example;
27,766
ada
1
LaudateCorpus1/RosettaCodeData
Task/Pernicious-numbers/Ada/pernicious-numbers-1.ada
with Ada.Text_IO, Population_Count; use Population_Count; procedure Pernicious is Prime: array(0 .. 64) of Boolean; -- we are using 64-bit numbers, so the population count is between 0 and 64 X: Num; use type Num; Cnt: Positive; begin -- initialize array Prime; Prime(I) must be true if and only if I ...
27,767
ada
1
TNO/Rejuvenation-Ada
tests/src/assert_ast.ads
<gh_stars>1-10 with Libadalang.Common; use Libadalang.Common; package Assert_AST is procedure Assert_Equal_AST (Expected_String, Actual_String : String; Rule : Grammar_Rule; Message : String); end Assert_AST;
27,768
ada
9
98devin/ada-wfc
demo/src/util.adb
with Ada.Containers.Indefinite_Vectors; with Imago.IL; with Imago.ILU; use Imago.IL; use Imago.ILU; use type Imago.IL.Bool; use type Imago.IL.UInt; with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with GNATCOLL.Strings; use GNATCOLL.Strings; with Ada.Strings.Maps; with ...
27,769
ada
0
corentingay/ada_epita
project/adl/boards/stm32_common/stm32f469disco/stm32-board.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
27,770
ada
0
persan/advent-of-code-2020
src/day-15/adventofcode-day_15.ads
<filename>src/day-15/adventofcode-day_15.ads<gh_stars>0 package Adventofcode.Day_15 is end Adventofcode.Day_15;
27,771
ada
7
Fabien-Chouteau/Giza
src/giza-widget-tabs.ads
<reponame>Fabien-Chouteau/Giza<filename>src/giza-widget-tabs.ads<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- Giza -- -- ...
27,772
ada
0
ytomino/gnat4drake
a-exctra.adb
<reponame>ytomino/gnat4drake<gh_stars>0 package body Ada.Exceptions.Traceback is function Get_PC (TB_Entry : System.Address) return Code_Loc is begin return TB_Entry; end Get_PC; end Ada.Exceptions.Traceback;
27,773
ada
3
charlie5/aIDE
source/adam-exception_handler.adb
<reponame>charlie5/aIDE<gh_stars>1-10 with AdaM.Block, AdaM.Factory; package body AdaM.exception_Handler is -- Storage Pool -- record_Version : constant := 1; max_Exceptions : constant := 5_000; package Pool is new AdaM.Factory.Pools (".adam-store", ...
27,774
ada
0
reznikmm/slimp
source/slim-messages-grfb.ads
<filename>source/slim-messages-grfb.ads -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package Slim.Messages.grfb is type Grfb_Message is new Message with private; -- Tells the client to adju...
27,775
ada
0
reznikmm/slimp
source/slim-messages-vers.ads
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Strings; package Slim.Messages.vers is type Vers_Message is new Message with private; not overriding procedure Set_Vers...
27,776
ada
2,662
nehalem501/gendev
tools/files/applib/contrib/ada/apacdemo.adb
------------------------------------------------------------------------------ -- File: apackdemo.adb -- Description: aPLib binding demo (Q&D!) -- Date/version: 24-Feb-2001 ; ... ; 9.III.1999 -- Author: <NAME> - <EMAIL> ----------------------------------------------------------------...
27,777
ada
52
onox/orka
orka/src/orka/implementation/orka-scenes-generic_scene_trees.adb
<reponame>onox/orka<gh_stars>10-100 -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://w...
27,778
ada
33
ytomino/drake
source/numerics/a-nusf19.ads
<filename>source/numerics/a-nusf19.ads pragma License (Unrestricted); -- BSD 3-Clause -- translated unit from SFMT (SFMT-params19937.h) with Ada.Numerics.SFMT; package Ada.Numerics.SFMT_19937 is new SFMT ( MEXP => 19937, POS1 => 122, SL1 => 18, SL2 => 1, SR1 => 11, SR2 => 1, ...
27,779
ada
0
xuedong/mini-ada
tests/typing/bad/testfile-record-3.adb
<filename>tests/typing/bad/testfile-record-3.adb with Ada.Text_IO; use Ada.Text_IO; procedure Test is type R is record Foo: R; end record; begin New_Line; end;
27,780
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f0/rfm69_moter/modem/peripherals.ads
with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.USART; with STM32GD.USART.Peripheral; with STM32GD.SPI; with STM32GD.SPI.Peripheral; with Drivers; with Drivers.RFM69; with Ada.Interrupts.Names; package Peripherals is package GPIO renames STM32GD.GPIO; package RFM69_RESET is new GPIO.Pin (Pin => GPIO.Pin_...
27,781
ada
0
honno/code-solutions
university/language-concepts-labs/2/ada/overflow.adb
<reponame>honno/code-solutions<filename>university/language-concepts-labs/2/ada/overflow.adb with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Text_IO; use Text_IO; procedure Overflow is function GetPositiveInteger(varName : String) return Positive is R...
27,782
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/mlib-utl.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
27,783
ada
0
wookey-project/ewok-legacy
src/Ada/ewok-ipc.adb
-- -- Copyright 2018 The wookey project team <<EMAIL>> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http...
27,784
ada
6
yannickmoy/SPARKZumo
bsp/pwm.ads
<reponame>yannickmoy/SPARKZumo<gh_stars>1-10 pragma SPARK_Mode; with Types; use Types; -- @summary -- PWM interface -- -- @description -- This package gives an interface to the PWM hardware package Pwm is -- PWM Left Motor or PWM Right Motor -- @value Left left motor -- @value Right right motor type Pwm_Ind...
27,785
ada
19
jrcarter/Ada_GUI
Test/random_int-ui.ads
-- Ada_GUI version of Random_Int -- -- Copyright (C) 2021 by PragmAda Software Engineering -- -- Released under the terms of the 3-Clause BSD License. See https://opensource.org/licenses/BSD-3-Clause -- -- The (application-specific) user interface package Random_Int.UI is type Event_ID is (Generate, Quit); func...
27,786
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/narrowphase/impact-d3-triangle_callback-raycast.adb
<reponame>charlie5/lace with impact.d3.Matrix, impact.d3.Vector, impact.d3.Shape.convex.internal.polyhedral.triangle, impact.d3.collision.simplex_Solver.voronoi, impact.d3.collision.convex_penetration_depth_Solver.gjk_epa, impact.d3.collision.convex_Raycast, impact.d3.collision.convex_Rayc...
27,787
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/gl/gl-frustums.adb
<filename>Sources/Globe_3d/gl/gl-frustums.adb package body GL.Frustums is procedure Normalise (the_Planes : in out plane_Array) is use GL.Geometry; begin for Each in the_Planes'Range loop Normalise (the_Planes (Each)); end loop; end Normalise; function Current_Pla...
27,788
ada
18
jquorning/ada-wiki
src/wiki-parsers.ads
----------------------------------------------------------------------- -- wiki-parsers -- Wiki parser -- Copyright (C) 2011, 2015, 2016, 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...
27,789
ada
2
mgrojo/lsystem-editor
src/io/lse-io-drawing_area.adb
<filename>src/io/lse-io-drawing_area.adb ------------------------------------------------------------------------------- -- LSE -- L-System Editor -- Author: Heziode -- -- License: -- MIT License -- -- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person ...
27,790
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/renaming2_pkg1.ads
-- { dg-excess-errors "no code generated" } with Renaming2_Pkg2; with Renaming2_Pkg3; with Renaming2_Pkg4; package Renaming2_Pkg1 is package Impl is new Renaming2_Pkg3 (Base_Index_T => Positive, Value_T => Renaming2_Pkg2.Root); use Impl; package GP is new Renaming2_Pkg4 (Length_T => Impl.Length_T, Va...
27,791
ada
0
Letractively/ada-asf
src/asf-contexts-exceptions.ads
----------------------------------------------------------------------- -- asf-contexts-exceptions -- Exception handlers in faces context -- Copyright (C) 2011 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complian...
27,792
ada
19
jrcarter/Ada_GUI
strings_edit-time_conversions.adb
-- -- -- package Copyright (c) <NAME> -- -- Strings_Edit.Time_Conversions Luebeck -- -- Implementation Summer, 2016 -- -- ...
27,793
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/arm/nordic/nrf52/nrf52840/svd/a-intnam.ads
<reponame>JCGobbi/Nucleo-STM32G474RE -- -- Copyright (C) 2019, AdaCore -- -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- -- ...
27,794
ada
0
Tim-Tom/project-euler
Ada/src/Problem_38.adb
with Ada.Text_IO; with Ada.Integer_Text_IO; package body Problem_38 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; procedure Solve is subtype Digit is Integer range 1 .. 9; type Seen_Array is Array(Digit) of Boolean; seen : Seen_Array; current_number : Inte...
27,795
ada
0
skill-lang/adaCommon
src/skill-field_types-constant_types.adb
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ implementation of builtin field types -- -- |___/_|\_\_|_|____| by: <NAME> -- -...
27,796
ada
0
reznikmm/slimp
source/slim-players-common_play_visiters.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Slim.Message_Visiters; with Slim.Messages.BUTN; package Slim.Players.Common_Play_Visiters is type Visiter (Player : not null access Players....
27,797
ada
7
Fabien-Chouteau/Giza
test/src/basic_test_window.ads
<gh_stars>1-10 with Giza.Window; with Giza.Widget.Button; use Giza.Widget; with Giza.Events; use Giza.Events; with Giza.Types; use Giza.Types; package Basic_Test_Window is subtype Parent is Giza.Window.Instance; type Test_Window is abstract new Parent with private; type Test_Window_Ref is access all Test_Win...
27,798
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/s-bbbosu__erc32.adb
<reponame>JCGobbi/Nucleo-STM32G474RE<filename>bb-runtimes/src/s-bbbosu__erc32.adb<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS ...
27,799
ada
0
Fabien-Chouteau/ASFML
include/sf-graphics-text.adb
<gh_stars>0 --////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 <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 ...