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
6,800
ada
79
Roldak/OpenGLAda
src/gl/interface/gl-uniforms.ads
-- part of OpenGLAda, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "COPYING" with GL.Types; use GL.Types; package GL.Uniforms is pragma Preelaborate; type Uniform is new Int; procedure Set_Single (Location : Uniform; Value : Single); procedure Set_Single (Locat...
6,801
ada
0
persan/advent-of-code-2020
src/day-25/adventofcode-day_25-main.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_25.Main is begin Put_Line ("Day-25"); end Adventofcode.Day_25.Main;
6,802
ada
0
alexa-00/all-hello-world
src/ada.ada
<reponame>alexa-00/all-hello-world with Text_IO; use Text_IO; procedure example is begin -- Hello world in ADA Put_Line("Hello world"); end example;
6,803
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f4/stm32f411xx/svd/stm32_svd-dma.ads
-- This spec has been automatically generated from STM32F411xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.DMA is pragma Preelaborate; --------------- -- Registers -- --------------- subtype LISR_FEIF0_Field is STM32_SVD....
6,804
ada
1
io7m/coreland-opengl-ada
opengl-buffer_object.ads
<gh_stars>1-10 with OpenGL.Thin; with System; generic type Element_Type is private; type Index_Type is range <>; type Array_Type is array (Index_Type range <>) of aliased Element_Type; package OpenGL.Buffer_Object is type Buffer_t is new Thin.Unsigned_Integer_t; type Buffer_Array_t is array (Natu...
6,805
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/assert1.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/assert1.adb -- { dg-do run } -- { dg-options "-gnatws" } pragma Assertion_Policy (Check); with Text_IO; use Text_IO; procedure assert1 is type p1 is array (1 .. 113) of Boolean; pragma Pack (p1); type p2 is array (1 .. 13) of Boolean; pragma Pack (p2)...
6,806
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/zfp-stm32g474/gnat/i-stm32-flash.ads
<reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0 -- -- Copyright (C) 2021, AdaCore -- pragma Style_Checks (Off); -- This spec has been automatically generated from STM32G474xx.svd with System; package Interfaces.STM32.Flash is pragma Preelaborate; pragma No_Elaboration_Code_All; --------------- -- Re...
6,807
ada
5
c3333/sphereengine-languages
languages/7/templates/clean.adb
<filename>languages/7/templates/clean.adb With Ada.Text_IO; Use Ada.Text_IO; With Ada.Integer_Text_IO; Use Ada.Integer_Text_IO; procedure Program is begin -- your code goes here end Program;
6,808
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/equal_access.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/equal_access.adb -- { dg-do compile } procedure equal_access is PA, PB : access procedure := null; begin if PA /= PB then null; end if; end;
6,809
ada
0
hgrodriguez/edc-client
src/edc_client-matrix-common.adb
<filename>src/edc_client-matrix-common.adb -- -- Copyright 2021 (C) <NAME> -- -- SPDX-License-Identifier: BSD-3-Clause -- with Interfaces; with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types; package body Edc_Client.Matrix.Common is -------------------------------------------------------------------------...
6,810
ada
1
jrcarter/MP
mp-ui.adb
-- MP: a Music Player -- Copyright (C) 2021 by PragmAda Software Engineering. All rights reserved. -- Released under the terms of the BSD 3-Clause license; see https://opensource.org/licenses -- -- 2021-06-01 Use new Enpty_Options procedure from Gnoga 1.6a to clear Sel -- 2021-04-01 Adapted to Ada-12 version o...
6,811
ada
25
My-Colaborations/ada-keystore
src/keystore-logs.ads
----------------------------------------------------------------------- -- keystore-logs -- Log support for the keystore -- Copyright (C) 2019, 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...
6,812
ada
0
hgrodriguez/eeprom_i2c
src/eeprom_i2c-mc24xx16.ads
----------------------------------------------------------------------------- -- Concrete implementation class for the MicroChip 24XX01/24LC01B EEPROM -- -- Copyright 2022 (C) <NAME> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL.I2C; package EEPROM_I2C.MC24XX16 is -------------------------------------...
6,813
ada
0
reznikmm/gela
source/oasis/program-elements-exit_statements.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Statements; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements.Exit_Statements is pragma Pure (Program.E...
6,814
ada
22
FardaleM/metalang
out/prologin_template_2charline2.adb
<reponame>FardaleM/metalang 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 prologin_template_2charline2 is type stringptr is access all char_array; procedure PString(s : s...
6,815
ada
0
NicoPy/Ada_RP2040_ELF2UF2
rp2040_elf2uf2/src/Errors.ads
-- -- Copyright 2022 (C) <NAME> (aka DrPi) -- -- SPDX-License-Identifier: BSD-3-Clause -- with Ada.Command_Line; use Ada.Command_Line; package Errors is NO_ERROR : constant Exit_Status := Success; ARGS : constant Exit_Status := -1; FORMAT : constant Exit_Status := -2; IN...
6,816
ada
33
ytomino/drake
source/s-stelfo.adb
<filename>source/s-stelfo.adb with System.Formatting.Address; package body System.Storage_Elements.Formatting is pragma Suppress (All_Checks); -- implementation function Image (Value : Address) return Address_String is begin return Result : Address_String do System.Formatting.Address.Image...
6,817
ada
0
AlexLemna/learns
Ada/weirdcal/src/weirdcal.ads
-- file: weirdcal.ads package Antikythera_Calendar is subtype calendar_year is Integer range 1 .. Integer`Last; subtype duration_of_day is Duration range 0.0 .. 86_400.00; subtype num_day_of_year is Integer range 1 .. 365; subtype num_month_of_year is Integer range 1 .. 13; subtype num_day_of_month is ...
6,818
ada
81
My-Colaborations/ada-awa
awa/plugins/awa-workspaces/src/model/awa-workspaces-models.ads
<filename>awa/plugins/awa-workspaces/src/model/awa-workspaces-models.ads ----------------------------------------------------------------------- -- AWA.Workspaces.Models -- AWA.Workspaces.Models ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Temp...
6,819
ada
13
Fabien-Chouteau/GESTE
examples/platformer/src/game.adb
<gh_stars>10-100 with Ada.Real_Time; with Render; with Keyboard; with Levels; with Player; with GESTE; with GESTE.Text; with GESTE_Config; with GESTE_Fonts.FreeMono5pt7b; package body Game is package RT renames Ada.Real_Time; use type RT.Time; use type RT.Time_Span; Text : aliased GESTE.Text.Instance ...
6,820
ada
1
XMoose25X/Advanced-Dungeon-Assault
Source/stats.adb
<filename>Source/stats.adb with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Discrete_Random; use Ada.Text_IO, Ada.Integer_Text_IO; package body stats is Package RNG is new Ada.Numerics.Discrete_Random(Integer); Use RNG; Gen : Generator; Procedure Instantiate is begin Reset(Gen); End Instantiate; func...
6,821
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/raise_from_pure.ads
<reponame>best08618/asylo package raise_from_pure is pragma Pure; function Raise_CE_If_0 (P : Integer) return Integer; end;
6,822
ada
3
pyjarrett/archaic_terminal
tests/src/trendy_terminal-lines-tests.adb
<filename>tests/src/trendy_terminal-lines-tests.adb with Trendy_Test.Assertions; package body Trendy_Terminal.Lines.Tests is use Trendy_Test.Assertions; procedure Test_Make (Op : in out Trendy_Test.Operation'Class) is begin Op.Register; declare L : Line; begin ...
6,823
ada
1
micahwelf/FLTK-Ada
src/fltk-widgets-boxes.ads
package FLTK.Widgets.Boxes is type Box is new Widget with private; type Box_Reference (Data : not null access Box'Class) is limited null record with Implicit_Dereference => Data; package Forge is function Create (X, Y, W, H : in Integer; Text : ...
6,824
ada
12
jquorning/ada-asf
src/asf-converters-numbers.ads
----------------------------------------------------------------------- -- asf-converters-numbers -- Floating point number converters -- Copyright (C) 2010, 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compli...
6,825
ada
24
svn2github/matreshka
source/amf/mof/amf.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
6,826
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/itypes.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,827
ada
0
xuedong/mini-ada
tests/exec/print_int.adb
<reponame>xuedong/mini-ada with Ada.Text_IO; use Ada.Text_IO; procedure Print_int is procedure PrintInt(N: Integer) is C: Integer := N rem 10; begin if N > 9 then PrintInt(N / 10); end if; Put(Character'Val(48 + C)); end; procedure PrintSInt(N: Integer) is C: Integer := N rem 10; ...
6,828
ada
0
djgoku/RosettaCodeData
Task/Standard-deviation/Ada/standard-deviation.ada
<filename>Task/Standard-deviation/Ada/standard-deviation.ada with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Deviation is type Sample is record N : Natural := 0; Mean : Float := 0.0; S...
6,829
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug6.adb
-- { dg-do compile } -- { dg-options "-g" } with Debug6_Pkg; use Debug6_Pkg; procedure Debug6 is V : Value := (Kind => Undefined); begin Process (V); end Debug6;
6,830
ada
0
Fabien-Chouteau/offmt
src/offmt.adb
with Ada.Text_IO; use Ada.Text_IO; with System.Storage_Elements; use System.Storage_Elements; with COBS.Stream.Encoder; with Interfaces; use Interfaces; package body Offmt is type COBS_Encoder is new COBS.Stream.Encoder.Instance with null record; overriding procedure Flush (This : in out COBS_Encoder; ...
6,831
ada
22
FardaleM/metalang
out/aaa_integer.adb
<filename>out/aaa_integer.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 aaa_integer is type stringptr is access all char_array; procedure PString(s : stringptr) is be...
6,832
ada
0
MicroJoe/cellular
cellular.adb
with Ada.Text_IO; use Ada.Text_IO; package body Cellular is procedure Generate(Previous : in out CellularArray) is Generator : Boolean_Random.Generator; begin Reset(Generator); for I in Previous'Range loop Previous(I) := Random(Generator); end loop; end Generate...
6,833
ada
81
My-Colaborations/ada-awa
awa/src/awa-commands-start.adb
----------------------------------------------------------------------- -- awa-commands-start -- Command to start the web server -- 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 t...
6,834
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/exp_cg.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,835
ada
2
godunko/adawebui
source/web-ui-widgets-combo_boxes-strings.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
6,836
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-collision-margin.ads
<gh_stars>10-100 package impact.d3.collision.Margin is CONVEX_DISTANCE_MARGIN : constant := 0.04; -- -- The CONVEX_DISTANCE_MARGIN is a default collision margin for convex collision shapes derived from impact.d3.Shape.convex.internal. -- -- This collision margin is used by Gjk and some other algorit...
6,837
ada
0
ekoeppen/MSP430_Generic_Ada_Drivers
examples/blink/main.adb
with MSPGD.Board; use MSPGD.Board; with MSPGD.Clock; use MSPGD.Clock; with MSPGD.Clock.Source; procedure Main is pragma Preelaborate; package Delay_Clock is new MSPGD.Clock.Source (Frequency => 1500, Input => VLO, Source => ACLK); begin Init; Delay_Clock.Init; loop LED_RED.Set; Delay_Clock...
6,838
ada
1
stcarrez/helios
src/helios-reports-remote.ads
----------------------------------------------------------------------- -- helios-reports-remote -- Send reports to a remote server using REST API -- 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...
6,839
ada
3
stcarrez/ada-css
src/css-core-errors-default.ads
<filename>src/css-core-errors-default.ads<gh_stars>1-10 ----------------------------------------------------------------------- -- css-core-errors-default -- Error handler interface -- Copyright (C) 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- ...
6,840
ada
19
jquorning/ada-security
regtests/security-permissions-tests.ads
<reponame>jquorning/ada-security<filename>regtests/security-permissions-tests.ads<gh_stars>10-100 ----------------------------------------------------------------------- -- Security-permissions-tests - Unit tests for Security.Permissions -- Copyright (C) 2011, 2012, 2016 <NAME> -- Written by <NAME> (<EMAIL>) -- -- ...
6,841
ada
0
jfouquart/synth
src/display.ads
<reponame>jfouquart/synth<gh_stars>0 -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Terminal_Interface.Curses; with Definitions; use Definitions; package Display is package TIC renames Terminal_Interface.Curses; subtype history_origin is String...
6,842
ada
15
jquorning/dynamo
src/gen-artifacts-distribs.adb
<reponame>jquorning/dynamo<gh_stars>10-100 ----------------------------------------------------------------------- -- gen-artifacts-distribs -- Artifact for distributions -- Copyright (C) 2012, 2013, 2015, 2020, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "Li...
6,843
ada
2
thindil/tashy2
tests/tk-labelframe-label_frame_create_options_test_data.adb
<filename>tests/tk-labelframe-label_frame_create_options_test_data.adb -- This package is intended to set up and tear down the test environment. -- Once created by GNATtest, this package will never be overwritten -- automatically. Contents of this package can be modified in any way -- except for sections surrounde...
6,844
ada
22
FardaleM/metalang
out/euler14.adb
<gh_stars>10-100 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 euler14 is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Writ...
6,845
ada
1
LaudateCorpus1/RosettaCodeData
Task/Old-lady-swallowed-a-fly/Ada/old-lady-swallowed-a-fly.ada
with Ada.Text_IO, Ada.Containers.Indefinite_Doubly_Linked_Lists; use Ada.Text_IO; procedure Swallow_Fly is package Strings is new Ada.Containers.Indefinite_Doubly_Linked_Lists(String); Lines, Animals: Strings.List; procedure Swallow(Animal: String; Second_Line: String; ...
6,846
ada
12
TUM-EI-RCS/StratoX
tests/polymorphism/src/generic_sensor.ads
<reponame>TUM-EI-RCS/StratoX<gh_stars>10-100 -- Institution: Technische Universitaet Muenchen -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: <NAME> (<EMAIL>) -- <NAME> (<EMAIL>) -- with Ada.Real_Time; with Generic_Signal; -- those are required for LSP wit...
6,847
ada
33
ytomino/drake
source/machine-apple-darwin/s-sysall.adb
<filename>source/machine-apple-darwin/s-sysall.adb pragma Check_Policy (Trace => Ignore); with Ada; -- assertions with System.Debug; -- assertions with C.stdlib; with C.sys.mman; with C.unistd; package body System.System_Allocators is pragma Suppress (All_Checks); use type C.signed_int; -- implementation ...
6,848
ada
0
joffreyhuguet/LmcpGen
ada/src/afrl/cmasi/afrl-cmasi-operatingregion.ads
<filename>ada/src/afrl/cmasi/afrl-cmasi-operatingregion.ads with avtas.lmcp.types; use avtas.lmcp.types; with afrl.cmasi.object; use afrl.cmasi.object; with afrl.cmasi.enumerations; use afrl.cmasi.enumerations; with Ada.Containers.Vectors; package afrl.cmasi.operatingRegion is type OperatingRegion is new afrl.cmas...
6,849
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/allocator_maxalign1.adb
-- { dg-do run } with System.Storage_Elements; use System.Storage_Elements; with Ada.Unchecked_Deallocation; procedure Allocator_Maxalign1 is Max_Alignment : constant := Standard'Maximum_Alignment; type Block is record X : Integer; end record; for Block'Alignment use Standard'Maximum_Alignment; ...
6,850
ada
1
damaki/cobs
tests/src/cobs_tests.ads
<reponame>damaki/cobs<filename>tests/src/cobs_tests.ads ------------------------------------------------------------------------------- -- Copyright (c) 2020 <NAME> -- -- Permission is hereby granted, free of charge, to any person obtaining a -- copy of this software and associated documentation files (the "Software...
6,851
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/s-tasdeb.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
6,852
ada
1
zrmyers/VulkanAda
src/vulkan-math/genmatrix/vulkan-math-gendmatrix.ads
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 <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 r...
6,853
ada
15
My-Colaborations/dynamo
src/asis/asis-expressions.adb
<reponame>My-Colaborations/dynamo<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT IMPLEMENTATION COMPONENTS -- -- ...
6,854
ada
0
fintatarta/pulsada
src/pulsada.adb
pragma Ada_2012; with Ada.Unchecked_Deallocation; use Ada; package body Pulsada is --------------- -- New_Block -- --------------- function New_Block (N_Channels : Channel_Index; N_Frames : Frame_Counter) return Frame_Block is N : constant Positive := Positive (N_Channels) * P...
6,855
ada
0
thierr26/ada-apsepp
src/apsepp-test_reporter_data_struct_class.ads
<reponame>thierr26/ada-apsepp -- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Ada.Tags; use Ada.Tags; with Apsepp.Test_Event_Class; use Apsepp.Test_Event_Class; package Apsepp.Test_Reporter_Data_Struct_Class is type Event_Count is new Natural; subty...
6,856
ada
0
pat-rogers/OpenUxAS
src/ada/src/common_formal_containers.ads
<filename>src/ada/src/common_formal_containers.ads with Ada.Containers.Formal_Vectors; -- with Ada.Containers.Formal_Hashed_Sets; with Ada.Containers.Formal_Ordered_Sets; with AVTAS.LMCP.Types; use AVTAS.LMCP.Types; package Common_Formal_Containers with SPARK_Mode is package Int64_Vects is new Ada.Containers.For...
6,857
ada
3
rogermc2/GA_Ada
ga_lib/src/palet.adb
with Shader_Manager; package body Palet is G_Draw_State : Draw_State; function Background_Colour (Palet_Data : Colour_Palet) return Color is begin return Palet_Data.Background_Colour; end Background_Colour; -- ------------------------------------------------------------------------ func...
6,858
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32f103/stm32_svd-gpio.ads
<filename>arch/ARM/STM32/svd/stm32f103/stm32_svd-gpio.ads -- This spec has been automatically generated from STM32F103.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.GPIO is pragma Preelaborate; --------------- -- Registe...
6,859
ada
0
yannickmoy/spat
src/spat-log.ads
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the...
6,860
ada
0
Letractively/ada-gen
src/gnat/err_vars.ads
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
6,861
ada
0
My-Colaborations/ada-el
src/el-variables.ads
----------------------------------------------------------------------- -- EL.Variables -- Variable mapper -- 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 the License...
6,862
ada
1
jquorning/WeDo
source/terminal_io.ads
<reponame>jquorning/WeDo pragma License (Restricted); -- -- Copyright (C) 2020 <NAME> All Rights Reserved. -- -- 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 other...
6,863
ada
3
Fabien-Chouteau/ada-lvlg
src/lv-objx-chart.ads
with Lv.Area; with Lv.Color; with Lv.Style; package Lv.Objx.Chart is subtype Instance is Obj_T; type Series is private; type Chart_Type_T is (Type_Line, Type_Column, Type_Point); -- Create a chart background objects -- @param par pointer to an object, it will be the parent of the new chart backgro...
6,864
ada
0
HeisenbugLtd/cache-sim
src/caches-tests.ads
------------------------------------------------------------------------------ -- Copyright (C) 2012-2020 by Heisenbug Ltd. -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the LICE...
6,865
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/slice8_pkg2.ads
generic Line_Length : Natural; Max_Lines : Natural; package Slice8_Pkg2 is Subtype Index is Natural Range 0..Line_length; Subtype Line_Count is Natural Range 0..Max_Lines; Type Line (Size : Index := 0) is Record Data : String (1..Size); End Record; Type Lines is Array (Line_Cou...
6,866
ada
7
kimtg/euler-ada
euler12.adb
<gh_stars>1-10 with Ada.Text_IO; procedure Euler12 is Triangle_Num : Positive := 1; I : Positive := 1; J : Positive; Num_Divisors : Natural; begin loop Num_Divisors := 0; J := 1; while J * J <= Triangle_Num loop if Triangle_Num mod J = 0 then Num_Divisors := Num_Divisors + 2; ...
6,867
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_video_gstsurfaceconverter_h.ads
<reponame>persan/A-gst<filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_video_gstsurfaceconverter_h.ads<gh_stars>1-10 pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_video_gstsurfacebuffer_h; with glib; w...
6,868
ada
30
jscparker/math_packages
ordinary/four_body.ads
<gh_stars>10-100 -- -- package Four_Body -- -- The package defines a data structure for the N-Body -- gravitational problem in two dimensions. -- -- N = 4, but can be set to anything. -- -- N-Body equation: -- Acceleration(Body_j) -- = SumOver(Body_k) { Mass(Body_k) * G * Delta_R / NORM(Delta_R)**3 } -- -- where D...
6,869
ada
0
My-Colaborations/ada-ado
regtests/model/regtests-statements-model.ads
----------------------------------------------------------------------- -- Regtests.Statements.Model -- Regtests.Statements.Model ----------------------------------------------------------------------- -- File generated by ada-gen DO NOT MODIFY -- Template used: templates/model/package-spec.xhtml -- Ada Generator: ...
6,870
ada
0
zrmyers/GLFWAda
tests/glfw_test-environment.adb
-------------------------------------------------------------------------------- -- MIT License -- -- Copyright (c) 2020 <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 wi...
6,871
ada
7,053
Elon143/Amass
resources/scripts/api/quake.ads
-- Copyright 2021 <NAME>. All rights reserved. -- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. local json = require("json") name = "Quake" type = "api" function start() set_rate_limit(1) end function check() local c local cfg = datasrc_config() if cf...
6,872
ada
80
thindil/steamsky
tests/crew-inventory-test_data-tests.adb
-- 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 set up and tear down the t...
6,873
ada
0
fintatarta/eugen
src/Sym_Expr/test/test-solving.adb
with Test_Report; use Test_Report; with Symbolic_Expressions.Solving; with Ada.Strings.Unbounded; procedure Test.Solving is use Ada.Strings.Unbounded; function "+" (X : String) return Unbounded_String renames To_Unbounded_String; function "+" (X : Unbounded_String)...
6,874
ada
20
charlie5/lace
2-low/neural/source/private/neural-privvy.ads
<reponame>charlie5/lace<gh_stars>10-100 with Fann_C; with Interfaces.C.pointers; use Interfaces; private package Neural.Privvy is package fann_type_Pointers is new interfaces.c.Pointers (index => c.size_t, element ...
6,875
ada
24
svn2github/matreshka
source/amf/ocl/amf-ocl-call_exps-collections.ads
<filename>source/amf/ocl/amf-ocl-call_exps-collections.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
6,876
ada
5
HeisenbugLtd/flac-ada
sources/flac-frames.ads
<gh_stars>1-10 ------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam H...
6,877
ada
20
charlie5/lace
4-high/gel/source/forge/gel-forge.ads
with gel.Applet.gui_world, gel.Applet.gui_and_sim_world, gel.Sprite, gel.World, Physics, openGL.Primitive, openGL.Font, openGL.Palette; package gel.Forge -- -- Provides utility constructor functions for various GEL classes. -- is ----------- --- Applets -- funct...
6,878
ada
0
lumalisan/EspeblancaYLos7PPs
def_monitor.adb
with Ada.Text_IO; use Ada.Text_IO; package body def_monitor is protected body Monitor is entry menjar when (assegut = true and servit = true) is begin Put_Line("--------------> {Nombre Enano} Menjant!!!"); assegut := false; servit := false; end menjar; entry put_honey when (jar < MAX) is begin ...
6,879
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/broadphase/impact-d3-collision-bounding_volume_tree.ads
with impact.d3.aabb_Util, ada.containers.Indefinite_Vectors, Interfaces; with ada.containers.Vectors; package impact.d3.collision.bounding_volume_Tree -- -- The impact.d3.collision.bounding_volume_Tree class implements a fast dynamic bounding volume tree based on axis aligned bounding boxes (aabb tree). ...
6,880
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vfa1_1.adb
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vfa1_1.adb -- { dg-do compile } -- { dg-options "-fdump-tree-gimple" } with VFA1_Pkg; use VFA1_Pkg; procedure VFA1_1 is Temp : Integer; function F (I : Integer) return Integer is begin return I; end; function F2 return Integer is begin return...
6,881
ada
17
WinterAlexander/Ada-IntelliJ
src/main/resources/project-templates/aws_web_server/src/@_project_name_@-main.adb
<filename>src/main/resources/project-templates/aws_web_server/src/@_project_name_@-main.adb with AWS.Config.Set; with AWS.Services.Dispatchers.URI; with AWS.Server; with @_Project_Name_@.Dispatchers; procedure @_Project_Name_@.Main is use AWS; Web_Server : Server.HTTP; Web_Config : Config.O...
6,882
ada
0
MXP2095onetechguy/SnekTheGam
Ada.adb
C:\Users\Noah Lie\OneDrive\Desktop\snek>"C:\Users\No<NAME>\OneDrive\Desktop\snek\bin\Debug\net5.0\snek" O hmmm.. Reading C:\Users\No<NAME>\SnekTheGam\Storage.json Window handle is invalid, cannot resume. Full message: System.IO.IOException: The handle is invalid. at System.ConsolePal.Clear() at System....
6,883
ada
33
ytomino/drake
source/strings/a-zchla1.ads
<reponame>ytomino/drake pragma License (Unrestricted); -- extended unit, not in RM package Ada.Wide_Wide_Characters.Latin_1 is -- Wide_Wide_Character version of Ada.Characters.Latin_1. pragma Pure; -- Control characters: NUL : constant Wide_Wide_Character := Wide_Wide_Character'Val (0); SOH : ...
6,884
ada
0
strenkml/EE368
memsim-master/src/memory-spm.adb
<filename>memsim-master/src/memory-spm.adb with BRAM; with Device; use Device; with CACTI; package body Memory.SPM is MIN_WORD_COUNT : constant := 64; function Create_SPM(mem : access Memory_Type'Class; size : Natural; latency : Time_Type := 1) return...
6,885
ada
4
DNSCatcher/DNSCatcher
src/dnscatcher/dns/processor/rdata/dnscatcher-dns-processor-rdata-domain_name_response_parser.adb
with Ada.Unchecked_Deallocation; with Ada.Streams; use Ada.Streams; package body DNSCatcher.DNS.Processor.RData.Domain_Name_Response_Parser is -- A records are simply four octlets which we need to turn into integers -- then decode back into an ASCII string pragma Warnings (Off, "formal parameter ""DNS_Header...
6,886
ada
0
wooky/aoc.kt
src/main/ada/2019/aoc-aoc_2019-day05.ads
<gh_stars>0 with Intcode; package AOC.AOC_2019.Day05 is type Day_05 is new Day.Day with private; overriding procedure Init (D : in out Day_05; Root : String); overriding function Part_1 (D : Day_05) return String; overriding function Part_2 (D : Day_05) return String; private type Day_05 is new Day.Day...
6,887
ada
1
LaudateCorpus1/RosettaCodeData
Task/XML-Output/Ada/xml-output-2.ada
<gh_stars>1-10 with Ada.Wide_Wide_Text_IO; with League.Strings; with XML.SAX.Attributes; with XML.SAX.Pretty_Writers; procedure Main is function "+" (Item : Wide_Wide_String) return League.Strings.Universal_String renames League.Strings.To_Universal_String; type Remarks is record Name : Lea...
6,888
ada
5
docandrew/troodon
src/util.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Interfaces.C; with Interfaces.C.Strings; with System; with xcb; use xcb; with xproto; use xproto; package Util is type errorPtr is access all xcb_generic_error_t; --------------------------------------------------------------------------- ...
6,889
ada
5
Kidev/DemoAdaPhysics2D
src/demologic.ads
<gh_stars>1-10 with Worlds; use Worlds; with Entities; use Entities; with Materials; use Materials; with Menus; use Menus; with Vectors2D; use Vectors2D; with Links; use Links; package DemoLogic is Hold : Natural := 0; LastX, LastY : Integer := 0; GlobalGravity : Vec2D := (0.0, 0.0); MaxHold : constant...
6,890
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/src/a-intnam__8349e.ads
<reponame>JCGobbi/Nucleo-STM32G474RE ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
6,891
ada
1
skill-lang/skillAdaTestSuite
test/test.ads
<filename>test/test.ads package Test is end Test;
6,892
ada
1
LaudateCorpus1/RosettaCodeData
Task/Logical-operations/Ada/logical-operations.ada
<gh_stars>1-10 procedure Print_Logic(A : Boolean; B : Boolean) is begin Put_Line("A and B is " & Boolean'Image(A and B)); Put_Line("A or B is " & Boolean'Image(A or B)); Put_Line("A xor B is " & Boolean'Image(A xor B)); Put_Line("not A is " & Boolean'Image(not A)); end Print_Logic;
6,893
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-coinve.adb
<filename>llvm-gcc-4.2-2.9/gcc/ada/a-coinve.adb ------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- ...
6,894
ada
1
reznikmm/network
source/network-generic_promises.adb
<reponame>reznikmm/network with Ada.Unchecked_Deallocation; package body Network.Generic_Promises is procedure Free is new Ada.Unchecked_Deallocation (List_Node, List_Node_Access); function Has_Listener (Self : Promise'Class; Value : not null Listener_Access) return Boolean; --------------...
6,895
ada
3
vasil-sd/ada-tlsf
bits/src/search/axiom/bitoperations-search-axiom.ads
generic package BitOperations.Search.Axiom with SPARK_Mode, Pure, Ghost is end BitOperations.Search.Axiom;
6,896
ada
20
HeisenbugLtd/spat
src/core/spat-proof_item.ads
------------------------------------------------------------------------------ -- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>) -- -- This work is free. You can redistribute it and/or modify it under the -- terms of the Do What The Fuck You Want To Public License, Version 2, -- as published by Sam Hocevar. See the...
6,897
ada
0
cocolab8/cocktail
reuse/ada/errors.adb
<filename>reuse/ada/errors.adb<gh_stars>0 -- $Id: Errors.mi,v 1.5 1994/08/15 22:13:23 grosch rel $ -- $Log: Errors.mi,v $ -- Ich, <NAME>, Informatiker, Aug. 1994 with Strings, Idents, Sets, Position, Sort, Unchecked_Conversion; use Strings, Idents, Sets, Position; package body Errors is package Int_Io is new Int...
6,898
ada
0
sebsgit/textproc
src/pixelarray.ads
with Ada.Containers.Vectors; use Ada.Containers; with Ada.Finalization; with Interfaces.C; with Interfaces.C.Pointers; package PixelArray is pragma Elaborate_Body; pragma Assertion_Policy (Pre => Check, Post => Check, Type_Invariant => Check); type Pixe...
6,899
ada
0
reznikmm/gela
source/oasis/program-elements-generic_package_declarations.ads
<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Lexical_Elements; with Program.Element_Vectors; with Program.Elements.Defining_Names; with Program.Elements.As...