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,900
ada
0
hgrodriguez/edc-client
src/edc_client-alpha-block1.adb
-- -- Copyright 2021 (C) <NAME> -- -- SPDX-License-Identifier: BSD-3-Clause -- -- private with Edc_Client.Alpha.Common; private with Edc_Client.Alpha.Common; package body Edc_Client.Alpha.Block1 is Block : constant Character := '1'; --------------------------------------------------------------------------...
9,901
ada
1
LaudateCorpus1/RosettaCodeData
Task/Execute-a-system-command/Ada/execute-a-system-command-3.ada
<filename>Task/Execute-a-system-command/Ada/execute-a-system-command-3.ada with Ada.Text_IO; use Ada.Text_IO; with System.OS_Lib; use System.OS_Lib; procedure Execute_Synchronously is Result : Integer; Arguments : Argument_List := ( 1=> new String'("cmd.exe"), 2=> n...
9,902
ada
4
davidkristola/vole
kv-avm-brokers.adb
<reponame>davidkristola/vole with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with kv.avm.Log; with kv.avm.Tuples; package body kv.avm.Brokers is use kv.avm.Registers; use kv.avm.Control; use kv.avm.Log; use Actor_Maps; ---------------------------------------------------------------------------...
9,903
ada
0
xeenta/learning-ada
src/007/dll.adb
with Ada.Text_IO, Ada.Containers.Doubly_Linked_Lists; use Ada.Text_IO; procedure dll is Equal_Limit : constant := 10; generic Threshold : in Integer := 0; function Special_Equal (Left, Right : Integer) return Boolean; function Special_Equal (Left, Right : Integer) return Boolean is ...
9,904
ada
0
joffreyhuguet/LmcpGen
ada/src/avtas/lmcp/avtas-lmcp-types.ads
<reponame>joffreyhuguet/LmcpGen<gh_stars>0 with Interfaces; use Interfaces; package avtas.lmcp.types is -- C/C++ compatible integer types type UInt16_t is new Interfaces.Unsigned_16; type UInt32_t is new Interfaces.Unsigned_32; type Int16_t is new Interfaces.Integer_16; type Int32_t is new Interface...
9,905
ada
1
mullikine/RosettaCodeData
Task/Terminal-control-Display-an-extended-character/Ada/terminal-control-display-an-extended-character-2.ada
with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; procedure Unicode is begin Put("札幌"); end Unicode;
9,906
ada
3
stcarrez/ada-stemmer
src/lang/stemmer-irish.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/ package body Stemmer.Irish is pragma Style_Checks ("-mr"); pragma Warnings (Off, "*variable*is never read and never assigned*"); pragma Warnings (Off, "*mode could be*instead of*"); pragma Warnings (Off, "*formal parameter.*is not modified*"); ...
9,907
ada
1
charlie5/lace-alire
4-high/gel/source/platform/sdl/gel-window-sdl.adb
with SDL.Events.Windows, SDL.Events.Keyboards, SDL.Events.Events, SDL.Events.Mice, SDL.Video.Windows.Makers, SDL.Log, ada.Text_IO; package body gel.Window.sdl is package std_SDL renames standard.SDL; use std_SDL, std_SDL.Events; function to_gel_Key (From : in std_...
9,908
ada
4
davidkristola/vole
kv-avm.ads
package kv.avm is pragma Pure; end kv.avm;
9,909
ada
1
dshadrin/AProxy
src/configtree.ads
---------------------------------------- -- Copyright (C) 2019 <NAME> -- -- All rights reserved. -- ---------------------------------------- with Pal; with Ada.Finalization; with Ada.Strings.Unbounded; --use Ada.Strings.Unbounded; -------------------------------------------------------------------------...
9,910
ada
20
charlie5/lace
3-mid/opengl/source/lean/model/opengl-model-sphere-colored.ads
<reponame>charlie5/lace<filename>3-mid/opengl/source/lean/model/opengl-model-sphere-colored.ads with openGL.Geometry; package openGL.Model.sphere.colored -- -- Models a colored sphere. -- is type Item is new openGL.Model.sphere.item with -- TODO: Make private. record Color : lucid_Color; ...
9,911
ada
15
jquorning/dynamo
src/gen-artifacts-xmi.adb
----------------------------------------------------------------------- -- gen-artifacts-xmi -- UML-XMI artifact for Code Generator -- Copyright (C) 2012, 2013, 2014, 2015, 2016, 2018, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not us...
9,912
ada
1
jweese/Ada_Vent_19
lib/intcode.adb
with Ada.Text_IO; with Intcode.Op; use Intcode.Op; package body Intcode is protected body Port is entry Put(I: in Memory.Value) when Status /= Full is begin if Status = Empty then Value := I; Status := Full; end if; end Put; entry Get(X: out Maybe_M...
9,913
ada
0
optikos/oasis
source/nodes/program-nodes-object_access_types.adb
<reponame>optikos/oasis<filename>source/nodes/program-nodes-object_access_types.adb<gh_stars>0 -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Object_Access_Types is fu...
9,914
ada
30
jrmarino/AdaBase
testcases/bits/bits.adb
with AdaBase; with CommonText; with Connect; with Ada.Text_IO; with AdaBase.Results.Sets; with AdaBase.Results.Converters; procedure Bits is package CON renames Connect; package TIO renames Ada.Text_IO; package ARS renames AdaBase.Results.Sets; package ARC renames AdaBase.Results.Converters; package CT...
9,915
ada
0
thomas070605/shoot-n-loot
src/levels.adb
-- Shoot'n'loot -- Copyright (c) 2020 <NAME> with GESTE_Config; use GESTE_Config; with GESTE.Grid; with GESTE.Tile_Bank; with GESTE.Sprite; with Monsters; with Chests; with Player; with Score_Display; with Sound; with Game_Assets; use Game_Assets; with Game_Assets.Tileset; with Game_Assets.Tileset_Collisions; with...
9,916
ada
60
RREE/ada-util
src/sys/encoders/util-encoders-aes.adb
<gh_stars>10-100 ----------------------------------------------------------------------- -- util-encoders-aes -- AES encryption and decryption -- Copyright (C) 2017, 2019, 2020, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this ...
9,917
ada
0
manthonyaiello/OpenUxAS
src/ada/src/services/spark/common.ads
<reponame>manthonyaiello/OpenUxAS with Ada.Containers.Functional_Vectors; with Ada.Containers.Functional_Sets; with Ada.Containers.Functional_Maps; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Interfaces; package Common with SPARK_Mode is type UInt32 is new Interfaces.Unsigned_32; ty...
9,918
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/stack_usage3_pkg.ads
package Stack_Usage3_Pkg is subtype Small_String is String (1..80); function Diag (S : String) return Small_String; end Stack_Usage3_Pkg;
9,919
ada
0
yannickmoy/spat
src/spat-command_line.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...
9,920
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/a-exetim-posix.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
9,921
ada
0
strenkml/EE368
memsim-master/src/parser-parse_join.adb
with Memory.Join; separate (Parser) procedure Parse_Join(parser : in out Parser_Type; result : out Memory_Pointer) is wrapper : Wrapper_Pointer; index : Natural; begin Pop_Wrapper(parser, wrapper, index); result := Memory_Pointer(Join.Create_Join(wrapper, index)); end Parse_Jo...
9,922
ada
13
annexi-strayline/AURA
validation.adb
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
9,923
ada
0
shapeshift-legacy/coinquery
V1/ADA/Dockerfile.ada
<filename>V1/ADA/Dockerfile.ada FROM cardano-container-mainnet-explorer:latest # for syncing blockchain RUN mkdir wallet # expose cardano node ports EXPOSE 8100 8090 8000 ARG COMMIT ENV COMMIT ${COMMIT:-undefined} CMD ["/bin/cardano-start"]
9,924
ada
1
Fabien-Chouteau/samd51-hal
src/svd/sam_svd-sdhc.ads
pragma Style_Checks (Off); -- This spec has been automatically generated from ATSAMD51G19A.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package SAM_SVD.SDHC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype SDHC_BSR_BLOCKSIZE_Field is HAL.UInt...
9,925
ada
0
xuedong/mini-ada
tests/syntax/bad/testfile-params-1.adb
<filename>tests/syntax/bad/testfile-params-1.adb<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Test is procedure P() is begin x := 0; end; begin Put('a'); end;
9,926
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
stm32f3/stm32f303xe/svd/stm32_svd-fpu.ads
<filename>stm32f3/stm32f303xe/svd/stm32_svd-fpu.ads<gh_stars>1-10 -- This spec has been automatically generated from STM32F303xE.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with System; package STM32_SVD.FPU is pragma Preelaborate; --------------- -- Register...
9,927
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l4x5/stm32_svd-dbgmcu.ads
-- This spec has been automatically generated from STM32L4x5.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.DBGMCU is pragma Preelaborate; --------------- -- Registers -- --------------- subtype IDCODE_DEV_ID_Field...
9,928
ada
0
djgoku/RosettaCodeData
Task/Miller-Rabin-primality-test/Ada/miller-rabin-primality-test-5.ada
<filename>Task/Miller-Rabin-primality-test/Ada/miller-rabin-primality-test-5.ada<gh_stars>0 with Ada.Text_IO, Crypto.Types.Big_Numbers, Ada.Numerics.Discrete_Random; procedure Miller_Rabin is Bound: constant Positive := 256; -- can be any multiple of 32 package LN is new Crypto.Types.Big_Numbers (Bound); us...
9,929
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/zfp-stm32g474/gnat/s-imagei.adb
<filename>bb-runtimes/runtimes/zfp-stm32g474/gnat/s-imagei.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
9,930
ada
11
reznikmm/ada_lsp
source/protocol/lsp-servers.adb
-- Copyright (c) 2017 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Ada.Characters.Latin_1; with League.JSON.Arrays; with League.JSON.Documents; with League.JSON.Objects; with League.JSON.Streams; with League.JSON...
9,931
ada
24
svn2github/matreshka
source/amf/uml/amf-uml-structured_activity_nodes.ads
<filename>source/amf/uml/amf-uml-structured_activity_nodes.ads<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
9,932
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array2.ads
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array2.ads package array2 is type RIC_TYPE is (RIC1, RIC2); for RIC_TYPE'SIZE use 32; function MAX return Integer; end array2;
9,933
ada
2
thindil/tashy2
tests/tk-ttkwidget-ttk_widget_options_test_data-ttk_widget_options_tests.ads
<filename>tests/tk-ttkwidget-ttk_widget_options_test_data-ttk_widget_options_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 Tk.TtkWidget.Ttk_Widget_Options_Test_D...
9,934
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline1_pkg.ads
package Inline1_Pkg is function Valid_Real (Number : Float) return Boolean; pragma Inline_Always (Valid_Real); function Invalid_Real return Float; pragma Inline_Always (Invalid_Real); end Inline1_Pkg;
9,935
ada
0
faicaltoubali/ENSEEIHT
Projects/Arbre_Genealogique/livrables/test_arbre_foret.adb
<reponame>faicaltoubali/ENSEEIHT with arbre_foret; with Ada.Text_IO ; use Ada.Text_IO; procedure test_arbre_foret is package arbre_foret_100 is new arbre_foret ( Capacite => 100 ); use arbre_foret_100 ; Arbre : T_Abr_Foret; procedure Construire_Arbre_Foret ( Abr : out T_Abr_Foret ) is begin ...
9,936
ada
20
charlie5/lace
1-base/math/source/generic/pure/algebra/any_math-any_algebra-any_linear-any_d3.ads
<reponame>charlie5/lace generic package any_math.any_Algebra.any_linear.any_d3 is pragma Pure; ------------ --- Vector_3 -- function Distance (From, To : in Vector_3) return Real; function Midpoint (From, To : in Vector_3) return Vector_3; function Interpolated (From, To : in Vecto...
9,937
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/targparm.adb
<filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/targparm.adb ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
9,938
ada
6
jquorning/ada-el
regtests/test_bean.adb
<gh_stars>1-10 ----------------------------------------------------------------------- -- Test_Bean - A simple bean for unit tests -- 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 com...
9,939
ada
2
morbos/Ada_Drivers_Library
arch/ARM/NXP/svd/lpc55s6x/nxp_svd-ctimer.ads
-- Copyright 2016-2019 NXP -- All rights reserved.SPDX-License-Identifier: BSD-3-Clause -- This spec has been automatically generated from LPC55S6x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package NXP_SVD.CTIMER is pragma Preelaborate; ...
9,940
ada
13
annexi-strayline/AURA
ada_lexical_parser.adb
------------------------------------------------------------------------------ -- -- -- Ada User Repository Annex (AURA) -- -- ANNEXI-STRAYLINE Reference Implementation -- -- ...
9,941
ada
2
morbos/Ada_Drivers_Library
arch/ARM/NXP/drivers/nxp-inputmux.adb
<reponame>morbos/Ada_Drivers_Library with HAL; use HAL; with NXP.Device; use NXP.Device; with NXP_SVD; use NXP_SVD; with NXP_SVD.SYSCON; use NXP_SVD.SYSCON; with NXP_SVD.INPUTMUX; use NXP_SVD.INPUTMUX; with System; use System; package body NXP.InputMux is procedure Enab...
9,942
ada
15
AdaCore/training_material
courses/spark_for_ada_programmers/labs/source/030_spark_language_and_tools/simple_io.adb
<reponame>AdaCore/training_material<gh_stars>10-100 with Ada.Text_IO; package body Simple_IO with SPARK_Mode => Off is procedure Put_Line (S : in String) is begin Ada.Text_IO.Put_Line (S); end Put_Line; procedure Put_Line (S : in Integer) is begin Ada.Text_IO.Put_Line (Integer'Imag...
9,943
ada
0
simonjwright/VL53L1X
demo/vl53l1x_demo.ads
<gh_stars>0 package VL53L1X_Demo is end VL53L1X_Demo;
9,944
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/private_extension_declaration.ads
<reponame>ouankou/rose package private_extension_declaration is type Expression is tagged null record; type PrivateType is new Expression with private; private type PrivateType is new Expression with record The_Variable : Integer; end record; end private_extension_declaration;
9,945
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/gen_emacs_wisi_packrat_parse.adb
<gh_stars>0 -- Abstract : -- -- See spec. -- -- Copyright (C) 2018 All Rights Reserved. -- -- This program is free software; you can redistribute it and/or -- modify it under terms of the GNU General Public License as -- published by the Free Software Foundation; either version 3, or (at -- your option) any late...
9,946
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array12.adb
-- { dg-do run } procedure Array12 is function N return Integer is begin return 0; end; subtype Element is String (1 .. N); type Ptr is access all Element; type Vector is array (Positive range <>) of aliased Element; V : Vector (1..2); begin if Ptr'(V(1)'Access) = V(2)'Access then raise Pro...
9,947
ada
4
octonion/examples
languages/python-ada/b~unit.ads
<filename>languages/python-ada/b~unit.ads pragma Ada_95; pragma Warnings (Off); with System; package ada_main is procedure adainit; pragma Export (C, adainit, "adainit"); procedure adafinal; pragma Export (C, adafinal, "adafinal"); type Version_32 is mod 2 ** 32; u00001 : constant Version_32 := 16#...
9,948
ada
0
jacksonchen07/Chatbox
server.adb
<reponame>jacksonchen07/Chatbox with GNAT.Sockets; use GNAT.Sockets; with Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Containers.Vectors; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; ...
9,949
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf52/nrf_svd-gpiote.ads
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
9,950
ada
0
zyron92/banana_tree_generator
traceur_intermediaire.ads
<reponame>zyron92/banana_tree_generator with Svg_Helpers, Parseur, Ada.Text_Io, Ada.Integer_Text_Io; use Svg_Helpers, Parseur, Ada.Text_Io, Ada.Integer_Text_Io; package Traceur_Intermediaire is --Tracé des arètes et des points de contrôle (ou mise à jours des points de contrôle sans tracer) procedure Tracer_...
9,951
ada
1
A1rPun/nurture
language/ada/helloworld.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Helloworld is begin Put_Line("Hello world!"); end HelloWorld;
9,952
ada
0
sebsgit/textproc
src/nnclassifier.adb
with Ada.Text_IO; package body NNClassifier is function create(config: NeuralNet.Config; numberOfClasses: Positive) return DNN is result: DNN(config.size + 1); configWithLogits: NeuralNet.Config(config.size + 1); begin configWithLogits.act := config.act; configWithLogits.lr := config.lr; ...
9,953
ada
0
Lucretia/old_nehe_ada95
sdl/sdl.adb
with Ada.Unchecked_Conversion; with Interfaces.C; package body SDL is function Init(Flags : in Capabilities) return Boolean is use type Interfaces.C.Int; function Convert is new Ada.Unchecked_Conversion(Source => Capabilities, Target => Interfaces.C.Unsigned); function SDL_Init(Flags...
9,954
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/driversL5/stm32-dma.ads
<reponame>morbos/Ada_Drivers_Library ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- ...
9,955
ada
0
cliffano/pokeapi-clients
clients/ada-server/generated/src/-servers.adb
<filename>clients/ada-server/generated/src/-servers.adb -- -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- ------------ EDIT NOTE ------------ -- This file was generated with openapi-generator. You can modify it to implement -- the server. After y...
9,956
ada
52
onox/orka
orka_simd/src/x86/generic/orka-simd-avx-doubles-math.adb
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2017 onox <<EMAIL>> -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -...
9,957
ada
0
pdibez/mundo-aspiradora
source/mundo.adb
with estado_casillero,ada.Text_IO; use estado_casillero,ada.Text_IO; package body mundo is procedure inicializar_mundo (m : in out t_mundo) is c : t_casillero ; begin c.set_estado(estado_casillero.Sucio); m.casilleros := (others => c); m.aspiradora.set_direccion(direccion.Izquierda); ...
9,958
ada
4
faelys/gela-asis
tools/xml2ayacc/xml_io/xml_io-base_readers_streams.ads
------------------------------------------------------------------------------ -- <NAME> A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
9,959
ada
47
wooddoor/Loli3
固件源码/三代控A12-带模型命名源码-TK-SDCC工程/DebugRel/main.adb
M:main F:G$Delay1ms$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$delay_ms$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$EEPROM_read$0$0({2}DF,SC:U),C,0,0,0,0,0 F:G$EEPROM_write$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$EEPROM_clean$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$Data_change$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$DATA_read1$0$0({2}DF,SV:S),C,0,0,0,0,0 F:G$DATA_s...
9,960
ada
0
iyan22/AprendeAda
ejercicios2/prueba_esta_en_vector.adb
with Ada.Text_Io; use Ada.Text_Io; with vectores; use vectores; with esta_en_vector; procedure prueba_esta_en_vector is -- este programa hace llamadas a la funcion esta_en_vector y es util -- para comprobar si su funcionamiento es correcto procedure escribir_booleano(valor: in Boolean) is begin if(v...
9,961
ada
5
docandrew/troodon
src/setup.ads
<gh_stars>1-10 with bits_stdint_uintn_h; with GLX; with Xlib; with xcb; with xcb_damage; with xcb_ewmh; with xproto; package Setup is -- Thrown if there's a fatal error during the initialization process. SetupException : exception; type connectionPtr is access xcb.xcb_connection_t; -- Contains at...
9,962
ada
33
ytomino/drake
examples/diff_ucd_hfs.adb
-- compare two normalization tables -- expected result: -- ------------------------- -- decomposing maps: -- size of UCD: 981 -- size of VFS: 970 -- only in UCD: 16#1B06# -- only in UCD: 16#1B08# -- only in UCD: 16#1B0A# -- only in UCD: 16#1B0C# -- only in UCD: 16#1B0E# -- only i...
9,963
ada
3
ytomino/boehmgc-ada
source/gc-pools.adb
<reponame>ytomino/boehmgc-ada with Ada.Unchecked_Conversion; pragma Warnings (Off); with System.Finalization_Root; pragma Warnings (On); with C.gc.gc; with C.gc.gc_typed; package body GC.Pools is use type System.Address; use type System.Storage_Elements.Storage_Count; use type C.size_t; package Finalization is ...
9,964
ada
32
robdaemon/AdaYaml
src/implementation/yaml-dom-node.adb
<reponame>robdaemon/AdaYaml -- part of AdaYaml, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Strings.Hash; with System; with Yaml.Dom.Node_Memory; package body Yaml.Dom.Node is use type Text.Reference; use type Ada.Containers.Hash_Type; use type Count_...
9,965
ada
1
LaudateCorpus1/RosettaCodeData
Task/Infinity/Ada/infinity-1.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; procedure Infinities is function Sup return Float is -- Only for predefined types Result : Float := Float'Last; begin if not Float'Machine_Overflows then Result := Float'Succ (Result); end if; return Result; end Sup; functi...
9,966
ada
2
thorstel/Advent-of-Code-2018
day01/day01.adb
<reponame>thorstel/Advent-of-Code-2018 with Ada.Containers.Ordered_Sets; with Ada.Containers.Vectors; with Ada.Text_IO; use Ada.Containers; use Ada.Text_IO; procedure Day01 is package Integer_Sets is new Ordered_Sets (Element_Type => Integer); package Integer_Vectors is new Vectors (Index_Type => Natural, ...
9,967
ada
0
My-Colaborations/ada-ado
samples/select_user.adb
<reponame>My-Colaborations/ada-ado ----------------------------------------------------------------------- -- select_user - Show usage of query statements -- Copyright (C) 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file e...
9,968
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/a-string.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
9,969
ada
0
zyron92/banana_tree_generator
traceur_final.ads
with Svg_Helpers, Parseur, Ada.Text_Io, Ada.Integer_Text_Io; use Svg_Helpers, Parseur, Ada.Text_Io, Ada.Integer_Text_Io; package Traceur_Final is --Génération du fichier svg du tracé final avec ou sans le tracé intermédiaire procedure Generer_Trace_Final (Nom_Fichier: in string; Couleur_Trait: in RGB; Epaisseur...
9,970
ada
1
jam3st/edk2
HdGfxLib/libgfxinit/common/hw-gfx.ads
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- Copyright (C) 2017 <NAME> <<EMAIL>> -- -- 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...
9,971
ada
286
auzkok/libagar
ada/original_2008/ada-demos/demo.ads
<reponame>auzkok/libagar with agar.gui.window; package demo is window : agar.gui.window.window_access_t; procedure init (name : string; video_width : integer := 640; video_height : integer := 480; window_width : integer := 320; window_height : integer := 240); procedure ru...
9,972
ada
17
jrmarino/ravensource
bucket_8E/ahven/files/extra-src_ahven-framework.adb
--- src/ahven-framework.adb.orig 2014-02-08 21:21:51.000000000 +0000 +++ src/ahven-framework.adb @@ -14,6 +14,8 @@ -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -- +with GNAT.Traceback.Symbolic; +with GNAT.Regpat; with Ada.Strings; with Ada.Unchecked_Deallocation; with Ada.Exceptions; @@ -22,...
9,973
ada
0
zyron92/banana_tree_generator
parseur.ads
with Ada.Text_IO; use Ada.Text_IO; package Parseur is Erreur_Lecture_Config,Erreur_Option,Fichier_Trop_Long : exception; Max_X, Max_Y:Float:=Float'first; Min_X, Min_Y : Float:=Float'Last; type Arrete_Adj; type Ptr_Liste_Arretes_Adj is access Arrete_Adj; type Coord_Point is record X,Y...
9,974
ada
20
charlie5/lace
3-mid/physics/interface/source/physics-object.adb
<reponame>charlie5/lace<filename>3-mid/physics/interface/source/physics-object.adb with ada.unchecked_Deallocation; package body physics.Object is procedure free (Self : in out View) is procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View); begin if Self /= null then ...
9,975
ada
1
spacekookie/learn_ada
simple2.adb
with Ada.Text_IO; use Ada.Text_IO; procedure UglyForm is begin Put("Good form "); Put("can aid in "); Put ("understanding a program,"); New_Line; Put("and bad form "); Put("can make a program "); Put("unreadable."); New_Line; end UglyForm; -- Result of exec...
9,976
ada
0
damaki/EVB1000
src/stm32-iwdg.ads
-- This spec has been automatically generated from STM32F105xx.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; with System; package STM32.IWDG is pragma Preelaborate; --------------- -- Registers -- --------------- ----------------- -- KR_Register -- ----------------- subt...
9,977
ada
2
SMerrony/dgemua
memory_channels.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,978
ada
0
gitter-badger/Ada-tools
AdaToolsTests/Proc.adb
with Intr; use Intr; procedure Proc is end Proc;
9,979
ada
7
stcarrez/resource-embedder
examples/ada-help-binary/src/resources.ads
<reponame>stcarrez/resource-embedder<gh_stars>1-10 package Resources is end Resources;
9,980
ada
33
ytomino/drake
source/s-initia.ads
<reponame>ytomino/drake<filename>source/s-initia.ads pragma License (Unrestricted); -- extended unit, see AI05-0001-1 private with System.Storage_Elements; generic -- type Object is limited private; type Object is private; -- limited type could not have copy-assign version New_Object package System.Initiali...
9,981
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming7.adb
<reponame>best08618/asylo<gh_stars>1-10 -- { dg-do compile } -- { dg-options "-O" } with Renaming7_Pkg; use Renaming7_Pkg; with System; procedure Renaming7 is C : constant System.Address := A'Address; D : System.Address renames C; begin null; end;
9,982
ada
0
xuedong/mini-ada
tests/syntax/good/testfile-params-4.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Test is begin if 0=1 then Q(0); elsif 1=2 then Q(1); end if; end;
9,983
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/utils/dynamic_strings.ads
with Bounded_Dynamic_Strings; package Dynamic_Strings is type Dynamic_String is new Bounded_Dynamic_Strings.Sequence; end Dynamic_Strings;
9,984
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/gnatpsys.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- GNAT SYSTEM UTILITIES -- -- ...
9,985
ada
76
yannickmoy/SPARKNaCl
tests/core1.adb
with SPARKNaCl; use SPARKNaCl; with SPARKNaCl.Core; use SPARKNaCl.Core; with SPARKNaCl.Debug; use SPARKNaCl.Debug; with Random; with Ada.Text_IO; use Ada.Text_IO; procedure Core1 is Shared : constant Salsa20_Key := Construct ((16#4a#, 16#5d#, 16#9d#, 16#5b#, 16#a4#, 16#ce#, 16#2d#, 16#e...
9,986
ada
4
faelys/gela-asis
source/asis/spec/ada-characters-conversions.ads
------------------------------------------------------------------------------ -- A d a r u n - t i m e s p e c i f i c a t i o n -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
9,987
ada
4
carter-e-veldhuizen/RACK
ada/examples/pre-post-conditions/show_type_invariant.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Calendar; use Ada.Calendar; with Ada.Containers.Vectors; procedure Show_Type_Invariant is package Courses is type Course is private with Type_Invariant => Check (Cou...
9,988
ada
0
kisom/rover-mk1
src/hardware/hardware-beacon.adb
with Interfaces; use Interfaces; package body Hardware.Beacon is procedure Init (Tick_Size : Interfaces.Unsigned_8) is begin Resolution := Tick_Size; MCU.DDRH_Bits (LED1_Bit) := DD_Output; MCU.DDRH_Bits (LED2_Bit) := DD_Output; LED1 := Low; LED2 := Low; Tick := 0; Cou...
9,989
ada
0
alexcamposruiz/dds-requestreply
src/orig/dds-request_reply-connext_c_untyped_impl.adb
<filename>src/orig/dds-request_reply-connext_c_untyped_impl.adb pragma Ada_2012; package body DDS.Request_Reply.connext_c_untyped_impl is ---------------------------------------------------- -- RTI_Connext_EntityUntypedImpl_Wait_For_Samples -- ---------------------------------------------------- function ...
9,990
ada
16
stcarrez/ada-enet
demos/ping/pinger.adb
----------------------------------------------------------------------- -- pinger -- Ping hosts -- Copyright (C) 2016, 2017 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obt...
9,991
ada
33
ytomino/drake
source/strings/a-stuten.adb
<gh_stars>10-100 package body Ada.Strings.UTF_Encoding is function Contains_BOM_8 (Item : UTF_String) return Boolean; function Contains_BOM_16BE (Item : UTF_String) return Boolean; function Contains_BOM_16LE (Item : UTF_String) return Boolean; function Contains_BOM_32BE (Item : UTF_String) return Boolean; ...
9,992
ada
60
Letractively/ada-util
samples/log.adb
<reponame>Letractively/ada-util ----------------------------------------------------------------------- -- log -- Log example -- Copyright (C) 2010 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the ...
9,993
ada
20
charlie5/lace
1-base/lace/applet/demo/strings/launch_strings_demo.adb
with lace.Strings.bounded, ada.Text_IO; procedure launch_strings_Demo -- -- Displays a string message in a Pure unit. -- is use ada.Text_IO; package Text is new lace.Strings.Bounded.Generic_Bounded_Length (Max => 64); use Text; the_String : bounded_String := to_bounded_String ("Howdy ...");...
9,994
ada
5
jhumphry/auto_counters
src/flyweights/flyweights-untracked_lists.ads
<gh_stars>1-10 -- flyweights-untracked_lists.ads -- A package of singly-linked lists for the Flyweights packages without resource -- tracking or release -- Copyright (c) 2016, <NAME> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provide...
9,995
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_audio_gstbaseaudiosrc_h.ads
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstpushsrc_h; limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_audio_gstringbuffer_h; with GStreamer.GST_Low_Leve...
9,996
ada
0
thierr26/ada-apsepp
src/apsepp-scope_bound_locks.adb
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp.Scope_Bound_Locks.Private_Handler; package body Apsepp.Scope_Bound_Locks is ---------------------------------------------------------------------------- procedure SB_Lock_CB_procedure is begin if SB...
9,997
ada
0
Tim-Tom/project-euler
Ada/src/Problem_34.adb
with Ada.Text_IO; with Ada.Integer_Text_IO; package body Problem_34 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; function Factorial(n: Integer) return Integer is product : Integer := 1; begin for i in 2 .. n loop product := product * i; end loop; ...
9,998
ada
0
SSOCsoft/Log_Reporter
src/ini-read_ini.adb
With Ada.Text_IO.Text_Streams; Function INI.Read_INI(File_Name : String) return INI.Instance is Function Open_File(File_Name : String) return Ada.Text_IO.File_Type is use Ada.Text_IO; Begin Return Result : File_Type do Ada.Text_IO.Open( File => Result, ...
9,999
ada
1
mullikine/RosettaCodeData
Task/Call-an-object-method/Ada/call-an-object-method-3.ada
<filename>Task/Call-an-object-method/Ada/call-an-object-method-3.ada package Other_Class is type Object is new My_Class.Object with null record; overriding procedure Primitive(Self: Object); end Other_Class; package body Other_Class is procedure Primitive(Self: Object) is begin Put_L...