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
9,600
ada
2
morbos/Ada_Drivers_Library
components/src/gas_sensor/t67xx/t67xx.ads
pragma Restrictions (No_Streams); with System; -- with Interfaces; use Interfaces; with HAL.I2C; use HAL.I2C; use HAL; generic type IO_Port (<>) is abstract tagged limited private; type Any_IO_Port is access all IO_Port'Class; with procedure Read (This : Any_IO_Port; Func : UInt8...
9,601
ada
7
stcarrez/atlas
src/atlas-microblog-beans.ads
<filename>src/atlas-microblog-beans.ads ----------------------------------------------------------------------- -- atlas-microblog-beans -- Beans for module microblog -- Copyright (C) 2012, 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
9,602
ada
12
TUM-EI-RCS/StratoX
tests/units-overhead/src/units.ads
package Units with Spark_Mode is type Unit_Type is new Float with -- As tagged Type? -> Generics with Unit_Type'Class Dimension_System => ((Unit_Name => Meter, Unit_Symbol => 'm', Dim_Symbol => 'L'), (Unit_Name => Kilogram, Unit_Symbol => "kg", Dim_Symbol => 'M'), (Unit_Na...
9,603
ada
0
Letractively/ada-ado
src/ado-sequences.ads
<filename>src/ado-sequences.ads<gh_stars>0 ----------------------------------------------------------------------- -- ADO Sequences -- Database sequence generator -- Copyright (C) 2009, 2010, 2011, 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- y...
9,604
ada
12
mgrojo/protobuf
source/runtime/generated/google-protobuf-struct.ads
<filename>source/runtime/generated/google-protobuf-struct.ads<gh_stars>10-100 with Ada.Finalization; with Ada.Streams; with Interfaces; with League.Strings; with PB_Support.Vectors; package Google.Protobuf.Struct is type Null_Value is (PB_NULL_VALUE); for Null_Value use (PB_NULL_VALUE => 0); package Null_V...
9,605
ada
0
damaki/EVB1000
src/evb1000-led.adb
------------------------------------------------------------------------------- -- Copyright (c) 2016 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to -- deal in the Software without restriction, includi...
9,606
ada
0
strenkml/EE368
memsim-master/src/test-register.ads
<filename>memsim-master/src/test-register.ads<gh_stars>0 package Test.Register is procedure Run_Tests; end Test.Register;
9,607
ada
1
charlie5/lace-alire
3-mid/opengl/applet/demo/lights/render_lighting/launch_render_lighting.adb
<filename>3-mid/opengl/applet/demo/lights/render_lighting/launch_render_lighting.adb with openGL.Light, openGL.Visual, openGL.Model.Sphere.lit_colored_textured, openGL.Model.Sphere.lit_colored, openGL.Palette, openGL.Demo; procedure launch_render_Lighting -- -- Exercise the rendering of...
9,608
ada
13
Fabien-Chouteau/GESTE
examples/racing/src/player.adb
with GESTE; with GESTE.Tile_Bank; with GESTE.Sprite.Rotated; with GESTE_Config; use GESTE_Config; with GESTE.Maths; use GESTE.Maths; with GESTE.Physics; with GESTE.Text; with GESTE_Fonts.FreeMono6pt7b; with Game_Assets.track_1; with Game_Assets.Tileset; with Interfaces; use Interfaces; package body Playe...
9,609
ada
7
kimtg/euler-ada
euler9.adb
<filename>euler9.adb<gh_stars>1-10 with ada.text_io; use ada.text_io; procedure euler9 is c : integer; begin for a in 1 .. 999 loop for b in a + 1 .. 999 loop c := 1000 - a - b; if c > 0 and then a * a + b * b = c * c then put_line(integer'image(a * b * c)); end if; end loop; end loop;...
9,610
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/g-dyntab.adb
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/gcc/gcc/ada/g-dyntab.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS ...
9,611
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f0/stm32f030x/svd/stm32_svd-adc.ads
<filename>stm32f0/stm32f030x/svd/stm32_svd-adc.ads -- This spec has been automatically generated from STM32F030.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- ---------...
9,612
ada
81
My-Colaborations/ada-awa
awa/src/awa-oauth-filters.ads
----------------------------------------------------------------------- -- awa-oauth-filters -- OAuth filter -- Copyright (C) 2017, 2018, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the Licen...
9,613
ada
0
Fabien-Chouteau/ASFML
include/sf-window-window.ads
<reponame>Fabien-Chouteau/ASFML --////////////////////////////////////////////////////////// -- SFML - Simple and Fast Multimedia Library -- Copyright (C) 2007-2018 <NAME> (<EMAIL>) -- This software is provided 'as-is', without any express or implied warranty. -- In no event will the authors be held liable for any dama...
9,614
ada
0
byllgrim/iictl
main.adb
<reponame>byllgrim/iictl with Iictl; procedure Main is begin Iictl.Iictl; end Main;
9,615
ada
22
FardaleM/metalang
out/pathfinding0.adb
<filename>out/pathfinding0.adb with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C; use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C; procedure pathfinding0 is type stringptr is access all char_array; procedure PString(s : stringptr) is ...
9,616
ada
0
Fabien-Chouteau/pygamer-bsp
src/pygamer.ads
<gh_stars>0 private with SAM.DMAC; private with SAM.Clock_Generator; private with SAM.Clock_Setup_120Mhz; package PyGamer is pragma Elaborate_Body; private use SAM.Clock_Generator; Clk_CPU : constant Generator_Id := SAM.Clock_Setup_120Mhz.Clk_CPU; Clk_120Mhz : constant Generator_Id := SAM.Clock_Setup_...
9,617
ada
4
DNSCatcher/DNSCatcher
src/dnscatcher/dns/processor/packet/dnscatcher-dns-processor-packet.adb
-- 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 -- rights to use, copy, modify, merge, publish, ...
9,618
ada
0
balintsoos/LearnAda
konz/konz2/swap/swap.adb
procedure swap(a: in out integer; b: in out integer) is c:integer:=a; begin a:=b; b:=c; end;
9,619
ada
30
jscparker/math_packages
disorderly/sorted_array.ads
<reponame>jscparker/math_packages -- At the moment the overflow stacks raise the constraint_error -- if the array is full.. -- -- Quickly written mess, but all that matters is that the output is -- correctly sorted, so we just test this each time the routine is run. -- -- For a given X <= Max_Size_of_Item, we ...
9,620
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hello-world-Newline-omission/Ada/hello-world-newline-omission-2.ada
<reponame>LaudateCorpus1/RosettaCodeData<gh_stars>1-10 with Ada.Text_IO; with Ada.Text_IO.Text_Streams; procedure Goodbye_World is stdout: Ada.Text_IO.File_Type := Ada.Text_IO.Standard_Output; begin String'Write(Ada.Text_IO.Text_Streams.Stream(stdout), "Goodbye World"); end Goodbye_World;
9,621
ada
2
stcarrez/hestia
src/hestia-time.ads
<gh_stars>1-10 ----------------------------------------------------------------------- -- hestia-time -- Date and time information -- 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...
9,622
ada
79
Roldak/OpenGLAda
src/glfw/v3/glfw-windows-context.ads
<reponame>Roldak/OpenGLAda -- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" package Glfw.Windows.Context is type OpenGL_Profile_Kind is (System_Default, Core_Profile, Compat_Profile); type API_Kind is (OpenGL, OpenGL_ES); type Robustness_Kind is (...
9,623
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/prompts/160_genericity/main.adb
<gh_stars>10-100 with Ada.Text_IO; use Ada.Text_IO; with Data_Type; with Generic_List; with Generic_List.Output; procedure Main is -- Create instance of generic list package -- Create instance of generic list output package -- My_List : List.List_T; -- Object of generic list type Element : Data_Type.Re...
9,624
ada
1
fabiojna02/OpenCellular
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-dp_info.ads
-- -- Copyright (C) 2016 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later version. -- -- This ...
9,625
ada
24
svn2github/matreshka
source/league/arch/x86_generic/matreshka-internals-strings-handlers-x86_utilities.adb
<filename>source/league/arch/x86_generic/matreshka-internals-strings-handlers-x86_utilities.adb ------------------------------------------------------------------------------ -- -- -- Matreshka Project ...
9,626
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/mdlltool.ads
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
9,627
ada
0
thierr26/ada-keystore
src/keystore-passwords-input.adb
----------------------------------------------------------------------- -- keystore-passwords-input -- Interactive based password provider -- 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 complia...
9,628
ada
1
LaudateCorpus1/RosettaCodeData
Task/Almost-prime/Ada/almost-prime.ada
<reponame>LaudateCorpus1/RosettaCodeData with Prime_Numbers, Ada.Text_IO; procedure Test_Kth_Prime is package Integer_Numbers is new Prime_Numbers (Natural, 0, 1, 2); use Integer_Numbers; Out_Length: constant Positive := 10; -- 10 k-th almost primes N: Positive; -- the "current number" to be checked...
9,629
ada
20
charlie5/lace
3-mid/impact/source/2d/impact-d2-math.ads
package impact.d2.Math -- -- Provides math subprograms. -- is pragma Pure; function b2IsValid (x : in float32) return Boolean; -- This function is used to ensure that a floating point number is not a NaN or infinity. function b2InvSqrt (x : in float32) return float32; -- This is a approximate yet fast i...
9,630
ada
0
reznikmm/gela
source/contexts/plain/program-unit_dependencies.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Compilation_Units; with Program.Symbol_Lists; package Program.Unit_Dependencies is pragma Preelaborate; type Unit_Dependency_Listener is limited inter...
9,631
ada
20
charlie5/lace
2-low/neural/source/private/neural-set.ads
with fann_c.fann_Train_data; package Neural.Set -- -- models a set of neural patterns used for trainng or testing a net. -- is type Patterns_view is access all Patterns; type Set is record Patterns : Patterns_view; Fann : fann_c.fann_Train_data.pointer; ...
9,632
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pointer_array.adb
<reponame>best08618/asylo -- { dg-do compile } procedure pointer_array is type Node; type Node_Ptr is access Node; type Node is array (1..10) of Node_Ptr; procedure Process (N : Node_Ptr) is begin null; end; begin null; end;
9,633
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-sttebu.adb
<filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-sttebu.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
9,634
ada
1
LaudateCorpus1/RosettaCodeData
Task/Bitmap-Bresenhams-line-algorithm/Ada/bitmap-bresenhams-line-algorithm-1.ada
procedure Line (Picture : in out Image; Start, Stop : Point; Color : Pixel) is DX : constant Float := abs Float (Stop.X - Start.X); DY : constant Float := abs Float (Stop.Y - Start.Y); Err : Float; X : Positive := Start.X; Y : Positive := Start.Y; Step_X : Integer := 1; Step_Y : Integer := 1;...
9,635
ada
0
drm343/drm343.github.io
ch1/range_example.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Range_Example is type Range_2_Based is array (Positive range 2 .. 4) of Integer; ARR : Range_2_Based := (3, 5, 7); begin <<example_1>> Put_Line ("example 1"); for Index in 2 .. 4 loop Put_Line (Integer'image (ARR (Index))); end loop; <<example_2...
9,636
ada
33
ytomino/drake
source/textio/machine-pc-freebsd/s-ntitco.ads
pragma License (Unrestricted); -- implementation unit specialized for POSIX (Darwin, FreeBSD, or Linux) with Ada.Colors; package System.Native_Text_IO.Terminal_Colors is pragma Preelaborate; type Color is mod 256; -- Note: Color represents: -- 0 .. 7 => Normal System Colors (R, G, B => 0 or 16#C0#)...
9,637
ada
0
webgeeks/Ada_Drivers_Library
examples/shared/hello_world_blinky/src/serial.ads
with HAL; use HAL; with STM32.GPIO; use STM32.GPIO; with STM32.USARTs; use STM32.USARTs; with STM32.Device; use STM32.Device; package serial is TX_Pin : constant GPIO_Point := PB7; RX_Pin : constant GPIO_Point := PB6; procedure Initialize_UART_GPIO; procedure Initialize(baud: UInt32);...
9,638
ada
32
robdaemon/AdaYaml
test/src/yaml-dumping_tests-suite.ads
-- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with AUnit.Test_Suites; package Yaml.Dumping_Tests.Suite is function Suite return AUnit.Test_Suites.Access_Test_Suite; end Yaml.Dumping_Tests.Suite;
9,639
ada
19
jrcarter/Ada_GUI
ada_gui-gnoga-gui-view.adb
<gh_stars>10-100 -- Ada_GUI implementation based on Gnoga. Adapted 2021 -- -- -- GNOGA - The GNU Omnificent GUI for Ada -- -- -- -- ...
9,640
ada
4
jerry-sky/academic-notebook
electives/pw/lab/lista-2/ada/edgeregistry.adb
package body EdgeRegistry is function Key(a: Natural; b: Natural) return BString is begin return ToBString(Natural'Image(a) & ";" & Natural'Image(b)); end Key; procedure Register(map: in out HashMap; a: Natural; b: Natural) is begin map.Insert(Key(a, b), True); end Register; ...
9,641
ada
89
Fabien-Chouteau/sdlada
src/image/sdl-images-io.ads
<reponame>Fabien-Chouteau/sdlada -------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2020, <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for...
9,642
ada
0
wookey-project/ewok-legacy
src/arch/socs/stm32f429/Ada/soc-dma-interfaces.adb
<reponame>wookey-project/ewok-legacy -- -- Copyright 2018 The wookey project team <<EMAIL>> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- - <NAME> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a ...
9,643
ada
80
thindil/steamsky
tests/missions-test_data-tests-mission_container-test_data-tests.ads
<gh_stars>10-100 -- 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 Missions.Test_Data.Tests.Mission_Container.Test_Data.Tests is type Test is new GNATtest_Generated.GNATte...
9,644
ada
0
xeenta/learning-ada
src/002/my_pack.adb
<reponame>xeenta/learning-ada package body My_Pack is Internal_Value : Integer; Count : Integer := 0; function Get return Integer is (Internal_Value); function Get_Count return Integer is (Count); procedure Set (V : in Integer) is begin Internal_Value := V; end Set; begin...
9,645
ada
0
Intelligente-sanntidssystemer/Ada-prosjekt
ADA_RC_Car/src/car_priorities.adb
<reponame>Intelligente-sanntidssystemer/Ada-prosjekt with Sensor; with sensor_behind; with steeringcontrol; with NRF52_DK.Time; with NRF52_DK.IOs; with NRF52_DK.Buttons; use NRF52_DK.Buttons; with HAL; use HAL; package body car_priorities is Sensor_Deadline : constant Integer := 6; --Sensor deadline in milliseconds...
9,646
ada
0
adammw/rtp_labs
week3/subprograms.adb
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada.Text_IO, Ada.Integer_Text_IO; procedure Subprograms is A, B, C, D : Integer; procedure Max_Min (A, B: in Integer; C, D: out Integer) is begin if A > B then C := A; D := B; else C := B; D := A; end if; end Max_Min; begin Put("...
9,647
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_audio_gstaudioiec61937_h.ads
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_audio_gstringbuffer_h; with glib; with glib.Values; with System; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; package GStreamer.GST_Low_Level.gst...
9,648
ada
79
Roldak/OpenGLAda
src/gl/implementation/gl-uniforms.adb
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.API.Singles; with GL.API.Ints; with GL.API.UInts; with GL.Low_Level; package body GL.Uniforms is procedure Set_Single (Location : Uniform; Value : Single) is begin API.Singles.Uniform1 (...
9,649
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/a/ad7203b.ada
<reponame>best08618/asylo -- AD7203B.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...
9,650
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/bltins.adb
-- { dg-do run } procedure Bltins is function Sqrt (F : Float) return Float; pragma Import (Intrinsic, Sqrt, "__builtin_sqrtf"); F : Float := 4.0; R : Float; begin R := Sqrt (F); end;
9,651
ada
24
svn2github/matreshka
source/web/tools/a2js/properties-expressions-pos_array_aggregate.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
9,652
ada
15
My-Colaborations/dynamo
src/asis/a4g-expr_sem.ads
<reponame>My-Colaborations/dynamo<filename>src/asis/a4g-expr_sem.ads ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
9,653
ada
15
My-Colaborations/dynamo
src/gnat/mlib-tgt.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
9,654
ada
0
thierr26/ada-apsepp
src/apsepp.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. package Apsepp is pragma Pure (Apsepp); end Apsepp;
9,655
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gsttaskpool_h.ads
<gh_stars>1-10 pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstobject_h; -- limited with GStreamer.GST_Low_Level.glib_2_0_glib_gthreadpool_h; with glib; pa...
9,656
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array14.ads
package Array14 is procedure Init; end Array14;
9,657
ada
0
marcello-s/AeonFlux
src/ada/AeonFlux/Parser/Position.ads
<reponame>marcello-s/AeonFlux<gh_stars>0 -- Copyright (c) 2015-2019 <NAME> -- for details see License.txt with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; package Position is type Object is record Text : Unbounded_String; StartLine : Natural; EndLine : Natural; StartColumn : Natural;...
9,658
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-dbgmcu.ads
<reponame>morbos/Ada_Drivers_Library<filename>arch/ARM/STM32/svd/stm32wl5x_cm4/stm32_svd-dbgmcu.ads -- This spec has been automatically generated from STM32WL5x_CM4.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DBGMCU is pragma...
9,659
ada
0
mikkowus/BESSPIN-Tool-Suite
docs/bugBounty2020/apps/proto-ota/signfile/ada/verifyfile.adb
<reponame>mikkowus/BESSPIN-Tool-Suite<gh_stars>0 with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Sign; use SPARKNaCl.Sign; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with Ada.Command_Line; use Ada.Command_Line; with Ada.Exceptions; use Ada.Exceptions; with Ada.Streams; use Ada.Streams; with ...
9,660
ada
0
csb6/libtcod-ada
demo/tutorial/tutorial.adb
with Engines, Libtcod.Console; use Libtcod; procedure Tutorial is screen_width : constant := 80; screen_height : constant := 50; context : Console.Context := Console.make_context(screen_width, screen_height, "Libtcod Ada Tutorial"); screen : Console.Screen := Console.make_screen(screen_width, screen_heigh...
9,661
ada
5
leo-brewin/ada-lapack
source/ada_lapack-extras.adb
package body Ada_Lapack.Extras is function MatrixDeterm (Source : Real_Matrix) return Real is matrix : Real_Matrix := source; matrix_rows : Integer := Matrix'Length (1); matrix_cols : Integer := Matrix'Length (2); pivots : Integer_Vector (1..matrix_rows); determ : Real; r...
9,662
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_case.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
9,663
ada
12
TUM-EI-RCS/StratoX
software/hal/boards/stm32f7_discovery/framebuffer_rk043fn48h.ads
with HAL.Framebuffer; use HAL.Framebuffer; with Framebuffer_LTDC; package Framebuffer_RK043FN48H is LCD_Natural_Width : constant := 480; LCD_Natural_Height : constant := 272; type Frame_Buffer is limited new Framebuffer_LTDC.Frame_Buffer with private; procedure Initialize (Display : in out Fr...
9,664
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/wisitoken-lexer-regexp.adb
-- Abstract: -- -- See spec -- -- Copyright (C) 2015, 2017 - 2020 Free Software Foundation, Inc. -- -- This file is part of the WisiToken package. -- -- The WisiToken package is free software; you can redistribute it -- and/or modify it under the terms of the GNU General Public License -- as published by the Fre...
9,665
ada
2
SMerrony/dgemua
dg_types.adb
<gh_stars>1-10 -- MIT License -- Copyright (c) 2021 <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, m...
9,666
ada
19
jrcarter/Ada_GUI
ada_gui-gnoga.ads
-- Ada_GUI implementation based on Gnoga. Adapted 2021 -- Implementation hierarchy rooted at Ada_GUI.Gnoga in recognition -- Clients should never with packages in the Ada_GUI.Gnoga hierarchy -- Original Gnoga headers have been left on the implemetation packages for reference -- -----------------------------------------...
9,667
ada
286
auzkok/libagar
ada/core/agar-dso.adb
<filename>ada/core/agar-dso.adb ------------------------------------------------------------------------------ -- AGAR CORE LIBRARY -- -- A G A R . D S O -- -- B o d y ...
9,668
ada
0
melwyncarlo/ProjectEuler
problems/047/a047.adb
with Ada.Text_IO; with Ada.Integer_Text_IO; -- Copyright 2021 <NAME> procedure A047 is use Ada.Text_IO; use Ada.Integer_Text_IO; -- File Reference: http://www.naturalnumbers.org/primes.html Max_N : constant Integer := 5E5; Array_Range : constant Integer := Integer (Float'Floor ( ...
9,669
ada
20
charlie5/lace
3-mid/opengl/source/lean/buffer/opengl-buffer-vertex.ads
<gh_stars>10-100 with openGL.Buffer.general; package openGL.Buffer.vertex is new openGL.Buffer.general (base_Object => Buffer.array_Object, Index => Index_t, Element => Site, ...
9,670
ada
33
ytomino/drake
source/directories/a-dirtem.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- extended unit private with System.Native_Directories.Temporary; package Ada.Directories.Temporary is -- Creating temporary files and directories. -- settings function Temporary_Directory return String; procedure Set_Temporary_Directory (Name : S...
9,671
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const2_pkg.ads
package Deferred_Const2_Pkg is I : Integer := 16#20_3A_2D_28#; pragma Warnings (Off); S : constant string(1..4); for S'address use I'address; pragma Import (Ada, S); procedure Dummy; end Deferred_Const2_Pkg;
9,672
ada
12
jquorning/ada-asf
src/asf-events-modules.adb
<gh_stars>10-100 ----------------------------------------------------------------------- -- asf-events -- ASF Events -- Copyright (C) 2009, 2010, 2011 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with t...
9,673
ada
26
damaki/libkeccak
tests/unit_tests/keccakf_lane_tests.adb
------------------------------------------------------------------------------- -- 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 source...
9,674
ada
1
doug16rogers/solitaire
solitaire_operations-text_representation.adb
with Ada.Characters.Handling; use Ada.Characters; package body Solitaire_Operations.Text_Representation is ------------------------------------------------------------------------ function Card (Name : Short_Card) return Card_Value is -- -- Returns the card for the given 2-character name. -- Uppe...
9,675
ada
15
AdaCore/training_material
extern/gnat_sdl/gnat_sdl2/src/fmaintrin_h.ads
pragma Ada_2005; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; package fmaintrin_h is -- Copyright (C) 2011-2017 Free Software Foundation, Inc. -- This file is part of GCC. -- GCC is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public L...
9,676
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr2.adb
-- { dg-do compile } procedure aggr2 is task type T_Task; -- task body T_Task is begin null; end; -- type Lim_Rec is record T : T_Task; end record; -- generic Formal : Lim_Rec; package P_G is end P_G; -- package P is new P_G (Formal => (T => <>)); begin null; end;
9,677
ada
0
theurt/PageRank
sources/tri_par_tas.adb
<filename>sources/tri_par_tas.adb 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; package body Tri_par_tas is procedure Afficher (tas : in T_vecteur_couple) is begin Put('['); for i in 1..tas.taille lo...
9,678
ada
1
mulander/crawler
src/crawler_interface.ads
<reponame>mulander/crawler -- Copyright (c) 2012, mulander <<EMAIL>> -- All rights reserved. -- Use of this source code is governed by a BSD-style license that can be -- found in the LICENSE file. with Ada.Finalization; with Terminal_Interface.Curses; with Crawler.Entities; package Crawler_Interface is package Curs...
9,679
ada
1
Hathoute/ENSEEIHT
PIM/TD4_Constructeurs_de_Types/tri_insertion.adb
<filename>PIM/TD4_Constructeurs_de_Types/tri_insertion.adb -- Score PIXAL le 07/10/2020 à 14:33 : 100% with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Tri par insertion procedure Tri_Insertion is Capacite: constant Integer := 10; -- Cette taille est arbitraire ty...
9,680
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/unc_memops.adb
package body Unc_Memops is use type System.Address; type Addr_Array_T is array (1 .. 20) of Addr_T; type Addr_Stack_T is record Store : Addr_Array_T; Size : Integer := 0; end record; procedure Push (Addr : Addr_T; As : access addr_stack_t) is begin As.Size := As.Size + 1; ...
9,681
ada
236
jquorning/septum
tests/src/sp-strings-tests.ads
<reponame>jquorning/septum with Trendy_Test; package SP.Strings.Tests is function All_Tests return Trendy_Test.Test_Group; end SP.Strings.Tests;
9,682
ada
2
corentingay/ada_epita
project/adl/components/src/motion/mma8653/mma8653.adb
<reponame>corentingay/ada_epita<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- ...
9,683
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect18.ads
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect18.ads package Vect18 is type Sarray is array (1 .. 4) of Long_Float; for Sarray'Alignment use 16; procedure Comp (X, Y : Sarray; R : in out Sarray); end Vect18;
9,684
ada
0
melwyncarlo/ProjectEuler
problems/025/a025.adb
<reponame>melwyncarlo/ProjectEuler with Ada.Strings.Fixed; with Ada.Integer_Text_IO; with Ada.Numerics.Long_Elementary_Functions; -- Copyright 2021 <NAME> procedure A025 is use Ada.Strings.Fixed; use Ada.Integer_Text_IO; use Ada.Numerics.Long_Elementary_Functions; Fibonacci_Val : array (Integer ...
9,685
ada
33
ytomino/drake
source/s-unwocc.ads
<filename>source/s-unwocc.ads pragma License (Unrestricted); -- runtime unit with System.Runtime_Context; with System.Unwind.Representation; package System.Unwind.Occurrences is pragma Preelaborate; -- (s-stalib.ads) Local_Partition_ID : Natural := 0; -- implementation for catching object (a-except-200...
9,686
ada
0
mstewartgallus/linted
src/ada-libc/src/libc-errno-posix_2008.ads
-- Copyright 2015 <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 -- -- Unless required by applicable law or agreed to in writi...
9,687
ada
33
ytomino/drake
source/numerics/machine-pc-freebsd/s-llcoty.ads
pragma License (Unrestricted); -- implementation unit specialized for FreeBSD package System.Long_Long_Complex_Types is pragma Pure; -- Complex type Imaginary is new Float; type Complex is record Re, Im : Float; end record; pragma Complex_Representation (Complex); -- Long_Complex t...
9,688
ada
7
letsbyteit/build-avr-ada-toolchain
rts/gcc-9/adainclude/s-parame.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
9,689
ada
0
Letractively/ada-awa
awa/plugins/awa-storages/src/awa-storages.adb
<reponame>Letractively/ada-awa ----------------------------------------------------------------------- -- awa-storages -- Storage module -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in com...
9,690
ada
0
persan/advent-of-code-2020
src/day-14/adventofcode-day_14.ads
package Adventofcode.Day_14 is end Adventofcode.Day_14;
9,691
ada
4
docandrew/YOTROC
src/util.adb
package body util is function toHexString(r : in Unsigned_32) return HexString32 is ret : HexString32 := "0xDEADBEEF"; begin ret(1) := '0'; ret(2) := 'x'; ret(3) := hexdigits(HexDigitRange(Shift_Right((r and 16#F000_0000#), 28))); ret(4) := hexdigits(HexDigitRange(Shift_R...
9,692
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug5.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug5.adb -- { dg-do compile } -- { dg-options "-g" } procedure Debug5 is type Record_Type (L1, L2 : Natural) is record S1 : String (1 .. L1); case L2 is when 0 => null; when others => S2 : String (L1 .. L2); end case; ...
9,693
ada
0
Asier98/AdaCar
src/adacar.adb
pragma Ada_2012; package body AdaCar is --------- -- "*" -- --------- function "*" (A : Unidades_AI; Distancia : Unidades_Distancia) return Unidades_Distancia is Valor_Distancia: Unidades_Distancia; begin Valor_Distancia:= Unidades_Distancia(A)*Distancia; return Valor_Di...
9,694
ada
0
ytomino/gnat4drake
a-stunau.ads
<gh_stars>0 pragma License (Unrestricted); package Ada.Strings.Unbounded.Aux is pragma Preelaborate; subtype Big_String is String (1 .. Positive'Last); type Big_String_Access is access all Big_String; for Big_String_Access'Storage_Size use 0; procedure Get_String ( U : Unbounded_String; S ...
9,695
ada
2
stcarrez/ada-mail
src/mail-parsers.ads
----------------------------------------------------------------------- -- mail-parsers -- Parse mail content -- Copyright (C) 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You...
9,696
ada
0
Letractively/ada-awa
awa/plugins/awa-storages/regtests/awa-storages-services-tests.adb
<reponame>Letractively/ada-awa ----------------------------------------------------------------------- -- awa-storages-services-tests -- Unit tests for storage service -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may ...
9,697
ada
0
honno/code-solutions
university/language-concepts-labs/9/ada/bubble.ads
-- specification of the package - -- read this to get an overview of the package; -- see bubble.adb for the implementation package Bubble is -- state shared by all tasks (ie threads) protected State is -- a setter for a, b, c, d procedure Set_All(a, b, c, d : Integer); -- get a, b, c...
9,698
ada
3
TheSledgeHammer/2.11BSD
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/atomic_enum/pck.adb
-- Copyright 2008-2020 Free Software Foundation, Inc. -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 3 of the License, or -- (at your option) any later version. -- -- ...
9,699
ada
15
My-Colaborations/dynamo
src/gnat/lib.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...