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
3,500
ada
24
svn2github/matreshka
source/xml/catalogs/matreshka-xml_catalogs-entry_files.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
3,501
ada
0
hsgrewal/learning-ada
longer_integers.adb
-- longer_integers.adb with Ada.Text_IO; use Ada.Text_IO; procedure longer_integers is TestLI : Long_Long_Integer := 4; begin Put_Line(" Long_Long_Integer: " & Long_Long_Integer'Image(TestLI)); Put_Line(" Long_Long_Integer min: [ " & Long_Long_Integer'Image(Long_Long_Integer'First) & " ] and max : [ " & Lon...
3,502
ada
0
sebsgit/textproc
src/tests/gpucomponentlabelingtests.ads
<reponame>sebsgit/textproc with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; package GpuComponentLabelingTests is type TestCase is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests(T: in out TestCase); function Name(T: TestCase) return Message_String; procedure ...
3,503
ada
1
JeremyGrosser/tiny_text
example/example.adb
<filename>example/example.adb with HAL.Bitmap; with Tiny_Text; with Board; use Board; procedure Example is Text : Tiny_Text.Text_Buffer (Bitmap => Display.Hidden_Buffer (1), Width => Display.Width, Height => Display.Height); begin Display.Initialize_Layer (1, HAL.Bitmap.M_1); Text.Initial...
3,504
ada
24
svn2github/matreshka
source/web/tools/a2js/properties-definitions-unconstrained_array_type.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
3,505
ada
0
alexcamposruiz/dds-requestreply
examples/hello_world_request_reply2/src/primes-primenumberreplier.ads
with Primes_IDL_File.PrimeNumberRequest_DataReader; with Primes_IDL_File.PrimeNumberReply_DataWriter; with DDS.Typed_Replyer_Generic; package Primes.PrimeNumberReplier is new DDS.Typed_Replyer_Generic (Request_DataReaders => Primes_IDL_File.PrimeNumberRequest_DataReader, Reply_DataWriters => Primes_IDL_File.Prim...
3,506
ada
1
Hathoute/ENSEEIHT
PIM/TP3_Sous_Programmes/specifier_et_tester.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Specifier_Et_Tester is -- La valeur absolue d'un nombre entier. function Valeur_Absolue (N : in Integer) return Integer with Post => Valeur_Absolue'Result >= 0 and (Valeur_Absolue'Result = N or Valeur_Absolue'Result = -N) is begin if N >= 0 then return N; e...
3,507
ada
0
ASTR0NAUTJ0NES/Homework-One
homework_one.adb
-- File: homework_one.adb -- Name: <NAME> -- Date: 1/20/2018 -- Purpose: Calculate points surplus or deficit -- based on hours taken and GPA with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure homework_one ...
3,508
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hofstadter-Conway-$10,000-sequence/Ada/hofstadter-conway-$10,000-sequence.ada
-- Ada95 version -- Allocation of arrays on the heap with Ada.Text_IO; use Ada.Text_IO; with Unchecked_Deallocation; procedure Conway is package Real_io is new Float_IO (Float); Maxrange : constant := 2 ** 20; type Sequence is array (Positive range 1 .. Maxrange) of Positive; type Sequence_Ptr is acces...
3,509
ada
4
reznikmm/jupyter
sources/ada/magics-gprbuild_options.adb
<gh_stars>1-10 -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ---------------------------------------------------------------- with League.String_Vectors; with League.JSON.Objects; with League.JSON.Values; with Jupyter.Kernels; procedure Magics.Gprbuild_Options (IO_Pub : not...
3,510
ada
4
davidkristola/vole
kv-avm-vole_lex.ads
-- A lexical scanner generated by aflex with text_io; use text_io; with vole_lex_dfa; use vole_lex_dfa; with vole_lex_io; use vole_lex_io; --# line 1 "vole_lex.l" --FLOAT_SEQUENCE {DIGIT_SEQUENCE}[.]{DIGIT_SEQUENCE}{EXPONENT}? --# line 12 "vole_lex.l" with Vole_Tokens; use Vole_Tokens; package kv.avm.Vole_Lex i...
3,511
ada
4
davidkristola/vole
kv-avm-references.adb
<reponame>davidkristola/vole with Ada.Exceptions; use Ada.Exceptions; package body kv.avm.References is ----------------------------------------------------------------------------- function Ref_Img(Ref : Reference_Type) return String is Index : constant String := Offset_Type'IMAGE(Ref.Index); begin ...
3,512
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.0.1/wisitoken-parse-lr-mckenzie_recover-base.adb
<reponame>caqg/linux-home -- Abstract : -- -- Base utilities for McKenzie_Recover -- -- Copyright (C) 2018, 2019 Free Software Foundation, Inc. -- -- This library 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 Fo...
3,513
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/hello_world/main.adb
<gh_stars>1-10 with Drivers.Text_IO; with STM32GD.Board; with STM32GD.Power; procedure Main is package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART); Line : String (1 .. 8); Len : Natural; begin STM32GD.Board.Init; STM32GD.Board.LED.Set; loop Text_IO.Put_Line ("Hello, World!")...
3,514
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/constant1_pkg.ads
<reponame>best08618/asylo package Constant1_Pkg is type Id_T is mod Natural'Last + 1; type Timer_Id_T is tagged record Id : Id_T := Id_T'Last; end record; Null_Timer_Id : constant Timer_Id_T := (Id => Id_T'Last - 1); end Constant1_Pkg;
3,515
ada
0
twdroeger/ada-awa
awa/plugins/awa-images/src/model/awa-images-models.adb
<reponame>twdroeger/ada-awa ----------------------------------------------------------------------- -- AWA.Images.Models -- AWA.Images.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-body.xhtml -- Ada...
3,516
ada
33
ytomino/drake
source/numerics/a-nuflra.adb
package body Ada.Numerics.Float_Random is function Random (Gen : Generator) return Uniformly_Distributed is begin return Float (MT19937.Random_0_To_1 (Gen'Unrestricted_Access.all)); end Random; end Ada.Numerics.Float_Random;
3,517
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-esa_select.adb
with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Esa_Select.Convert; with Tkmrpc.Response.Ike.Esa_Select.Convert; package body Tkmrpc.Operation_Handlers.Ike.Esa_Select is ------------------------------------------------------------------------- procedure Handle (Req : Request.Data_Type; Re...
3,518
ada
3
vasil-sd/ada-tlsf
bits/src/shift/bitoperations-shift.ads
with BitOperations.Types; generic with package Types is new BitOperations.Types (<>); package BitOperations.Shift with SPARK_Mode, Pure is use Types; function Logic_Right (Value : in Modular; Amount : in Natural) return Modular with Pure_Function, Global => null, Pre => Amount in 0..Modular'Size, ...
3,519
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/exp_attr.adb
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
3,520
ada
0
SKNZ/BezierToSTL
src/courbes/courbes-visiteurs.adb
package body Courbes.Visiteurs is procedure Visiter(Self : Visiteur_Courbe; C : Courbe) is begin null; end; -- En absence d'override, on se ramène au type parent -- C'est à dire la courbe -- Et pour profiter d'une éventuel surcharge dans héritage, on redispatch procedure Visiter(Se...
3,521
ada
33
ytomino/drake
source/calendar/required/a-retide.adb
with System.Native_Real_Time; package body Ada.Real_Time.Delays is procedure Delay_Until (T : Time) is begin System.Native_Real_Time.Delay_Until ( System.Native_Real_Time.To_Native_Time (Duration (T))); end Delay_Until; function To_Duration (T : Time) return Duration is begin retur...
3,522
ada
4
cliffano/openapi-ipify
generated/ada/src/client/-clients.adb
<reponame>cliffano/openapi-ipify<filename>generated/ada/src/client/-clients.adb -- openapi_ipify -- OpenAPI client for ipify, a simple public IP address API -- -- OpenAPI spec version: 0.9.0 -- Contact: <EMAIL> -- -- NOTE: This package is auto generated by the swagger code generator 3.2.1-SNAPSHOT. -- https://ope...
3,523
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/iface_eq_test-child.ads
-- { dg-do compile } -- { dg-options "-gnatc" } generic package Iface_Eq_Test.Child is protected type PO is new Iface with procedure Dummy; end; overriding function "=" (L, R : access PO) return Boolean; end;
3,524
ada
0
faelys/natools
src/natools-smaz_64.ads
------------------------------------------------------------------------------ -- Copyright (c) 2016, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
3,525
ada
0
skill-lang/adaCommon
src/skill-iterators-type_order.adb
<gh_stars>0 -- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ iterator over types -- -- |___/_|\_\_|_|____| by: <NAME> ...
3,526
ada
7
98devin/ada-gba-dev
src/GBA.Display.Objects.adb
-- Copyright (c) 2021 <NAME> -- zlib License -- see LICENSE for details. with Ada.Unchecked_Conversion; with System; use type System.Address; package body GBA.Display.Objects is type Shape_Scale is record Scale : OBJ_Scale; Shape : OBJ_Shape; end record with Size => 4; for Shape_Scal...
3,527
ada
5
Componolit/AZ3
z3.ads
<reponame>Componolit/AZ3<gh_stars>1-10 with z3_api_h; with Ada.Iterator_Interfaces; private with Ada.Containers; private with Ada.Containers.Indefinite_Hashed_Maps; private with Interfaces.C; private with Interfaces.C.Strings; package Z3 is -- GCOV_EXCL_LINE Internal_Error : exception; Value_Error : excep...
3,528
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/subprogram_unit.ads
<reponame>TNO/Dependency_Graph_Extractor-Ada<filename>tests/syntax_examples/src/subprogram_unit.ads procedure Subprogram_Unit; pragma Pure (Subprogram_Unit);
3,529
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/gl/gl-materials.adb
<reponame>ForYouEyesOnly/Space-Convoy<gh_stars>1-10 package body GL.Materials is function is_Transparent (Self : Material_type) return Boolean is (Self.diffuse (3) < 1.0); end GL.Materials;
3,530
ada
33
persan/zeromq-Ada
src/zmq.ads
------------------------------------------------------------------------------- -- -- -- 0MQ Ada-binding -- -- -- ...
3,531
ada
0
AdaForge/Advent_of_Code_2020
puzzle_06/src/puzzle_06.adb
procedure Puzzle_06 is begin null; end Puzzle_06;
3,532
ada
80
thindil/steamsky
tests/items-test_data-tests-objects_container.ads
<gh_stars>10-100 package Items.Test_Data.Tests.Objects_Container is end Items.Test_Data.Tests.Objects_Container;
3,533
ada
15
AdaCore/training_material
extern/game_support/src/backends/opengl_sdl_gnat_sdl/display-kernel.adb
-- ----------------------------------------------------------------------- -- Ada Labs -- -- -- -- Copyright (C) 2008-2013, AdaCore -- -- ...
3,534
ada
1
io7m/coreland-openal-ada
openal-extension-float32.adb
with OpenAL.Extension.Float32_Thin; with OpenAL.Global; with OpenAL.Thin; with System; package body OpenAL.Extension.Float32 is use type Types.Size_t; function Is_Present return Boolean is begin return Global.Is_Extension_Present ("AL_EXT_FLOAT32"); end Is_Present; procedure Set_Data_Mono_Float_32 ...
3,535
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/comms/uxas-comms-transport-zeromq_sender-addr_attr_msg_senders.ads
<gh_stars>10-100 -- see OpenUxAS\src\Communications\ZeroMqAddressedAttributedMessageSender.h with ZMQ.Sockets; with UxAS.Comms.Data.Addressed.Attributed; use UxAS.Comms.Data.Addressed.Attributed; package UxAS.Comms.Transport.ZeroMQ_Sender.Addr_Attr_Msg_Senders is type ZeroMq_Addressed_Attributed_Message_Sender (...
3,536
ada
17
WinterAlexander/Ada-IntelliJ
src/test/resources/ada-sources/hello-world.adb
with Ada.Text_IO; procedure HelloWorld is begin Ada.Text_IO.Put_Line("Hello, World!"); end HelloWorld;
3,537
ada
1
LaudateCorpus1/RosettaCodeData
Task/Knights-tour/Ada/knights-tour-5.ada
<filename>Task/Knights-tour/Ada/knights-tour-5.ada function Warnsdorff_Get_Tour(Start_X, Start_Y: Index; Scene: Tour := Empty) return Tour is Done: Boolean; Visited: Tour; -- see comments from Get_Tour above Move_Count: Natural := Count_Moves(Scene); function Neighbors(X, Y: Index...
3,538
ada
0
pdibez/mundo-aspiradora
source/casillero.adb
package body casillero is procedure set_estado(c : in out t_casillero;e : in t_estado_casillero) is begin c.estado := e; end set_estado; function get_estado(c: in t_casillero) return t_estado_casillero is begin return c.estado; end get_estado; end casillero;
3,539
ada
0
xuedong/mini-ada
tests/typing/good/testfile-shadow-2.adb
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Test is X: Integer; procedure P is procedure X is begin New_Line; end; begin X; end; begin P; end;
3,540
ada
24
svn2github/matreshka
tools/configure/configure-tests-firebird.adb
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
3,541
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/hyper_flat.adb
-- { dg-do run } -- { dg-options "-gnatp" } procedure Hyper_Flat is type Unsigned is mod 2 ** 32; x : Integer := 0; pragma Volatile (X); S : constant String := (1 .. X - 3 => 'A'); -- Hyper-flat null string begin if Unsigned'(S'Length) /= 0 then raise Program_Error; end if; end;
3,542
ada
0
cocolab8/cocktail
reuse/ada/sets.adb
<gh_stars>0 -- $Id: Sets.mi,v 1.8 1994/07/14 10:22:29 grosch rel $ -- $Log: Sets.mi,v $ -- Ich, <NAME>, Informatiker, Sept. 1994 with DynArray, General, Text_Io; use General, Text_Io; package body Sets is package Int_Io is new Integer_IO (Integer); use Int_Io; NoCard : constant Integer := -1; procedure MakeSet ...
3,543
ada
2
thindil/tashy2
tests/tk-ttkbutton-ttk_button_options_test_data.adb
-- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounded by a 'read only' marker. with Ada.Environment_Variables; use Ada.Env...
3,544
ada
0
jwarwick/aoc_2019_ada
day03/src/fms.ads
-- Fuel Management System with Ada.Containers.Vectors; with Ada.Containers.Hashed_Sets; package FMS is procedure load(w1 : in String; w2 : in String); procedure load_file(path : String); function closest_intersection return Positive; function shortest_intersection return Positive; private type Direction ...
3,545
ada
24
svn2github/matreshka
source/xml/sax/xml-sax-content_handlers.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
3,546
ada
4
jerry-sky/academic-notebook
electives/pw/lab/lista-2/ada/node.ads
with Ada.Numerics.Float_Random; with RandInt; with Logger; with External; use External; with Receiver; package Node is package RAF renames Ada.Numerics.Float_Random; package LOG renames Logger; package RAD renames RandInt; package REC renames Receiver; type NodeObj; type pNodeObj is access N...
3,547
ada
1
LaudateCorpus1/RosettaCodeData
Task/Loops-Foreach/Ada/loops-foreach-3.ada
<filename>Task/Loops-Foreach/Ada/loops-foreach-3.ada with Ada.Integer_Text_IO, Ada.Containers.Doubly_Linked_Lists; use Ada.Integer_Text_IO, Ada.Containers; procedure Doubly_Linked_List is package DL_List_Pkg is new Doubly_Linked_Lists (Integer); use DL_List_Pkg; procedure Print_Node (Position : Cursor)...
3,548
ada
10
LionelDraghi/smk
src/list_image-unix_predefined_styles.ads
<reponame>LionelDraghi/smk -- ----------------------------------------------------------------------------- -- Copyright 2018 <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 -- -- ...
3,549
ada
0
SGDavid2719/ED-Empresa_de_Trenes
src/davl.adb
<filename>src/davl.adb package body davl is type modo is (insert_mode, remove_mode); procedure cvacio (s: out conjunto) is raiz: pnodo renames s.raiz; begin raiz := null; end cvacio; procedure consultar (s: in pnodo; k: in key; x: out item) is begin if s= null then raise ...
3,550
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/variant_part.ads
-- { dg-do compile } package Variant_Part is type T1(b: boolean) is record case (b) is -- { dg-error "discriminant name may not be parenthesized" } when others => null; end case; end record; end Variant_Part;
3,551
ada
2
rocher/TTS-Runtime-Ravenscar
examples/tts_example_a.ads
<reponame>rocher/TTS-Runtime-Ravenscar package TTS_Example_A is procedure Main; end TTS_Example_A;
3,552
ada
0
reznikmm/slimp
source/slim-read_file.adb
<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Streams.Stream_IO; with Ada.Text_IO; with Slim.Messages; with Slim.Messages.grfe; with Slim.Messages.grfg; with Slim.Messages.grf...
3,553
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/incomplete2.adb
<reponame>best08618/asylo<gh_stars>1-10 -- { dg-do compile } -- { dg-excess-errors "instantiation abandoned" } with Incomplete1; package body Incomplete2 is end Incomplete2;
3,554
ada
2
glencornell/ada-socketcan
src/sockets-can_thin.adb
<filename>src/sockets-can_thin.adb -- MIT License -- -- Copyright (c) 2021 <NAME> <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limita...
3,555
ada
3
stcarrez/ada-css
src/css-core-styles.adb
<reponame>stcarrez/ada-css ----------------------------------------------------------------------- -- css-core-styles -- Core CSS API definition -- Copyright (C) 2017, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
3,556
ada
0
faelys/natools
src/natools-s_expressions-special_descriptors.adb
<filename>src/natools-s_expressions-special_descriptors.adb ------------------------------------------------------------------------------ -- Copyright (c) 2015, <NAME> -- -- -- -- Permission to use, copy, mo...
3,557
ada
4
ytomino/gmp-ada
source/mpc.adb
with C.string; package body MPC is function Version return String is S : constant C.char_const_ptr := C.mpc.mpc_get_version; Length : constant Natural := Natural (C.string.strlen (S)); Result : String (1 .. Length); for Result'Address use S.all'Address; begin return Result; end Version; function Compo...
3,558
ada
0
My-Colaborations/ada-ado
src/ado-objects-cache.ads
----------------------------------------------------------------------- -- objects.cache -- Object cache -- Copyright (C) 2009, 2010 <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...
3,559
ada
0
balintsoos/LearnAda
gyak/gyak1-2/mat.adb
package body Mat is function Lnko ( A, B : Positive ) return Positive is X: Positive := A; Y: Positive := B; begin while X /= Y loop if X > Y then X := X - Y; else Y := Y - X; end if; end loop; return X; end Lnko; function Fa...
3,560
ada
24
svn2github/matreshka
source/web/tools/a2js/webapi/dom/webapi-dom-elements.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
3,561
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45662b.ada
-- C45662B.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...
3,562
ada
0
My-Colaborations/ada-ado
src/ado-sessions-factory.ads
----------------------------------------------------------------------- -- ado-sessions-factory -- Session Factory -- Copyright (C) 2009, 2010, 2011, 2012, 2015, 2017, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file excep...
3,563
ada
25
My-Colaborations/ada-keystore
regtests/keystore-properties-tests.ads
<filename>regtests/keystore-properties-tests.ads ----------------------------------------------------------------------- -- keystore-properties-tests -- Tests for Keystore.Properties -- Copyright (C) 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
3,564
ada
0
Robert-Tice/AdaFractalCPP
src/uri_router_hh.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; with Interfaces.C.Extensions; package Uri_Router_Hh is package Class_Capture_Groups is type Capture_Groups is limited record null; end record with Import => True, ...
3,565
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_6.adb
<gh_stars>1-10 -- { dg-do compile } with Varsize3_Pkg1; use Varsize3_Pkg1; procedure Varsize3_6 is Filter : Arr renames True.E; begin null; end;
3,566
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/stylesw.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
3,567
ada
1
faelys/simple-webapps
tests/all_servers.adb
<reponame>faelys/simple-webapps ------------------------------------------------------------------------------ -- Copyright (c) 2014-2016, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this so...
3,568
ada
3
stcarrez/ada-css
src/css-comments.adb
----------------------------------------------------------------------- -- css-comments -- CSS comments recording -- 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 License. -- ...
3,569
ada
4
faelys/gela-asis
source/libgela/gela-classificators-utf_8.adb
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
3,570
ada
1
LaudateCorpus1/RosettaCodeData
Task/Percentage-difference-between-images/Ada/percentage-difference-between-images-3.ada
function "-" (Left, Right : Pixel) return Count is begin return (Left.R - Right.R) + (Left.G - Left.G) + (Left.B - Right.B); end "-";
3,571
ada
192
rocher/Ada_Drivers_Library
middleware/src/utils/logging.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
3,572
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/sal-gen_unbounded_definite_min_heaps_fibonacci.ads
<reponame>caqg/linux-home -- Abstract: -- -- An unbounded minimum Fibonacci heap of definite non-limited elements. -- -- References: -- -- [1] Introduction to Algorithms, Third Edition. <NAME>, -- <NAME>, <NAME>, <NAME>. Chapter 19. -- -- Copyright (C) 2017 - 2019 Free Software Foundation, Inc. -- -- This librar...
3,573
ada
1
Fabien-Chouteau/tiled-code-gen
src/tcg-utils.adb
------------------------------------------------------------------------------ -- -- -- tiled-code-gen -- -- -- -- ...
3,574
ada
0
Kzel/Antenna_Design
TP1/workspace.ads
<gh_stars>0 <ADSWorkspace Revision="10" Version="100"> <Workspace Name=""> <LibraryDefs Name="lib.defs" /> <Library Name="ads_standard_layers_ic" /> <Library Name="ads_schematic_layers_ic" /> <Library Name="ads_schematic_ports_ic" /> <Library Name="ads_sources" /> <Li...
3,575
ada
19
jrcarter/Ada_GUI
ada_gui-selected_file.adb
<filename>ada_gui-selected_file.adb -- An Ada-oriented GUI library -- Implementation derived from Gnoga -- -- 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 separate (Ada_GUI) function Selected_File (Initi...
3,576
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/g-trasym.ads
<reponame>brucegua/moocos<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
3,577
ada
24
svn2github/matreshka
source/amf/utp/amf-utp-set_timezone_actions-collections.ads
<filename>source/amf/utp/amf-utp-set_timezone_actions-collections.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
3,578
ada
79
Roldak/OpenGLAda
src/gl/implementation/gl-enums-indexes.adb
<filename>src/gl/implementation/gl-enums-indexes.adb -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" package body GL.Enums.Indexes is function Representation (Value : Index) return Int is begin return Min_Representation + Value; end Represen...
3,579
ada
0
Tim-Tom/project-euler
Ada/src/Problem_40.adb
<filename>Ada/src/Problem_40.adb with Ada.Text_IO; with Ada.Containers.Vectors; package body Problem_40 is package IO renames Ada.Text_IO; package Natural_Vector is new Ada.Containers.Vectors(Index_Type => Natural, Element_Type => Natural); procedure Solve is bases : Natural_Vector.Vector; procedur...
3,580
ada
24
svn2github/matreshka
source/league/ucd/matreshka-internals-unicode-ucd-core_00a9.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
3,581
ada
1
reznikmm/network
source/network-managers-tcp_v4.adb
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Exceptions; with GNAT.Sockets; with Interfaces.C; with Network.Streams; with Network.Managers.TCP_V4_Out; package body Network.Managers.TCP_V4 is type Out...
3,582
ada
19
jrcarter/Ada_GUI
strings_edit-quoted.ads
-- -- -- package Strings_Edit.Quoted Copyright (c) <NAME> -- -- Interface Luebeck -- -- Summer, 2004 -- -- ...
3,583
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/nested_proc2.adb
-- { dg-do compile } -- { dg-options "-gnatws" } procedure Nested_Proc2 is type Arr is array(1..2) of Integer; type Rec is record Data : Arr; end record; From : Rec; Index : Integer; function F (X : Arr) return Integer is begin return 0; end; procedure Test is begin ...
3,584
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-valuators-value_inputs.ads
<reponame>micahwelf/FLTK-Ada with FLTK.Widgets.Inputs; package FLTK.Widgets.Valuators.Value_Inputs is type Value_Input is new Valuator with private; type Value_Input_Reference (Data : not null access Value_Input'Class) is limited null record with Implicit_Dereference => Data; package...
3,585
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/taft_type1_pkg1.ads
package Taft_Type1_Pkg1 is procedure Check; private type TAMT1; type TAMT1_Access is access TAMT1; type TAMT2; type TAMT2_Access is access TAMT2; end Taft_Type1_Pkg1;
3,586
ada
15
My-Colaborations/dynamo
src/asis/a4g-a_stand.ads
<filename>src/asis/a4g-a_stand.ads ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
3,587
ada
20
charlie5/lace
1-base/math/applet/demo/basic/launch_basic_math_demo.adb
with short_Math, float_Math.Geometry, long_Math, ada.text_IO; procedure launch_basic_math_Demo -- -- A simple demonstration of the Math packages. -- is package Math renames float_Math; use Math, math.Geometry; procedure log (Message : in String) renames ada.text_IO.put_Line; be...
3,588
ada
0
AdaForge/Advent_of_Code_2020
puzzle_17/src/puzzle_17.adb
<filename>puzzle_17/src/puzzle_17.adb procedure Puzzle_17 is begin null; end Puzzle_17;
3,589
ada
0
strenkml/EE368
memsim-master/src/benchmark-matrix-lu.adb
<gh_stars>0 package body Benchmark.Matrix.LU is function Create_LU return Benchmark_Pointer is begin return new LU_Type; end Create_LU; procedure Run(benchmark : in LU_Type) is addr : constant Address_Type := 0; begin for k in 0 .. benchmark.size - 1 loop for j in k + 1 .. b...
3,590
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37208b.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37208b.ada -- C37208B.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 -- unlimi...
3,591
ada
5
jhumphry/auto_counters
src/smart_ptrs/unique_ptrs.adb
<reponame>jhumphry/auto_counters -- unique_ptrs.adb -- A "unique pointer" type similar to that in C++ -- 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 permi...
3,592
ada
0
jamalakhaligova/ADA
ada generic exam/src/pqueue_type.ads
<filename>ada generic exam/src/pqueue_type.ads generic type Data is private; type Priority is (<>); with function "<"( A, B: Priority ) return Boolean is <>; package PQueue_Type is type PQueue(Max : Integer) is private; -- first insert version: inserts so that it keeps ordered procedure Insert ( PQ : ...
3,593
ada
0
zdimension/tdinfo302
src/phrases.adb
with Ada.Text_IO; use Ada.Text_IO; procedure phrases is function Maju (c : Character) return Character is begin if c in 'a'..'z' then return Character'Val(Character'Pos(c) - 32); else return c; end if; end Maju; ch : Character; nb_a, nb_ne :...
3,594
ada
81
fuzzysloth/ada-awa
awa/src/awa-helpers-selectors.ads
----------------------------------------------------------------------- -- awa-helpers -- Helpers for AWA applications -- 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 compliance with the License...
3,595
ada
0
erlingrj/ktc
benchmark/ada/fixed_priority.adb
<gh_stars>0 pragma Task_Dispatching_Policy(FIFO_Within_Priorities); with Ada.Text_IO;use Ada.Text_IO; with Ada.Real_Time; use Ada.Real_Time; with Ada.Dispatching; use Ada.Dispatching; with System; use System; procedure fixed_priority is pragma Priority(System.Priority'Last); protected release_manager is procedure...
3,596
ada
0
mendoza/mini-ada95
Programas Ada95/bloquesError.ada
------ BLOQUES - ERRORES procedure Hello is a: Integer; b: Float := 2.0 ; c: Boolean := false; function uno(a,b:out Boolean; x,y :in Integer) return Boolean is begin if x < 19 or x > 89 then return False; else return a; end...
3,597
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/gen_emacs_wisi_packrat_parse.ads
<reponame>caqg/linux-home -- Abstract : -- -- Generic Emacs background process; packrat parse token stream, -- return parser actions. -- -- See gen_run_wisi_parse_packrat.ads for a standalone version. -- -- References : -- -- See gen_emacs_wisi_parse.ads -- -- Copyright (C) 2018 Free Software Foundation, Inc. --...
3,598
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-except.ads
<filename>gcc-gcc-7_3_0-release/gcc/ada/a-except.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
3,599
ada
0
Tim-Tom/project-euler
Ada/src/Problem_53.adb
with Ada.Text_IO; with PrimeInstances; package body Problem_53 is package IO renames Ada.Text_IO; package Positive_Primes renames PrimeInstances.Positive_Primes; procedure Solve is sieve : constant Positive_Primes.Sieve := Positive_Primes.Generate_Sieve(100); type Prime_Count is Array (sieve'Range)...