id
int64
0
30.9k
extension
stringclasses
1 value
max_stars_count
int64
0
17k
max_stars_repo_name
stringlengths
7
106
max_stars_repo_path
stringlengths
5
136
text
stringlengths
9
1M
28,500
ada
19
jrcarter/Ada_GUI
parsers-generic_source.ads
<gh_stars>10-100 -- -- -- package Copyright (c) <NAME> -- -- Parsers.Generic_Source Luebeck -- -- Interface Winter, 2004 -- -- ...
28,501
ada
1
LaudateCorpus1/RosettaCodeData
Task/Parallel-calculations/Ada/parallel-calculations-2.ada
<gh_stars>1-10 with Ada.Text_IO; package body Prime_Numbers is procedure Put (List : Number_List) is begin for Index in List'Range loop Ada.Text_IO.Put (Image (List (Index))); end loop; end Put; task body Calculate_Factors is Size : Natural := 0; N : Number; M ...
28,502
ada
0
Letractively/ada-asf
src/asf-security-filters.ads
----------------------------------------------------------------------- -- security-filters -- Security filter -- 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 except in compliance with the License. ...
28,503
ada
0
fintatarta/pulsada
src/pulsada-thin.adb
pragma Ada_2012; with Ada.Command_Line; with System.Address_To_Access_Conversions; with Interfaces.C.Strings; with Pulse_Def_H, Pulse_Sample_H; use Ada; package body Pulsada.Thin is ---------- -- Open -- ---------- procedure Open (Session : in out Session_Type; Rate ...
28,504
ada
0
optikos/oasis
source/oasis/program-elements-private_type_definitions.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Elements.Definitions; with Program.Lexical_Elements; package Program.Elements.Private_Type_Definitions is pragma Pure (Program.Elemen...
28,505
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-writers.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,506
ada
1
alvaromb/Compilemon
lib/aflexnat/gen.adb
-- Copyright (c) 1990 Regents of the University of California. -- All rights reserved. -- -- This software was developed by <NAME> of the Arcadia project -- at the University of California, Irvine. -- -- Redistribution and use in source and binary forms are permitted -- provided that the above copyright notice and this...
28,507
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/package_without_body_2.ads
<filename>tests/syntax_examples/src/package_without_body_2.ads package Package_Without_Body_2 is end Package_Without_Body_2;
28,508
ada
488
ouankou/rose
src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element.adb
<filename>src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element.adb with Asis.Compilation_Units; with Asis.Elements; with Asis.Iterator; -- -- GNAT-specific: with Asis.Set_Get; with Asis.Text; with Asis_Adapter.Element.Associations; with Asis_Adapter.Element.Clauses; with Asis_...
28,509
ada
0
persan/a-cups
src/cups-conversions.ads
<gh_stars>0 private package Cups.Conversions is end Cups.Conversions;
28,510
ada
3
charlie5/aIDE
applet/aide/source/editors/aide-editor-of_subprogram.ads
<gh_stars>1-10 with AdaM.Subprogram, gtk.Widget; private with aIDE.Editor.of_block, aIDE.Editor.of_context, gtk.Box, gtk.Label, gtk.Alignment, gtk.GEntry; package aIDE.Editor.of_subprogram is type Item is new Editor.item with private; type View is access all Item'Class;...
28,511
ada
30
jscparker/math_packages
linear_algebra/givens_rotation.ads
-- package Givens_Rotation -- -- cos = P/r, sin = L/r, r = sqrt(P*P + L*L) -- -- (P is for Pivot, L is for Low. -- -- clockwise rotation: notice all rotations are centered on the diagonal -- -- 1 0 0 0 0 0 0 -- 0 c s 0 0 P r -- 0 -s c 0 0 x L = 0 -- 0 0 0 1 0...
28,512
ada
0
TNO/Rejuvenation-Ada
tests/src/missing.ads
package Missing is end Missing;
28,513
ada
33
ytomino/drake
source/tasking/a-disedf.ads
<filename>source/tasking/a-disedf.ads<gh_stars>10-100 pragma License (Unrestricted); with Ada.Real_Time; -- with Ada.Task_Identification; package Ada.Dispatching.EDF is subtype Deadline is Real_Time.Time; Default_Deadline : constant Deadline := Real_Time.Time_Last; -- procedure Set_Deadline ( -- D : Deadl...
28,514
ada
4
ytomino/gmp-ada
source/gmp-q.adb
with System; with GMP.Z.Inside; with C.string; package body GMP.Q is use type C.signed_int; use type C.size_t; procedure memcpy (dst, src : System.Address; n : C.size_t) with Import, Convention => Intrinsic, External_Name => "__builtin_memcpy"; -- implementation function Num (X : MP_Rational) return Z.MP_I...
28,515
ada
0
thierr26/ada-apsepp
src/apsepp-generic_shared_instance-creator.adb
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. package body Apsepp.Generic_Shared_Instance.Creator is ---------------------------------------------------------------------------- Locker : SB_L_Locker (Lock'Access); --------------------------------------------------...
28,516
ada
24
svn2github/matreshka
source/amf/uml/amf-uml-interfaces.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
28,517
ada
1
TNO/Rejuvenation-Ada
workshop/tests/src/shared.ads
<gh_stars>1-10 with Libadalang.Analysis; use Libadalang.Analysis; package Shared is function Nr_Of_Parameters (S_S : Subp_Spec) return Integer; function Is_Part_Of_Subp_Def (S_S : Subp_Spec) return Boolean; function Inside_Private_Part (Node : Ada_Node'Class) return Boolean; end Shared;
28,518
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/g-thread.adb
<filename>llvm-gcc-4.2-2.9/gcc/ada/g-thread.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
28,519
ada
4
faelys/gela-asis
source/asis/asis-errors.ads
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
28,520
ada
0
twdroeger/ada-awa
awa/plugins/awa-wikis/src/awa-wikis.ads
<reponame>twdroeger/ada-awa ----------------------------------------------------------------------- -- awa-wikis -- Wiki module -- Copyright (C) 2011, 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 w...
28,521
ada
0
wildeee/safADA
Exemplos ADA/Fibonacci/Fibonacci.adb
<reponame>wildeee/safADA With Ada.Text_IO; Use Ada.Text_IO; Procedure Fibonacci is numero: Integer; resultado: Integer; -- Leitura String function Get_String return String is Line : String (1 .. 1_000); Last : Natural; begin Get_Line (Line, Last); return Line (1 .. Last); end Get_String; -- Leitura In...
28,522
ada
0
Tim-Tom/project-euler
Ada/src/Problem_39.adb
<filename>Ada/src/Problem_39.adb with Ada.Text_IO; with Ada.Containers.Indefinite_Ordered_Maps; with PrimeInstances; with Ada.Numerics.Elementary_Functions; package body Problem_39 is package IO renames Ada.Text_IO; package Math renames Ada.Numerics.Elementary_Functions; package Positive_Primes renames PrimeIn...
28,523
ada
1
stcarrez/helios
src/helios-tools-files.ads
<gh_stars>1-10 ----------------------------------------------------------------------- -- helios-tools-files -- File parsing utilities for Helios -- 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 ...
28,524
ada
20
charlie5/lace
3-mid/opengl/source/platform/osmesa/opengl-surface.adb
<reponame>charlie5/lace<filename>3-mid/opengl/source/platform/osmesa/opengl-surface.adb with openGL.Context, interfaces.C; package body openGL.Surface is use -- Glx, Interfaces; -- visual_attribs : array (Positive range <>) of aliased C.int := (GLX_X_RENDERABLE, 1, -- ...
28,525
ada
33
ytomino/drake
source/image/required/s-imenne.ads
pragma License (Unrestricted); -- implementation unit required by compiler package System.Img_Enum_New is pragma Pure; -- required for Enum'Image by compiler (s-imenne.ads) procedure Image_Enumeration_8 ( Pos : Natural; S : in out String; P : out Natural; Names : String; Indexe...
28,526
ada
11
charlie5/aShell
source/shell.ads
with Ada.Strings.Unbounded, Ada.Streams; private with POSIX.IO, POSIX.Process_Identification, POSIX.Process_Primitives, Ada.Containers.Vectors; package Shell -- -- Provides processes and pipes. -- is --- Data -- use Ada.Streams; subtype Data is Stream_Element_Array; ...
28,527
ada
0
My-Colaborations/ada-ado
src/mysql/ado-mysql.ads
<gh_stars>0 ----------------------------------------------------------------------- -- ado-mysql -- MySQL Database Drivers -- Copyright (C) 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the Lic...
28,528
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile5.adb
-- { dg-do compile } with Volatile5_Pkg; use Volatile5_Pkg; procedure Volatile5 is A : Rec; procedure Proc is begin A := F; end; begin Proc; end;
28,529
ada
35
arc-aosp/external_libncurses
Ada95/samples/sample-curses_demo.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- ...
28,530
ada
14
Fabien-Chouteau/usb_embedded
src/usb-device-hid-keyboard.ads
<filename>src/usb-device-hid-keyboard.ads ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018-2021, AdaCore -- -- ...
28,531
ada
3
Fabien-Chouteau/ada-lvlg
src/lv-objx-bar.ads
<filename>src/lv-objx-bar.ads with Lv.Style; package Lv.Objx.Bar is subtype Instance is Obj_T; type Style_T is (Style_Bg, Style_Indic); -- Create a bar objects -- @param par pointer to an object, it will be the parent of the new bar -- @param copy pointer to a bar object, if not NULL then the new ...
28,532
ada
30
jscparker/math_packages
disorderly/gorilla_tst_demo_1.adb
<reponame>jscparker/math_packages -- Warning: puts huge array on stack. You get segmentation fault if stack -- space is insufficient. To get more stack space in bash shell, type: -- ulimit -s 1024M -- ulimit -s unlimited -- at the prompt. Type ulimit -a for summary of limits. -- In c shell type -- ...
28,533
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b41a.ada
-- C87B41A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein. -- Unlimit...
28,534
ada
0
reznikmm/lace
source/main/lace-run.adb
<reponame>reznikmm/lace -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Ada.Characters.Conversions; with Ada.Command_Line; with Ada.Text_IO; with Ada.Wide_Wide_Text_IO; with LLVM.Core; with Program.Compilations; ...
28,535
ada
0
kochab/simulatedannealing-ada
ImgAnnealing/src/main.adb
<reponame>kochab/simulatedannealing-ada with Ada.Text_IO; with Ada.Float_Text_IO; with Ada.Long_Integer_Text_IO; with Ada.Command_Line; with Ada.Environment_Variables; with Bitmaps.IO; with Bitmaps.RGB; with Ada.Text_IO.Text_Streams; with Problem; with ImageOps; with Simulated_Annealing; with RAII; procedure Main is ...
28,536
ada
1
jquorning/WeDo
source/files.ads
<reponame>jquorning/WeDo<filename>source/files.ads -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you g...
28,537
ada
1
assessorgeneral/ConQAT
org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/labels.adb
<filename>org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/labels.adb package body Foo is procedure P is begin loop if cond1() then if cond2() then Label1 : while cond3() loop doIt(); end loop Label1; end if; ...
28,538
ada
0
My-Colaborations/ada-el
src/el-contexts-default.adb
----------------------------------------------------------------------- -- EL.Contexts -- Default contexts for evaluating an expression -- Copyright (C) 2009, 2010, 2011, 2012, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use ...
28,539
ada
52
onox/orka
orka/src/orka/implementation/orka-terminals.adb
<reponame>onox/orka<gh_stars>10-100 -- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 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...
28,540
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3905a.ada
<reponame>best08618/asylo -- CE3905A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contai...
28,541
ada
2
charlie5/cBound
tier-1/clib/source/thin/clib.ads
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Swig; with Interfaces.C; with Interfaces.C.Pointers; with Interfaces.C.Strings; with System; package clib is -- time_t -- subtype time_t is Interfaces.C.long; type time_t_array is array (Interfaces.C.size_t range <>) of aliase...
28,542
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt34.adb
-- { dg-do compile } -- { dg-options "-O -fdump-tree-esra" } with Opt34_Pkg; use Opt34_Pkg; procedure Opt34 is function Local_Fun (Arg : T_Private) return T_Private is Result : T_Private; begin case Get_Integer (Arg) is when 1 => Result := Get_Private (100); when 2 =>...
28,543
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming10.adb
-- { dg-do compile } package body Renaming10 is function F (Input : Rec) return Natural is Position : Natural renames Input.Position; Index : Natural renames Natural'Succ(Position); begin return Index; end; end Renaming10;
28,544
ada
33
ytomino/drake
source/strings/a-suezst.ads
<gh_stars>10-100 pragma License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.UTF_Encoding.Generic_Strings; package Ada.Strings.UTF_Encoding.Wide_Wide_Strings is new Strings.UTF_Encoding.Generic_Strings ( Wide_Wide_Character, Wide_Wide_String, Expanding_From_8 => ...
28,545
ada
1
LaudateCorpus1/RosettaCodeData
Task/Distributed-programming/Ada/distributed-programming-3.ada
<reponame>LaudateCorpus1/RosettaCodeData<filename>Task/Distributed-programming/Ada/distributed-programming-3.ada<gh_stars>1-10 with Server; with Ada.Text_IO; procedure Client is begin Ada.Text_IO.Put_Line ("Calling Foo..."); Server.Foo; Ada.Text_IO.Put_Line ("Calling Bar: " & Integer'Image (Server.Bar)); end ...
28,546
ada
1
LaudateCorpus1/RosettaCodeData
Task/Evolutionary-algorithm/Ada/evolutionary-algorithm.ada
with Ada.Text_IO; with Ada.Numerics.Discrete_Random; with Ada.Numerics.Float_Random; with Ada.Strings.Fixed; with Ada.Strings.Maps; procedure Evolution is -- only upper case characters allowed, and space, which uses '@' in -- internal representation (allowing subtype of Character). subtype DNA_Char is Charac...
28,547
ada
7
stcarrez/mat
mat/regtests/mat-memory-tests.adb
----------------------------------------------------------------------- -- mat-memory-tests -- Unit tests for MAT memory -- Copyright (C) 2014, 2015, 2019, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in complia...
28,548
ada
0
Lucretia/old_nehe_ada95
thirdparty/adasdl/thin/adasdl/AdaSDL_mixer/sdl_mixer.ads
-- ----------------------------------------------------------------- -- -- ASDL_Mixer -- -- Binding to SDL mixer lib -- -- Copyright (C) 2001 A.M.F.Vargas -- -- <NAME> ...
28,549
ada
1
kylelk/ada-examples
geometry.adb
<filename>geometry.adb with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Ada.Numerics; use Ada.Numerics; package body Geometry is function distance(point1, point2 : Point) return Float is begin return Sqrt( (point2.x - point1.x)**2+ (point2.y - poin...
28,550
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3016f.ada
<reponame>best08618/asylo -- CC3016F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contai...
28,551
ada
0
fintatarta/pulsada
src/pulsada-thin.ads
with Ada.Finalization; use Ada; private with Pulse_Simple_H; package Pulsada.Thin is type Session_Type is new Finalization.Limited_Controlled with private; procedure Open (Session : in out Session_Type; Rate : Sampling_Frequency; N_Chan...
28,552
ada
0
persan/a-cups
src/gen/cups-cups_adminutil_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; limited with CUPS.stdio_h; with Interfaces.C_Streams; with System; with CUPS.cups_cups_h; private package CUPS.cups_adminutil_h is CUPS_SERVER_DEBUG_LOGGING : aliased constant String := "_debug_logging" & A...
28,553
ada
24
svn2github/matreshka
source/league/league-text_codecs.ads
<filename>source/league/league-text_codecs.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
28,554
ada
1
faelys/lithium3
src/lithium-exception_log.ads
<reponame>faelys/lithium3<gh_stars>1-10 ------------------------------------------------------------------------------ -- Copyright (c) 2017, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute...
28,555
ada
2
mgrojo/lsystem-editor
src/utils/lse-utils-angle.adb
<filename>src/utils/lse-utils-angle.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 o...
28,556
ada
0
persan/a-cups
src/cups-string_maps.ads
with Ada.Containers.Indefinite_Hashed_Maps; with Ada.Strings.Fixed.Hash_Case_Insensitive; package CUPS.String_Maps is new Ada.Containers.Indefinite_Hashed_Maps (Key_Type => String, Element_Type => String, Hash => Ada.Strings.Fixed.Hash_Case_Insensitive, Equivalent_Keys => "="...
28,557
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/sem_util.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
28,558
ada
0
strenkml/EE368
memsim-master/src/memgen.adb
with Ada.Command_Line; use Ada.Command_Line; with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Memory; use Memory; with Parser; use Parser; with HDL_Generator; use HDL_Generator; with Simplify_Memory; procedu...
28,559
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f0/rfm69_moter/sensor/peripherals.adb
with System; with STM32_SVD; use STM32_SVD; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32_SVD.ADC; use STM32_SVD.ADC; with STM32_SVD.PWR; use STM32_SVD.PWR; with STM32_SVD.GPIO; use STM32_SVD.GPIO; with STM32GD.Board; use STM32GD.Board; with STM32GD.GPIO; package body Peripherals is ...
28,560
ada
0
cyberpython/xpath_utils
examples/example.adb
-- Copyright 2017 <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 restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distribut...
28,561
ada
32
robdaemon/AdaYaml
util/src/yaml-to_events.adb
-- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Text_IO; with Ada.Command_Line; with Yaml.Source.Text_IO; with Yaml.Source.File; with Yaml.Parser; with Yaml.Transformator.Annotation_Processor; procedure Yaml.To_Events is use type Source.Poi...
28,562
ada
24
svn2github/matreshka
tools/documentation_generator/documentation_generator-driver.adb
with Ada.Characters.Conversions; --with Ada.Command_Line; --with Ada.Containers.Hashed_Maps; --with Ada.Containers.Ordered_Sets; --with Ada.Containers.Vectors; --with Ada.Strings.Wide_Fixed; --with Ada.Strings.Wide_Unbounded.Wide_Hash; --with Ada.Unchecked_Conversion; with Ada.Wide_Text_IO; with Ada.Wide_Wide_Text_IO; ...
28,563
ada
2
charlie5/cBound
tier-1/gmp/source/thin/gmp_c-a_a_gmp_randstate_struct_a_mp_algdata.ads
-- This file is generated by SWIG. Please do *not* modify by hand. -- with Swig; with Interfaces.C; package gmp_c.a_a_gmp_randstate_struct_a_mp_algdata is -- Item -- type Item_variant is (a_mp_lc_variant); type Item (union_Variant : Item_variant := Item_variant'First) is record case union_Variant ...
28,564
ada
4
davidkristola/vole
kv-avm-registers.adb
<gh_stars>1-10 with Ada.Streams.Stream_IO; with Ada.Strings.Maps; with Ada.Text_IO; with String_Ops; with kv.avm.Tuples; package body kv.avm.Registers is function "+"(S : String) return String_Type renames Ada.Strings.Unbounded.To_Unbounded_String; function "+"(U : String_Type) return String renames Ada.Stri...
28,565
ada
11
reznikmm/ada_lsp
source/protocol/lsp-messages.adb
<filename>source/protocol/lsp-messages.adb -- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with League.Holders; with League.JSON.Arrays; with League.JSON.Streams; with League.JSON.Values; package bo...
28,566
ada
4
Fabien-Chouteau/ada-voxel-space
src/sdl_display.ads
with Interfaces; use Interfaces; generic Screen_Width : Natural; Screen_Height : Natural; package SDL_Display is subtype SDL_Pixel is Unsigned_16; function Rendering return Boolean; procedure Start_Render with Pre => not Rendering, Post => Rendering; procedure Draw_Vertical_Line ...
28,567
ada
12
jquorning/ada-asf
src/asf-events-faces-actions.ads
<reponame>jquorning/ada-asf<filename>src/asf-events-faces-actions.ads<gh_stars>10-100 ----------------------------------------------------------------------- -- asf-events-faces-actions -- Actions Events -- Copyright (C) 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache Li...
28,568
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Library/vectors_conversions.adb
<gh_stars>1-10 with Real_Type; use Real_Type; package body Vectors_Conversions is ------------------ -- To_Vector_3D -- ------------------ function To_Vector_3D (V : Vector_3D_LF) return Vector_3D is (x => Real (V (x)), y => Real (V (y)), z => Real (V (z))); --------------------- ...
28,569
ada
0
persan/a-cups
src/gen/cups-bits_netdb_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with System; with CUPS.stdint_h; private package CUPS.bits_netdb_h is -- Copyright (C) 1996-2016 Free Software Foundation, Inc. -- This file is part of the GNU C Library. -- The GNU C Library is free...
28,570
ada
80
thindil/steamsky
tests/ships-repairs-test_data-tests.adb
<reponame>thindil/steamsky -- This package has been generated automatically by GNATtest. -- You are allowed to add your code to the bodies of test routines. -- Such changes will be kept during further regeneration of this file. -- All code placed outside of test routine bodies will be lost. The -- code intended to...
28,571
ada
0
fintatarta/eugen
src/Sym_Expr/regexp_readers-generic_readers.adb
pragma Ada_2012; with GNAT.Regpat; use GNAT.Regpat; with Ada.Text_IO; use Ada.Text_IO; package body Regexp_Readers.Generic_Readers is Matcher : constant Pattern_Matcher := Compile (To_String (Regexp.Regexp)); N_Paren : constant Natural := Paren_Count (Matcher); Sub_Expression_Index : constant Natural := Re...
28,572
ada
5
reznikmm/increment
testsuite/ada_lexer_test.adb
-- Copyright (c) 2015-2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Wide_Wide_Latin_1; with Ada.Wide_Wide_Text_IO; with League.Strings; with Incr.Ada_Lexers; with Incr.Lexers.Batch_Lexers; pr...
28,573
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-vbox.ads
<filename>ada/original_2008/ada-gui/agar-gui-widget-vbox.ads<gh_stars>100-1000 with agar.gui.widget.box; package agar.gui.widget.vbox is use type agar.gui.widget.box.flags_t; use type c.unsigned; type vbox_t is record box : aliased agar.gui.widget.box.box_t; end record; type vbox_access_t is access all...
28,574
ada
204
spr93/whitakers-words
src/words_engine/words_engine-put_stat.adb
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired) -- -- Copyright <NAME> (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is Copyrighted -- (c). Permission i...
28,575
ada
4
faelys/gela-asis
source/asis/spec/ada-calendar-arithmetic.ads
<filename>source/asis/spec/ada-calendar-arithmetic.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 -- -- ...
28,576
ada
0
Letractively/ada-asf
src/asf-models-selects.adb
----------------------------------------------------------------------- -- asf-models-selects -- Data model for UISelectOne and UISelectMany -- Copyright (C) 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file exc...
28,577
ada
7
kimtg/euler-ada
euler2.adb
<filename>euler2.adb with ada.text_io; use ada.text_io; procedure euler2 is a, b : integer := 1; s : integer := 0; begin loop declare c : integer := a + b; begin exit when c > 4000000; if c mod 2 = 0 then s := s + c; end if; a := b; b := c; end; end loop; put_line(in...
28,578
ada
0
ytomino/gnat4drake
g-encstr.adb
<reponame>ytomino/gnat4drake with Ada.Characters.Conversions; package body GNAT.Encode_String is function Encode_Wide_Wide_String (S : Wide_Wide_String) return String is begin case Encoding_Method is when System.WCh_Con.WCEM_UTF8 => return Ada.Characters.Conversions.To_String (S); ...
28,579
ada
192
rocher/Ada_Drivers_Library
middleware/src/filesystem/partitions.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
28,580
ada
0
thierr26/ada-apsepp
src/_test/harness/apsepp_test_suite.ads
<reponame>thierr26/ada-apsepp<gh_stars>0 -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp.Abstract_Test_Suite; use Apsepp.Abstract_Test_Suite; private with Apsepp_Test_Node_Class_Early_Test_Case, Apsepp_Test_Reporter_Class_Struct_Builder_Early_Test_Case,...
28,581
ada
2
ficorax/PortAudioAda
examples/paex_sine/src/paex_sine_callbacks.ads
with Interfaces.C; with System; with PortAudioAda; use PortAudioAda; package PaEx_Sine_Callbacks is ----------------------------------------------------------------------------- -- This routine will be called by the PortAudio engine when audio is needed. -- It may called at interrupt level on some machin...
28,582
ada
0
SKNZ/BoiteMaker
src/utilities/commandline_args.ads
with ada.strings.unbounded; use ada.strings.unbounded; package commandline_args is -- Exception indiquant l'absence d'un argument requis argument_missing : exception; -- lit les arguments de la ligne de commande -- exceptions: argument_missing en l'absence -- d'un argument obligatoire...
28,583
ada
4
faelys/gela-asis
source/asis/asis-expressions.adb
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
28,584
ada
0
bracke/Meaning
source/RASCAL-Error.ads
-------------------------------------------------------------------------------- -- -- -- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. -- -- ...
28,585
ada
52
onox/orka
orka_transforms/src/orka-transforms-simd_vectors.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 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 -...
28,586
ada
0
VMika/Des_Ada
Des_Ada/src/concrete_handler/p_stephandler-iphandler.ads
<reponame>VMika/Des_Ada<filename>Des_Ada/src/concrete_handler/p_stephandler-iphandler.ads package p_StepHandler.IPHandler is type IPHandler is new T_StepHandler with private; type Ptr_IPHandler is access all IPHandler; function Make (Handler : in out IPHandler) return IPHandler; procedure Handl...
28,587
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/modular3_pkg.ads
package Modular3_Pkg is type Int16_T is range -32768 .. 32767; for Int16_T'Size use 16; for Int16_T'Alignment use 1; type Mod16_T is mod 2 ** 16; for Mod16_T'Size use 16; for Mod16_T'Alignment use 1; end Modular3_Pkg;
28,588
ada
0
Letractively/ada-ado
src/ado-queries.adb
----------------------------------------------------------------------- -- ado-queries -- Database Queries -- Copyright (C) 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 except in compliance with the L...
28,589
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/elists.ads
<reponame>vidkidz/crossbridge<filename>llvm-gcc-4.2-2.9/gcc/ada/elists.ads<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS ...
28,590
ada
60
RREE/ada-util
src/sys/os-macos64/util-systems-constants.ads
-- Generated by utildgen.c from system includes with Interfaces.C; package Util.Systems.Constants is pragma Pure; -- Flags used when opening a file with open/creat. O_RDONLY : constant Interfaces.C.int := 8#000000#; O_WRONLY : constant Interfaces.C.int := 8#0000...
28,591
ada
7
98devin/ada-gba-dev
src/GBA.BIOS.ads
-- Copyright (c) 2021 <NAME> -- zlib License -- see LICENSE for details. with Interfaces; use Interfaces; with GBA.Numerics; use GBA.Numerics; package GBA.BIOS is pragma Preelaborate; type System_Call is ( Soft_Reset -- , Register_RAM_Reset -- , Halt -- ...
28,592
ada
0
shintakezou/adaplayground
src/ffi-c/src/stdint_h.ads
<gh_stars>0 pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Extensions; package stdint_h is subtype uint8_t is unsigned_char; -- /usr/include/stdint.h:48 end stdint_h;
28,593
ada
4
MOUDDENEHamza/ENSEEIHT
2A/S7/SysConc/TP/TP6/lr-synchro-basique.ads
<reponame>MOUDDENEHamza/ENSEEIHT package LR.Synchro.Basique is function Nom_Strategie return String; procedure Demander_Lecture; procedure Demander_Ecriture; procedure Terminer_Lecture; procedure Terminer_Ecriture; end LR.Synchro.Basique;
28,594
ada
26
damaki/libkeccak
src/common/keccak-generic_parallel_permutation_serial_fallback.ads
------------------------------------------------------------------------------- -- Copyright (c) 2019, <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 s...
28,595
ada
1
LaudateCorpus1/RosettaCodeData
Task/Pick-random-element/Ada/pick-random-element.ada
with Ada.Text_IO, Ada.Numerics.Float_Random; procedure Pick_Random_Element is package Rnd renames Ada.Numerics.Float_Random; Gen: Rnd.Generator; -- used globally type Char_Arr is array (Natural range <>) of Character; function Pick_Random(A: Char_Arr) return Character is -- Chooses one of the char...
28,596
ada
0
ESROCOS/control-mc_watchdog
TasteModel/logger/logger.ads
-- This file was generated automatically: DO NOT MODIFY IT ! with Base_Types; use Base_Types; with TASTE_ExtendedTypes; use TASTE_ExtendedTypes; with TASTE_BasicTypes; use TASTE_BasicTypes; with UserDefs_Base_Types; use UserDefs_Base_Types; with adaasn1rtl; use adaasn1rtl; package logger is -- Provided interfac...
28,597
ada
0
M1nified/Ada-Samples
MergeSort/b__main.adb
pragma Ada_95; pragma Warnings (Off); pragma Source_File_Name (ada_main, Spec_File_Name => "b__main.ads"); pragma Source_File_Name (ada_main, Body_File_Name => "b__main.adb"); pragma Suppress (Overflow_Check); with System.Restrictions; with Ada.Exceptions; package body ada_main is E135 : Short_Integer; pragma Imp...
28,598
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/5ftaprop.adb
------------------------------------------------------------------------------ -- -- -- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
28,599
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-tamil.adb
<filename>src/lang/stemmer-tamil.adb -- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Tamil is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*for...