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
30,400
ada
79
Roldak/OpenGLAda
tests/gl/gl_test-context.adb
<filename>tests/gl/gl_test-context.adb -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with Ada.Strings.Unbounded; with Ada.Text_IO; with GL.Context; with GL_Test.Display_Backend; procedure GL_Test.Context is procedure Display_Context_Information is...
30,401
ada
0
xeenta/learning-ada
src/006/tictac.adb
<reponame>xeenta/learning-ada with Ada.Text_IO; use Ada.Text_IO; procedure TicTac is task Count is entry Start; entry Stop; entry Reset; end Count; task body Count is Counter : Natural := 0; Is_Counting : Boolean := FALSE; begin loop select ...
30,402
ada
0
jrfondren/adventofcode
2018/9/ada/day9.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with GNAT.OS_Lib; with Marble_Mania; procedure Day9 is Players : Positive; Last_Marble : Positive; begin if Argument_Count /= 2 then Put_Line (Standard_Error, "usage: " & Command_Name & " <#players>...
30,403
ada
13
Fabien-Chouteau/GESTE
src/geste-text.ads
------------------------------------------------------------------------------ -- -- -- GESTE -- -- -- -- ...
30,404
ada
24
svn2github/matreshka
source/league/league-application.adb
<filename>source/league/league-application.adb<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,405
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/controlled2.ads
with controlled1; use controlled1; package controlled2 is procedure Test_Suite; end controlled2;
30,406
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt6.ads
<gh_stars>1-10 package Opt6 is type String_Access is access all String; type String_List is array (Positive range <>) of String_Access; type String_List_Access is access all String_List; type Command_Line_Iterator is record Params : String_List_Access; Current : Natural; end record; ...
30,407
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l0x3/stm32_svd-rcc.ads
<reponame>morbos/Ada_Drivers_Library -- This spec has been automatically generated from STM32L0x3.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.RCC is pragma Preelaborate; --------------- -- Registers -- -------------...
30,408
ada
1
faelys/natools-web
generated/natools-static_maps-web-error_pages-commands.ads
package Natools.Static_Maps.Web.Error_Pages.Commands is pragma Pure; function Hash (S : String) return Natural; end Natools.Static_Maps.Web.Error_Pages.Commands;
30,409
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-vxwext-kernel.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
30,410
ada
0
stevancorre/advent-of-code-2021
day-01/solve_part_2.adb
<filename>day-01/solve_part_2.adb with Solve; use Solve; with Ada.Text_IO; use Ada.Text_IO; procedure Solve_Part_2 is Input_File : File_Type; A : Integer; B : Integer; C : Integer; Previous_Sum : Integer := 16#7FFF_FFFF#; Answer : Integer := 0; begin Open ...
30,411
ada
2
skordal/ada-regex
src/regex.ads
-- Ada regular expression library -- (c) <NAME> 2020 <<EMAIL>> -- Report bugs and issues on <https://github.com/skordal/ada-regex> package Regex is pragma Pure; -- Main package for the regular expression library. -- Include Regex.Regular_Expressions to get the main library functionality. end Regex;
30,412
ada
15
My-Colaborations/dynamo
src/gnat/prj-ext.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
30,413
ada
10
Ada-Audio/wavefiles
src/audio-riff-wav-formats.adb
------------------------------------------------------------------------------ -- -- -- AUDIO / RIFF / WAV -- -- -- -- ...
30,414
ada
0
thierr26/ada-apsepp
src/_test/harness/apsepp_test_harness.ads
<gh_stars>0 -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. private with Apsepp.Test_Reporter_Class.Instant_Standard, Apsepp_Test_Suite; package Apsepp_Test_Harness is procedure Apsepp_Test_Procedure; private use Apsepp.Test_Reporter_Class.Instant_Standar...
30,415
ada
12
TUM-EI-RCS/StratoX
tests/remainder/src/main.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; with Units; use Units; procedure main with SPARK_Mode is a : Angle_Type; w : Angle_Type; w2 : Angle_Type; amin : constant Angle_Type := -1.3 * Radian; amax : constant Angle_Type := 1.3 * Radian; L : constant Angle_Type := 2.0 * (amax - a...
30,416
ada
6
jquorning/ada-servlet
samples/rest/monitor.adb
----------------------------------------------------------------------- -- monitor - A simple monitor API -- Copyright (C) 2016, 2018, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License....
30,417
ada
7
98devin/ada-gba-dev
src/GBA.Display.Backgrounds.Refs.ads
<reponame>98devin/ada-gba-dev<gh_stars>1-10 -- Copyright (c) 2021 <NAME> -- zlib License -- see LICENSE for details. limited with GBA.Refs; package GBA.Display.Backgrounds.Refs is type BG_Ref (<>) is abstract tagged limited private; function ID (This : BG_Ref'Class) return BG_ID with Inline; function P...
30,418
ada
0
likai3g/afmt
src/fmt-generic_float_argument.ads
<reponame>likai3g/afmt generic type Float_Type is digits <>; package Fmt.Generic_Float_Argument is -- float to string -- https://www.cs.tufts.edu/~nr/cs257/archive/florian-loitsch/printf.pdf -- https://github.com/jk-jeon/dragonbox/blob/master/other_files/Dragonbox.pdf -- Edit format -- "w=" width -...
30,419
ada
20
charlie5/lace
4-high/gel/source/interface/gel-mouse.ads
<filename>4-high/gel/source/interface/gel-mouse.ads with gel.Keyboard, lace.Event, lace.Subject; package gel.Mouse with remote_Types -- -- Provides an interface to a mouse. -- is type Item is limited interface and lace.Subject.item; type View is access all Item'class; --------...
30,420
ada
3
charlie5/aIDE
attic/asis/find_entities/adam-assist-query-find_entities-unit_processing.adb
<filename>attic/asis/find_entities/adam-assist-query-find_entities-unit_processing.adb<gh_stars>1-10 with asis.Elements, asis.Compilation_Units, AdaM.compilation_Unit, AdaM.library_Item, AdaM.library_Unit.declaration, AdaM.Assist.Query.find_Entities.element_Processing, AdaM.Assist.Query....
30,421
ada
0
reznikmm/gela
source/oasis/program-elements-formal_unconstrained_array_types.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Formal_Type_Definitions; with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Component_Definitions; package Prog...
30,422
ada
8
mhatzl/spark_unbound
src/spark_unbound-arrays.ads
with Ada.Numerics.Big_Numbers.Big_Integers; use Ada.Numerics.Big_Numbers.Big_Integers; --- @summary --- This package is intended as a safe and proven alternative to `Ada.Containers.Vector`. --- --- @description --- This package offers proven functions/procedures for an unbound array that are inspired by the `Ada.Conta...
30,423
ada
1
LaudateCorpus1/RosettaCodeData
Task/Langtons-ant/Ada/langtons-ant.ada
<filename>Task/Langtons-ant/Ada/langtons-ant.ada with Ada.Text_IO; procedure Langtons_Ant is Size: constant Positive := 100; -- change this to extend the playground subtype Step is Integer range -1 .. +1; procedure Right(N, W: in out Step) is Tmp: Step := W; begin W := - N; N := Tmp; ...
30,424
ada
24
svn2github/matreshka
source/web/tools/a2js/engines-generic_engines.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
30,425
ada
6
jonashaggstrom/ada-canopen
examples/linux/src/app.ads
package App is procedure Run_Local; procedure Run_Remote; end App;
30,426
ada
79
Roldak/OpenGLAda
src/gl/interface/gl-files.ads
<filename>src/gl/interface/gl-files.ads -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.Objects.Shaders; -- This package is an addition to the original OpenGL API and simplifies -- the handling of ressources located in files, like shader sources. ...
30,427
ada
5
docandrew/troodon
src/render-shaders.ads
<filename>src/render-shaders.ads<gh_stars>1-10 with GL; package Render.Shaders is ShaderException : Exception; --------------------------------------------------------------------------- -- Shader Variables. Consider moving these into their own record types -------------------------------------------...
30,428
ada
0
fintatarta/protypo
test/interpreter-test/prova_interpreter.adb
<filename>test/interpreter-test/prova_interpreter.adb with Protypo.Api.Interpreters; with Protypo.Api.Consumers.File_Writer; with Protypo.Api.Engine_Values.Engine_Value_Array_Wrappers; with Protypo.Api.Engine_Values.Engine_Value_Holders; with User_Records; with Integer_Arrays; with Ada.Command_Line; with Ada.Text_Io;...
30,429
ada
3
albinjal/ada_basic
tentaplugg_albin/stonehedge/henge?.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure henge
30,430
ada
1
LaudateCorpus1/RosettaCodeData
Task/URL-decoding/Ada/url-decoding-2.ada
package URL is function Decode (URL : in String) return String; end URL;
30,431
ada
79
Roldak/OpenGLAda
src/glfw/v3/glfw-errors.ads
<gh_stars>10-100 -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Errors is type Kind is (Not_Initialized, No_Current_Context, Invalid_Enum, Invalid_Value, Out_Of_Memory, ...
30,432
ada
20
charlie5/lace
3-mid/opengl/source/lean/opengl-viewport.ads
<gh_stars>10-100 package openGL.Viewport -- -- Models an opendGL viewport. -- is function Extent return Extent_2d; procedure Extent_is (Now : in Extent_2d); end openGL.Viewport;
30,433
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada05/s-crtl.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
30,434
ada
0
luk9400/nsi
list1/task2/src/poly.ads
package Poly with SPARK_Mode is type Vector is array (Natural range <>) of Integer; function Horner (X: Integer; A: Vector) return Integer; end Poly;
30,435
ada
4
faelys/gela-asis
source/asis/asis-gela-visibility.adb
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
30,436
ada
0
skill-lang/adaCommon
src/skill-field_types-builtin-string_type_p.adb
-- ___ _ ___ _ _ -- -- / __| |/ (_) | | Common SKilL implementation -- -- \__ \ ' <| | | |__ implementation of builtin field types -- -- |___/_|\_\_|_|____| by: <NAME> -- -...
30,437
ada
13
annexi-strayline/AURA
unit_names.ads
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
30,438
ada
0
RREE/Ada_Drivers_Library
examples/shared/serial_ports/src/serial_io-blocking.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2022, AdaCore -- -- -- -- ...
30,439
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/g-socket.ads
<filename>tools-src/gnu/gcc/gcc/ada/g-socket.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
30,440
ada
19
jquorning/ada-security
src/security-oauth-servers.ads
<filename>src/security-oauth-servers.ads ----------------------------------------------------------------------- -- security-oauth-servers -- OAuth Server Authentication Support -- Copyright (C) 2016, 2017, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License...
30,441
ada
3
stcarrez/ada-css
tools/css-analysis-classes.ads
<gh_stars>1-10 ----------------------------------------------------------------------- -- css-analysis-classes -- CSS Class Analysis -- 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 wi...
30,442
ada
0
annexi-strayline/ASAP-Modular_Hashing
modular_hashing-xxhash64.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- Modular Hash Infrastructure -- -- ...
30,443
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect12.adb
-- { dg-do compile { target i?86-*-* x86_64-*-* } } -- { dg-options "-O3 -msse2 -fdump-tree-vect-details" } package body Vect12 is function "+" (X, Y : Sarray) return Sarray is R : Sarray; begin for I in Sarray'Range loop pragma Loop_Optimize (No_Vector); R(I) := X(I) + Y(I); ...
30,444
ada
0
JCGobbi/Nucleo-STM32F334R8
SVD2ada/svd/stm32_svd.ads
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32F3x4.svd pragma Restrictions (No_Elaboration_Code); with System; -- STM32F3x4 package STM32_SVD is pragma Preelaborate; -------------------- -- Base addresses -- -------------------- GPIOA_Base : constant System.Ad...
30,445
ada
4
ytomino/gmp-ada
source/gmp-z.ads
<filename>source/gmp-z.ads<gh_stars>1-10 private with Ada.Finalization; private with Ada.Streams; package GMP.Z is pragma Preelaborate; type MP_Integer is private; -- conversions function To_MP_Integer (X : Long_Long_Integer) return MP_Integer; -- formatting function Image (Value : MP_Integer; Base : Nu...
30,446
ada
0
Robert-Tice/AdaFractalCPP
src/router_cb.adb
with Ada.Calendar; use Ada.Calendar; with Ada.Text_IO; use Ada.Text_IO; with Ada.Unchecked_Conversion; with AWS.MIME; with AWS.Messages; with AWS.Response; with AWS.Utils; use AWS.Utils; with Fractal; with Interfaces.C.Strings; use Interfaces.C.Strings; with Interfaces.C.Extensions; use Interfaces.C.Extensions; pa...
30,447
ada
0
fintatarta/protypo
src/API/protypo-api-engine_values-engine_value_vector_wrappers.adb
pragma Ada_2012; with Ada.Containers; with Protypo.Api.Engine_Values.Constant_Wrappers; with Protypo.Api.Engine_Values.Range_Iterators; with Protypo.Api.Field_Names; pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced"); with Ada.Text_Io; use Ada.Text_Io; package body Protypo.Api.Engine_Values.Engi...
30,448
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-shape-compound.ads
<gh_stars>10-100 with impact.d3.Shape; -- btBvt, with impact.d3.collision.bounding_volume_Tree; with ada.Containers.Vectors; with impact.d3.collision.Proxy; -- #include "impact.d3.Shape.h" -- -- #include "LinearMath/impact.d3.Vector.h" -- #include "LinearMath/impact.d3.Transform.h" -- #include "LinearMath/...
30,449
ada
0
sourceryinstitute/rose-sourcery-institute
src/frontend/Experimental_Ada_ROSE_Connection/dot_asis/dot_asis_library/source/asis_tool_2-element.ads
<gh_stars>0 with Asis; -- GNAT-specific: with A4G.Int_Knds; with Types; with a_nodes_h; with Dot; private with Ada.Containers.Doubly_Linked_Lists; package Asis_Tool_2.Element is type Class is tagged private; -- Initialized -- Process an element and all of its components: procedure Process_Element_Tree ...
30,450
ada
0
fintatarta/eugen
src/Line_Array/src/line_arrays-regexp_classifiers.adb
<filename>src/Line_Array/src/line_arrays-regexp_classifiers.adb pragma Ada_2012; package body Line_Arrays.Regexp_Classifiers is --------- -- Add -- --------- procedure Add (To : in out Classifier_Type; Regexp : String; Callback : Callback_Type) is Match...
30,451
ada
26
damaki/libkeccak
src/common/keccak-generic_parallel_hash.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...
30,452
ada
0
JeremyGrosser/arm_cmsis_dsp
src/complex_math_functions_h.ads
<reponame>JeremyGrosser/arm_cmsis_dsp pragma Ada_2012; pragma Style_Checks (Off); pragma Warnings ("U"); with Interfaces.C; use Interfaces.C; with arm_math_types_h; with sys_ustdint_h; package complex_math_functions_h is procedure arm_cmplx_conj_f32 (pSrc : access arm_math_types_h.float32_t; pDst : acc...
30,453
ada
3
daveshields/AdaEd
demos/spath.ada
<reponame>daveshields/AdaEd -- A parallel single-source, all-destinations shortest-path finder. -- Each task is assigned a node, and tries to extend the path by -- cloning new tasks that explore all successors of that node. -- The graph is represented by adjacency lists. This representation -- is fixed, and glo...
30,454
ada
4
faelys/gela-asis
source/asis/asis-gela-visibility.ads
<filename>source/asis/asis-gela-visibility.ads ------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://g...
30,455
ada
2,662
nehalem501/gendev
tools/files/applib/contrib/ada/aplib.ads
<gh_stars>1000+ -- -- aPLib compression library - the smaller the better :) -- -- Ada binding for aplib.a -- -- Copyright (c) 1998-2009 by <NAME> / Jibz -- All Rights Reserved -- -- http://www.ibsensoftware.com/ -- -- Ada binding by <NAME> - <EMAIL>, <EMAIL> -- package aPLib is -- Give the maximu...
30,456
ada
0
Tim-Tom/scratch
random-art/ada/inc/Expressions.ads
<reponame>Tim-Tom/scratch<filename>random-art/ada/inc/Expressions.ads with Ada.Numerics.Float_Random; package Expressions is package Rand renames Ada.Numerics.Float_Random; type Expression_Type is (Terminal, Single, Double); subtype Expression_Value is Float range -1.0 .. 1.0; type Expression_Terminal_Func...
30,457
ada
20
charlie5/lace
3-mid/opengl/source/lean/text/private/opengl-glyphimpl.adb
with freetype_c.Binding, freetype_c.FT_BBox, freetype_c.FT_Vector; package body openGL.GlyphImpl is ----------- -- Utility -- function Bounds_of (glyth_Slot : in freetype_c.FT_GlyphSlot.item) return Bounds is use freetype_c.Binding; bBox : aliased freetype_c.FT_BBox.i...
30,458
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/variable_variant_record.adb
procedure Variant2 is type POWER is (GAS, STEAM, DIESEL, NONE); type VEHICLE (Engine : POWER := NONE) is record Model_Year : INTEGER range 1888..1992; Wheels : INTEGER range 2..18; case Engine is when GAS => Cylinders : INTEGER range 1..16; when ...
30,459
ada
0
antholuo/Blob_Traffic
Blob_Lib/assimp-5.2.3/assimp/contrib/zlib/contrib/ada/zlib-thin.ads
<gh_stars>0 version https://git-lfs.github.com/spec/v1 oid sha256:631ef170bde16c3ca8d412b54a0e519815b80197d208f8f393e6fe017bb0968e size 15819
30,460
ada
60
Letractively/ada-util
src/util-beans-objects-datasets.adb
----------------------------------------------------------------------- -- Util.Beans.Objects.Datasets -- Datasets -- Copyright (C) 2013 <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. --...
30,461
ada
1
LaudateCorpus1/RosettaCodeData
Task/Arbitrary-precision-integers--included-/Ada/arbitrary-precision-integers--included-.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with GNATCOLL.GMP; use GNATCOLL.GMP; with GNATCOLL.GMP.Integers; use GNATCOLL.GMP.Integers; procedure ArbitraryInt is type stracc is access String; BigInt : Big_Integer; len : Natural; str : stracc; begin Set (BigInt, 5); Raise_To_N (BigInt, Unsigned_L...
30,462
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/s-textio__zynqmp.adb
<filename>bb-runtimes/src/s-textio__zynqmp.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
30,463
ada
4
jorge-real/Ball-On-Beam
src/bb-adc.adb
<filename>src/bb-adc.adb -------------------------------------------------------------------------------- -- -- -- B A L L _ O N _ B E A M _ A D C -- -- ...
30,464
ada
2
thindil/tashy2
tests/tk-ttklabelframe-test_data-tests.ads
<reponame>thindil/tashy2 package Tk.TtkLabelFrame.Test_Data.Tests is end Tk.TtkLabelFrame.Test_Data.Tests;
30,465
ada
33
ytomino/drake
source/required/s-ststop.ads
pragma License (Unrestricted); -- implementation unit required by compiler with Ada.Streams.Block_Transmission.Strings; with Ada.Streams.Block_Transmission.Wide_Strings; with Ada.Streams.Block_Transmission.Wide_Wide_Strings; with System.Storage_Elements; package System.Strings.Stream_Ops is pragma Pure; pragma ...
30,466
ada
2
charlie5/cBound
tier-1/xcb/source/thin/xcb-xcb_client_message_data_t.ads
<reponame>charlie5/cBound -- This file is generated by SWIG. Please do not modify by hand. -- with swig; with Interfaces.C; with Interfaces.C.Pointers; package xcb.xcb_client_message_data_t is -- Item -- type Item_variant is (data8_variant, data16_variant, data32_variant); type Item (union_Variant : Ite...
30,467
ada
0
melwyncarlo/ProjectEuler
problems/039/a039.adb
<reponame>melwyncarlo/ProjectEuler with Ada.Integer_Text_IO; -- Copyright 2021 <NAME> procedure A039 is use Ada.Integer_Text_IO; P_Max_Solutions : Integer := 0; N_Max_Solutions : Integer := 0; B, N : Integer; A, B2, P2 : Float; begin for P in reverse 500 .. 1000 loop B...
30,468
ada
0
rtoal/enhanced-dining-philosophers
ada/meals.adb
<reponame>rtoal/enhanced-dining-philosophers<filename>ada/meals.adb ------------------------------------------------------------------------------ -- meals.adb -- -- Implementation of the Meals package. ------------------------------------------------------------------------------ with Ada.Strings.Unbounded; us...
30,469
ada
7
Fabien-Chouteau/Giza
src/hershey_fonts/giza-hershey_fonts.ads
<filename>src/hershey_fonts/giza-hershey_fonts.ads ------------------------------------------------------------------------------ -- -- -- Giza -- -- ...
30,470
ada
17
WinterAlexander/Ada-IntelliJ
src/test/resources/ada-sources/folding-test-data.ads
<fold text='with Play_Control, Record_Control, Ada.Text_IO, Sequencer; ...' expand='false'>with Play_Control, Record_Control, Ada.Text_IO, Sequencer; with Ada.Text_IO; with Pattern_Control;</fold> <fold text='package Bens_New_Packge is ...' expand='true'>package Bens_New_Packge is <fold text=' function test_1 retur...
30,471
ada
4
DNSCatcher/DNSCatcher
src/dnscatcher/utils/logger/dnscatcher-utils-logger.ads
<reponame>DNSCatcher/DNSCatcher<gh_stars>1-10 -- Copyright 2019 <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 limitation the --...
30,472
ada
33
ytomino/drake
source/required/s-expint.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- implementation unit required by compiler with System.Exponentiations; package System.Exp_Int is pragma Pure; -- required for "**" with checking by compiler (s-expint.ads) function Exp_Integer is new Exponentiations.Generic_Exp_Integer (Integer); end...
30,473
ada
33
ytomino/drake
source/interfaces/i-cstrin.ads
pragma License (Unrestricted); with Interfaces.C.Char_Pointers; with Interfaces.C.Generic_Strings; package Interfaces.C.Strings is new Generic_Strings ( Character_Type => Character, String_Type => String, Element => char, Element_Array => char_array, Pointers => Char_Pointers, To_...
30,474
ada
0
ytomino/gnat4drake
g-dirope.ads
pragma License (Unrestricted); with Ada.Directories; with Ada.Hierarchical_File_Names; package GNAT.Directory_Operations is subtype Dir_Name_Str is String; subtype Dir_Type is Ada.Directories.Search_Type; Directory_Error : exception; -- Basic Directory operations procedure Change_Dir (Dir_Name : Di...
30,475
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32l0/stm32l0x1/svd/stm32_svd-firewall.ads
-- This spec has been automatically generated from STM32L0x1.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.Firewall is pragma Preelaborate; --------------- -- Registers -- --------------- -- Code segment start address t...
30,476
ada
12
jquorning/ada-asf
src/asf-beans-injections.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- asf-beans-injections -- Injection of parameters, headers, cookies in beans -- Copyright (C) 2015 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use...
30,477
ada
1
Okasu/Byron
src/plugins/plugin.adb
<reponame>Okasu/Byron<filename>src/plugins/plugin.adb<gh_stars>1-10 package body Plugin is function Words (Str : Unbounded_String) return Vector is Result : Vector; Word : Unbounded_String; begin for I in 1 .. Length (Str) loop if Element (Str, I) /= ' ' and I /= Length (Str) then...
30,478
ada
7
Fabien-Chouteau/Giza
src/giza-image-dma2d.adb
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
30,479
ada
36
rewriting/tom
src/tom/library/sl/ada/sequencestrategy.ads
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; package SequenceStrategy is FIRST : constant Integer := 0; SECOND : constant Integer := 1; type Sequence is new AbstractStrategyCombin...
30,480
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c58004d.ada
-- C58004D.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...
30,481
ada
0
sebsgit/textproc
src/tests/shapedatabasetest.ads
<filename>src/tests/shapedatabasetest.ads with AUnit; use AUnit; with AUnit.Test_Cases; use AUnit.Test_Cases; --TODO: add tests for histogram data --TODO: add importing the training_set data package ShapeDatabaseTest is type TestCase is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests(T...
30,482
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr46.adb
<reponame>best08618/asylo -- { dg-do compile } package body Discr46 is function F (Id : Enum) return Integer is Node : Integer := 0; begin if A (Id).R.D = True then Node := A (Id).R.T; end if; return Node; end; end Discr46;
30,483
ada
204
spr93/whitakers-words
src/tools/invstems.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...
30,484
ada
24
svn2github/matreshka
source/amf/mofext/amf-internals-tables-mofext_reflection.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
30,485
ada
24
svn2github/matreshka
source/amf/uml/amf-uml-state_invariants.ads
<filename>source/amf/uml/amf-uml-state_invariants.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
30,486
ada
0
SKNZ/BoiteMaker
src/halfbox.ads
<reponame>SKNZ/BoiteMaker<gh_stars>0 with halfbox_panel; use halfbox_panel; with halfbox_info; use halfbox_info; package halfbox is type halfbox_t is record -- mesures de la demi-boite info : halfbox_info_t; -- face inférieure panel_bottom : halfbox_panel_t;...
30,487
ada
0
mstewartgallus/linted
src/ada-core/src/linted-channels.adb
<filename>src/ada-core/src/linted-channels.adb -- Copyright 2016,2017 <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://www.apache.org/licenses/LICENSE-2.0 -- -- Unl...
30,488
ada
15
AdaCore/training_material
extern/gnat_sdl/gnat_sdl2/src/sdl_clipboard_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with Interfaces.C.Strings; with SDL_stdinc_h; package SDL_clipboard_h is -- Simple DirectMedia Layer -- Copyright (C) 1997-2018 <NAME> <<EMAIL>> -- This software is provided 'as-is', without any express or implied -- warrant...
30,489
ada
0
annexi-strayline/ASAP-INET
ip_lookup/unix/inet-ip-lookup.adb
------------------------------------------------------------------------------ -- -- -- Internet Protocol Suite Package -- -- -- -- -...
30,490
ada
0
Maxelweb/concurrency-sandbox
Resource_Control_Protocol/src/rcp-user.adb
with Ada.Text_IO; with RCP.Control; package body RCP.User is task body User_T is use Ada.Text_IO, RCP.Control; -- all users will want the same type of item -- but in different quantities -- (note that the object components will take their default value -- unless overridden by the...
30,491
ada
1
LaudateCorpus1/RosettaCodeData
Task/Range-extraction/Ada/range-extraction-1.ada
with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Strings.Fixed; use Ada.Strings.Fixed; procedure Range_Extraction is type Sequence is array (Positive range <>) of Integer; function Image (S : Sequence) return String is Result : Unbounded_St...
30,492
ada
1
LaudateCorpus1/RosettaCodeData
Task/Multiplicative-order/Ada/multiplicative-order-2.ada
package body Multiplicative_Order is function Find_Order(Element, Modulus: Positive) return Positive is function Power(Exp, Pow, M: Positive) return Positive is -- computes Exp**Pow mod M; -- note that Ada's native integer exponentiation "**" may overflow on -- computing Exp**Pow b...
30,493
ada
3
albinjal/ada_basic
Lab0/lab0.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure Lab0 is I: Integer; F: Float; C: Character; S: String(1..5); begin Put("Skriv in ett heltal: "); Get(I); Put("Du skrev in talet: "); Put(I,2); New_Lin...
30,494
ada
0
bkold/RISC-CPU-Assembler
Source/improved_trie.ads
with Ada.Containers.Multiway_Trees; package Improved_Trie is type Element_Type is record A : Character; B : Integer; end record; function "=" (Left, Right : Element_Type) return Boolean is (Left.A = Right.A); --the Ada Multiway tree package backend to be used package Trie is new Ada.Containers.Multiway_T...
30,495
ada
80
thindil/steamsky
tests/bases-test_data-tests-basecargo_container.ads
package Bases.Test_Data.Tests.BaseCargo_Container is end Bases.Test_Data.Tests.BaseCargo_Container;
30,496
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b14b.ada
<gh_stars>1-10 -- C87B14B.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....
30,497
ada
80
thindil/steamsky
tests/game-test_data-tests-positive_container-test_data-tests.ads
<filename>tests/game-test_data-tests-positive_container-test_data-tests.ads -- This package has been generated automatically by GNATtest. -- Do not edit any part of it, see GNATtest documentation for more details. -- begin read only with Gnattest_Generated; package Game.Test_Data.Tests.Positive_Container.Test_Data...
30,498
ada
52
onox/orka
orka/src/orka/implementation/orka-algorithms-prefix_sums.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2018 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 -...
30,499
ada
26
damaki/libkeccak
src/common/keccak-keccak_1600-rounds_14.ads
<reponame>damaki/libkeccak<filename>src/common/keccak-keccak_1600-rounds_14.ads<gh_stars>10-100 ------------------------------------------------------------------------------- -- Copyright (c) 2019, <NAME> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modificati...