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
7,500
ada
16
stcarrez/ada-enet
demos/time/time_manager.ads
<reponame>stcarrez/ada-enet ----------------------------------------------------------------------- -- time_manager -- NTP Client instance -- 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 complia...
7,501
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/shapes/impact-d3-striding_mesh.adb
<filename>3-mid/impact/source/3d/collision/shapes/impact-d3-striding_mesh.adb with impact.d3.Vector; with impact.d3.Matrix; package body impact.d3.striding_Mesh is use Interfaces; procedure destruct (Self : in out Item) is begin null; end destruct; procedure InternalProcessAllTriangles...
7,502
ada
22
FardaleM/metalang
out/tictactoe.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 tictactoe is type stringptr is access all char_array; procedure PString(s : stringptr) is begin String'Write (Text_Streams...
7,503
ada
4
faelys/gela-asis
source/asis/asis-iterator.adb
<filename>source/asis/asis-iterator.adb ------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada...
7,504
ada
2
thindil/tashy2
src/tk/tk-ttklabel.adb
-- Copyright (c) 2021 <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 obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unless required by applicable law or agre...
7,505
ada
8
flyx/OpenCLAda
src/implementation/cl_gl/cl-memory-images-gl_base.adb
-------------------------------------------------------------------------------- -- Copyright (c) 2013, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above -- copyright notice and this permission notice...
7,506
ada
33
ytomino/drake
source/strings/a-swlcin.ads
pragma License (Unrestricted); -- Ada 2012 with Ada.Characters.Conversions; with Ada.Strings.Generic_Less_Case_Insensitive; function Ada.Strings.Wide_Less_Case_Insensitive is new Generic_Less_Case_Insensitive ( Wide_Character, Wide_String, Characters.Conversions.Get); -- pragma Pure (Ada.Strings....
7,507
ada
0
pat-rogers/OpenUxAS
src/ada/src/route_aggregator_communication.adb
<reponame>pat-rogers/OpenUxAS with AVTAS.LMCP.Types; with UxAS.Common.String_Constant.Message_Group; with Route_Aggregator_Message_Conversions; use Route_Aggregator_Message_Conversions; package body Route_Aggregator_Communication is ---------------- -- Initialize -- ---------------- procedure Initialize ...
7,508
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-tsmona__linux.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
7,509
ada
2
kanigsson/base58
src/main.adb
with Ada.Text_IO; with Base; procedure Main is begin Ada.Text_IO.Put_Line (String (Base.Encode ("toto"))); end Main;
7,510
ada
23
SMerrony/dashera
Src/telnet.adb
-- Copyright ©2021,2022 <NAME> -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this software and associated documentation files (the "Software"), to deal -- in the Software without restriction, including without limitation the rights -- to use, copy, modify, merge, publish, distri...
7,511
ada
0
fintatarta/protypo
src/API/protypo-api-engine_values-range_iterators.ads
<gh_stars>0 with Protypo.Api.Engine_Values.Constant_Wrappers; with Protypo.Api.Engine_Values.Handlers; -- -- ## What is this? -- -- A _range iterator_ implements the `Iterator_Interface` and it -- allows to iterate over an interval between two integers -- package Protypo.Api.Engine_Values.Range_Iterators is type Ra...
7,512
ada
33
ytomino/drake
source/image/required/s-valuns.ads
<reponame>ytomino/drake<filename>source/image/required/s-valuns.ads<gh_stars>10-100 pragma License (Unrestricted); -- implementation unit required by compiler with System.Unsigned_Types; package System.Val_Uns is pragma Pure; -- required for Modular'Value by compiler (s-valuns.ads) function Value_Unsigned (...
7,513
ada
0
dpr1005/Tiempo-Real-Ejercicios
Practica 03/P03_Crea_Tarea_De_Tipo/src/crea_tarea_de_tipo.adb
<gh_stars>0 with Tipos_Tarea; use Tipos_Tarea; procedure Crea_Tarea_De_Tipo is T1 : Tarea_Repetitiva(1); T2 : Tarea_Repetitiva(2); T3 : Tarea_Repetitiva(3); type Tarea_Ptr is access Tarea_Repetitiva; T : Tarea_Ptr; begin T := new Tarea_Repetitiva(4); end Crea_Tarea_De_Tipo;
7,514
ada
1
io7m/coreland-openal-ada
UNIT_TESTS/global_001.adb
with Ada.Text_IO; with OpenAL.Context.Error; with OpenAL.Error; with OpenAL.Context; with OpenAL.Global; with Test; procedure global_001 is package ALC renames OpenAL.Context; package ALC_Error renames OpenAL.Context.Error; package AL_Error renames OpenAL.Error; Device : ALC.Device_t; Context : ALC....
7,515
ada
7
stcarrez/resource-embedder
regtests/expect/ada/bundle.adb
-- Advanced Resource Embedder 1.2.0 with Interfaces; use Interfaces; package body Bundle is function Hash (S : String) return Natural; P : constant array (0 .. 1) of Natural := (1, 4); T1 : constant array (0 .. 1) of Unsigned_8 := (0, 4); T2 : constant array (0 .. 1) of Unsigned_8 := (1,...
7,516
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-mastop-tru64.adb
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
7,517
ada
33
ytomino/drake
source/image/required/s-valint.adb
with System.Formatting.Literals; with System.Long_Long_Integer_Types; with System.Value_Errors; package body System.Val_Int is subtype Word_Integer is Long_Long_Integer_Types.Word_Integer; -- implementation function Value_Integer (Str : String) return Integer is Last : Natural; Result : Word_In...
7,518
ada
0
My-Colaborations/ada-ado
samples/pschema.adb
----------------------------------------------------------------------- -- pschema - Print the database schema -- Copyright (C) 2009, 2010, 2011, 2012, 2015 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance ...
7,519
ada
18
kraileth/ravenadm
src/utilities.ads
<reponame>kraileth/ravenadm<gh_stars>10-100 -- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Definitions; use Definitions; with HelperText; with Ada.Calendar; package Utilities is package CAL renames Ada.Calendar; bad_input : exception; -- Retu...
7,520
ada
0
jquorning/CELLE
source/rules.ads
<filename>source/rules.ads -- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- with Ada.String...
7,521
ada
0
fintatarta/fakedsp
Ada/src/fakelib/utilities-tokenize.adb
<gh_stars>0 package body Utilities.Tokenize is ---------------------- -- Uncollated_Split -- ---------------------- function Uncollated_Split (To_Be_Splitted : String; Separator : Ada.Strings.Maps.Character_Set) return Token_List is Result : Token...
7,522
ada
1
LaudateCorpus1/RosettaCodeData
Task/Maze-generation/Ada/maze-generation-1.ada
generic Height : Positive; Width : Positive; package Mazes is type Maze_Grid is private; procedure Initialize (Maze : in out Maze_Grid); procedure Put (Item : Maze_Grid); private type Directions is (North, South, West, East); type Cell_Walls is array (Directions) of Boolean; type Cells is ...
7,523
ada
33
ytomino/drake
source/tasking/required/s-tadeca.adb
function System.Tasking.Async_Delays.Enqueue_Calendar ( T : Ada.Calendar.Time; D : not null access Delay_Block) return Boolean is begin raise Program_Error; -- unimplemented return Enqueue_Calendar (T, D); end System.Tasking.Async_Delays.Enqueue_Calendar;
7,524
ada
20
nayuki/NetPerSec
hlp/NetPerSec.adb
IDH_network_lights NetPerSec IDH_connection_tab Connection Tab IDH_connection_tab Connection Tab IDH_options_tab Options Tab IDH_stats_tab Stats Tab IDH_colors_tab Colors Tab IDH_glossary Glossary IDH_requirements_and_limitations Requirements and Limitations IDH_configuration Configuration IDH_netpersec_i...
7,525
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/svd/stm32l5x2/stm32_svd-mpu.ads
<filename>arch/ARM/STM32/svd/stm32l5x2/stm32_svd-mpu.ads -- This spec has been automatically generated from xyzzy pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.MPU is pragma Preelaborate; --------------- -- Registers -- -...
7,526
ada
0
dglmoore/advent-of-code
2020/12/solution.adb
<filename>2020/12/solution.adb with Ada.Containers.Vectors; with Ada.Numerics.Real_Arrays; use Ada.Numerics.Real_Arrays; with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; procedure Solution is package Line_Vectors is new Ada.Containers.Vectors ...
7,527
ada
1
GambuzX/Pixy-SIW
pixy/src/host/pantilt_in_ada/specs/x86_64_linux_gnu_sys_select_h.ads
-- -- Copyright (c) 2015, <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the above copyright -- notice and this permission notice appear in all copies. -- -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUT...
7,528
ada
60
RREE/ada-util
src/base/log/util-log-appenders-factories.adb
<reponame>RREE/ada-util ----------------------------------------------------------------------- -- util-log-appenders -- Log appenders -- Copyright (C) 2001 - 2019, 2021 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except i...
7,529
ada
0
python36/d0xfa
src/getters/getter-for_loop.adb
<filename>src/getters/getter-for_loop.adb package body getter.for_loop is function get return character is use type pos_count; c : character; begin if cur_for_loop.last > unb.length(cur_for_loop.code) then cur_for_loop.cur_line := cur_for_loop.first_line; cur_for_loop.last := 1; inc...
7,530
ada
0
SKNZ/BoiteMaker
src/utilities/text_file.adb
with logger; use logger; package body text_file is procedure write_string_to_file(file_path, content : string) is file : file_type; begin begin debug("Ouverture du fichier " & file_path); -- Ouverture du fichier open(file, out_file, file_path); except...
7,531
ada
3
TheSledgeHammer/2.11BSD
contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/mod_from_name/foo.adb
<gh_stars>1-10 -- Copyright 2009-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 ...
7,532
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/remote_type.ads
<gh_stars>1-10 with Ada.Streams; generic type Element_Type is private; package remote_type is pragma Remote_Types; type List is private; procedure Append (Container : in out List; New_Item : in Element_Type); private use Ada.Streams; type List_Record is record A : Boolean; end...
7,533
ada
33
ytomino/drake
source/machine-w64-mingw32/x86_64/s-unwmap.adb
pragma Check_Policy (Trace => Ignore); with Ada.Unchecked_Conversion; with System.Address_To_Named_Access_Conversions; with System.Formatting.Address; with System.Stack; with System.Storage_Map; with System.Unwind.Occurrences; with System.Unwind.Standard; with C.basetsd; with C.vadefs; with C.winbase; with C.windef; wi...
7,534
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-stwiun.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
7,535
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/uninit_func.adb
<reponame>best08618/asylo -- { dg-do compile } -- { dg-options "-O -Wall" } function uninit_func (A, B : Boolean) return Boolean is C : Boolean; begin if A then C := False; elsif B then C := True; end if; return C; -- { dg-warning "may be used uninitialized" } end;
7,536
ada
1
mimo/Tracker
surface-window.adb
<filename>surface-window.adb with Ada.Strings.Fixed; package body Surface.Window is procedure Attach (Application : in out Reference) is begin null; end Attach; procedure Setup (self : in out Instance) is begin Background_Color (self, raylib.LIGHTGRAY); Size (self, 1027, 768); ...
7,537
ada
0
djamal2727/Main-Bearing-Analytical-Model
Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-memdum.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
7,538
ada
1
zrmyers/VulkanAda
src/vulkan-math/vulkan-math-ivec4.ads
<filename>src/vulkan-math/vulkan-math-ivec4.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 "...
7,539
ada
1
faelys/natools-web
src/natools-web.ads
<reponame>faelys/natools-web ------------------------------------------------------------------------------ -- Copyright (c) 2014, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this softw...
7,540
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dynamic_elab2.ads
with Dynamic_Elab_Pkg; use Dynamic_Elab_Pkg; package Dynamic_Elab2 is type Plot is record B : Boolean; Data : R; end record; pragma Pack (Plot); function Get_Plot return Plot; end Dynamic_Elab2;
7,541
ada
24
svn2github/matreshka
source/web/servlet/http/servlet-http_servlets.ads
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
7,542
ada
1
GauBen/Arbre-Genealogique
src/main.adb
<filename>src/main.adb<gh_stars>1-10 with Ada.Text_Io; use Ada.Text_Io; with Ada.Integer_Text_Io; use Ada.Integer_Text_Io; with Ada.Io_Exceptions; with Ada.Text_Io.Bounded_Io; with Arbre_Genealogique; use Arbre_Genealogique; with Date; use Date; procedure Main is -- On utilise des chaines d...
7,543
ada
0
adammw/rtp_labs
week1/hello.adb
with Ada.Text_IO, Ada.Strings.Unbounded, Ada.Strings.Unbounded.Text_IO, Ada.Characters.Handling; use Ada.Text_IO, Ada.Strings.Unbounded, Ada.Strings.Unbounded.Text_IO, Ada.Characters.Handling; procedure Hello is Name : Unbounded_String; Input : Character; function Title_Case (Str : in String) return String is ...
7,544
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-imguti.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
7,545
ada
0
My-Colaborations/ada-ado
src/ado-schemas-entities.adb
<reponame>My-Colaborations/ada-ado ----------------------------------------------------------------------- -- ado-schemas-entities -- Entity types cache -- Copyright (C) 2011, 2012, 2017, 2018 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not...
7,546
ada
0
Noremac201/sample-programs
archive/a/ada/bubble-sort.adb
procedure Main is type Bubble_Array is array (Integer range <>) of Integer; procedure Bubble_Sort (Arr : in out Bubble_Array) is Temp : Integer; begin for I in reverse Arr'Range loop for J in Arr'First .. I loop if Arr(I) < Arr(J) then Temp := Arr(J); Arr(J) :...
7,547
ada
33
ytomino/drake
source/machine-apple-darwin/s-stomap.ads
pragma License (Unrestricted); -- runtime unit specialized for Darwin package System.Storage_Map is pragma Preelaborate; function Load_Address return Address; pragma Inline (Load_Address); Growing_Down_Is_Preferred : constant Boolean := False; end System.Storage_Map;
7,548
ada
20
charlie5/lace
4-high/gel/source/joint/gel-joint.ads
<filename>4-high/gel/source/joint/gel-joint.ads with physics.Joint, lace.Any; limited with gel.Sprite; package gel.Joint -- -- Allows sprites to be connected via a joint. -- A joint constrains the motion of the sprites which it connects. -- is type Item is abstract new lace.Any.limited_item with ...
7,549
ada
0
thierr26/ada-apsepp
src/_test/fixtures/apsepp_scope_bound_locks_test_fixture.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>> -- MIT license. Please refer to the LICENSE file. with Apsepp.Generic_Fixture; with Apsepp.Scope_Bound_Locks; use Apsepp.Scope_Bound_Locks; package Apsepp_Scope_Bound_Locks_Test_Fixture is procedure Increment_N; procedure Decrement_N; type Scope_Bound_Locks_Test_Fixt...
7,550
ada
1
LaudateCorpus1/RosettaCodeData
Task/Image-noise/Ada/image-noise-2.ada
with Ada.Numerics.Discrete_Random; package body Noise is type Color is (Black, White); package Color_Random is new Ada.Numerics.Discrete_Random (Color); Color_Gen : Color_Random.Generator; function Create_Image (Width, Height : Natural) return Lumen.Image.Descriptor is Result : Lumen.Image.Descripto...
7,551
ada
1
tomberek/RaySAR
libraries/zlib/contrib/ada/read.adb
---------------------------------------------------------------- -- ZLib for Ada thick binding. -- -- -- -- Copyright (C) 2002-2003 <NAME> -- -- -- -- Op...
7,552
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/drivers/nrf_common/nrf-uart.adb
<gh_stars>100-1000 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2019-2020, AdaCore -- -- ...
7,553
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/devices/nrf52/nrf-device.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2020, AdaCore -- -- -- -- ...
7,554
ada
0
faelys/natools
tests/natools-reference_tests.ads
------------------------------------------------------------------------------ -- Copyright (c) 2013-2014, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
7,555
ada
0
reznikmm/gela
source/nodes/program-nodes-floating_point_types.adb
<reponame>reznikmm/gela<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Floating_Point_Types is function Create (Digits_Token : not null Program.Lexical_Elements ...
7,556
ada
0
bhayward93/Ada-Traffic-Light-Sim
fixedsrc/hwif.ads
<reponame>bhayward93/Ada-Traffic-Light-Sim with HWIF_Types; use HWIF_Types; with MMap; with System.Storage_Elements; with System; pragma Elaborate(MMap); package HWIF is Addr : constant System.Address := MMap.Get_MMAP_RW; function "+" (A : in System.Address; B : in System....
7,557
ada
269
ProtonAOSP-platina/android_external_libncurses
Ada95/samples/ncurses2-util.ads
<filename>Ada95/samples/ncurses2-util.ads ------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- ...
7,558
ada
0
Tim-Tom/project-euler
Ada/src/Problem_35.adb
<filename>Ada/src/Problem_35.adb<gh_stars>0 with Ada.Integer_Text_IO; with Ada.Text_IO; with Ada.Containers.Ordered_Sets; with PrimeUtilities; package body Problem_35 is package IO renames Ada.Text_IO; package I_IO renames Ada.Integer_Text_IO; subtype One_Million is Integer range 1 .. 1_000_000; package Mil...
7,559
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/a-stwima.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
7,560
ada
0
jquorning/CELLE
source/action_tables.adb
-- -- The author disclaims copyright to this source code. In place of -- a legal notice, here is a blessing: -- -- May you do good and not evil. -- May you find forgiveness for yourself and forgive others. -- May you share freely, not taking more than you give. -- -------------------------------------------...
7,561
ada
32
My-Colaborations/dynamo
src/yaml/lexer-source.ads
<filename>src/yaml/lexer-source.ads -- part of ParserTools, (c) 2017 <NAME> -- released under the terms of the MIT license, see the file "copying.txt" with Ada.Finalization; package Lexer.Source is pragma Preelaborate; -- a Source is anything that provides a character stream. Sources are always -- singl...
7,562
ada
0
reznikmm/gela
source/oasis/program-elements-generalized_iterator_specifications.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Declarations; with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Expressions; package Program.Elements...
7,563
ada
80
thindil/steamsky
src/ui/bases-shipyardui.adb
-- Copyright (c) 2020-2021 <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 3 of the License, or -- (at your option) any later version. -- -- This program is...
7,564
ada
1
AllSafeCyberSecur1ty/Nuclear-Engineering
USALprojects-Nuclear-Reactor-System/src/Monitor.ads
<filename>USALprojects-Nuclear-Reactor-System/src/Monitor.ads --<NAME> (<EMAIL>) --<NAME> (<EMAIL>) with Ada.Real_Time; with Ada.Real_Time.Timing_Events; use Ada.Real_Time; package Monitor is protected type Reactor is procedure leer(temp : out Integer); procedure incrementar(incremento:Integer); pr...
7,565
ada
0
reznikmm/gela
source/oasis/program-elements-for_loop_statements.ads
<filename>source/oasis/program-elements-for_loop_statements.ads<gh_stars>0 -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Statements; with Program.Elements.Defining_Identifiers; with Program.Lexic...
7,566
ada
0
wookey-project/ewok-legacy
src/Ada/ewok-tasks.adb
<filename>src/Ada/ewok-tasks.adb -- -- 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 copy...
7,567
ada
2
SMerrony/dgemua
status_monitor.ads
<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...
7,568
ada
0
reznikmm/gela
source/oasis/program-elements-raise_expressions.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Expressions; with Program.Lexical_Elements; package Program.Elements.Raise_Expressions is pragma Pure (Program.Elements.Raise_Expressions); ...
7,569
ada
0
balintsoos/LearnAda
gyak/gyak10/kocsma/kocsma.adb
<gh_stars>0 with Ada.Text_IO, Ada.Calendar, Ada.Numerics.Discrete_Random, Taszkseged; use Ada.Text_IO, Taszkseged; procedure Kocsma is Ajto: Taszkseged.Szemafor(4); procedure Belep renames Ajto.P; procedure Kilep renames Ajto.V; type Ital is (Sor, Bor, Palinka); task Kocsmaros is entry To...
7,570
ada
192
rocher/Ada_Drivers_Library
arch/RISC-V/SiFive/drivers/fe310-pwm.adb
<gh_stars>100-1000 ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2018, AdaCore -- -- ...
7,571
ada
0
persan/a-libusb1
tests/src/usb-tests-main.adb
<gh_stars>0 procedure usb.tests.main is begin null; end usb.tests.main;
7,572
ada
0
daemonl/openapi-codegen
snapshot/Ada/model-spec.ada
-- Swagger Petstore -- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters. -- -- OpenAPI spec vers...
7,573
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf52/nrf_svd-wdt.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...
7,574
ada
3
Fabien-Chouteau/AGATE
src/armvx-m/agate-syscalls.adb
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017-2020, <NAME> -- -- -- -- Redistrib...
7,575
ada
0
faelys/natools
tests/natools-chunked_strings-tests-cxa4011.adb
------------------------------------------------------------------------------ -- Copyright (c) 2011, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
7,576
ada
4
faelys/gela-asis
source/asis/asis-gela-library.ads
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
7,577
ada
0
Letractively/ada-util
testutil/util-tests.adb
<filename>testutil/util-tests.adb ----------------------------------------------------------------------- -- AUnit utils - Helper for writing unit tests -- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
7,578
ada
6
jonashaggstrom/ada-canopen
src/aco-utils-scope_locks.ads
<filename>src/aco-utils-scope_locks.ads with System; with Ada.Finalization; package ACO.Utils.Scope_Locks is pragma Preelaborate; protected type Mutex (Ceiling : System.Priority) is entry Seize; procedure Release; private pragma Priority (Ceiling); Is_Free : Boolean := Tr...
7,579
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/decl_ctx_use.ads
<gh_stars>1-10 package DECL_CTX_Use is procedure Check_1; procedure Check_2; end;
7,580
ada
0
Sandbergo/distributed-elevator-controller
exercises/ex8/exercise8.adb
<gh_stars>0 with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random; use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Numerics.Float_Random; procedure exercise8 is Count_Failed : exception; -- Exception to be raised when counting fails Gen : Generator; -- Random number generator p...
7,581
ada
0
iyan22/AprendeAda
ejercicios6/media.adb
with Datos; use Datos; function Media ( L : Lista ) return Float is -- pre: Dada una lista, calcular la media de sus valores -- post: La media de los valores de la lista Suma / longitud numelementos : Natural; acumulador : Float; LCopia : Lista; begin numelementos := 0; acumulador := 0.0; LCopia...
7,582
ada
81
My-Colaborations/ada-awa
awa/src/awa-events-queues-persistents.adb
----------------------------------------------------------------------- -- awa-events-queues-persistents -- AWA Event Queues -- Copyright (C) 2012, 2013, 2014, 2017, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except ...
7,583
ada
0
persan/advent-of-code-2020
src/day-23/adventofcode-day_23-main.adb
<filename>src/day-23/adventofcode-day_23-main.adb<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_23.Main is begin Put_Line ("Day-23"); end Adventofcode.Day_23.Main;
7,584
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada95/a-stream.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUNTIME COMPONENTS -- -- -- -- ...
7,585
ada
1
LaudateCorpus1/RosettaCodeData
Task/Fibonacci-n-step-number-sequences/Ada/fibonacci-n-step-number-sequences-2.ada
package body Bonacci is function Generate(Start: Sequence; Length: Positive := 10) return Sequence is begin if Length <= Start'Length then return Start(Start'First .. Start'First+Length-1); else declare Sum: Natural := 0; begin for I in Start'Range l...
7,586
ada
25
thierr26/ada-keystore
tools/akt-commands-drivers.ads
<gh_stars>10-100 ----------------------------------------------------------------------- -- akt-commands-drivers -- Ada Keystore command driver -- 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 co...
7,587
ada
1
micahwelf/FLTK-Ada
src/fltk-tooltips.adb
<gh_stars>1-10 with Interfaces.C, System.Address_To_Access_Conversions; use type Interfaces.C.int, System.Address; package body FLTK.Tooltips is function fl_tooltip_get_current return System.Address; pragma Import (C, fl_tooltip_get_current, "fl_tooltip_get_current"); pragma...
7,588
ada
33
ytomino/drake
examples/casing.adb
<filename>examples/casing.adb with Ada.Containers; with Ada.Strings.Equal_Case_Insensitive; with Ada.Strings.Less_Case_Insensitive; with Ada.Strings.Hash_Case_Insensitive; with Ada.Strings.Wide_Hash_Case_Insensitive; with Ada.Strings.Wide_Wide_Hash_Case_Insensitive; procedure casing is use type Ada.Containers.Hash_Typ...
7,589
ada
0
MC-DeltaT/Programming-Languages
P3/bubble_sort.adb
with Ada.Text_IO; with Ada.Integer_Text_IO; procedure Bubble_Sort is type Int_Array is array (Positive range <>) of Integer; procedure Do_Bubble_Sort(A: in out Int_Array) is Did_Swap: Boolean; Tmp: Positive; begin loop Did_Swap := false; for I in Integer ran...
7,590
ada
0
optikos/oasis
source/nodes/program-nodes-null_literals.adb
<reponame>optikos/oasis -- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Null_Literals is function Create (Null_Literal_Token : not null Program.Lexical_Elements ...
7,591
ada
17
WinterAlexander/Ada-IntelliJ
src/test/resources/ada-sources/literals.adb
<reponame>WinterAlexander/Ada-IntelliJ -- Numeric Literals 123 123_456 12_34_56 123.456 123_456.789 123.456_789 12_34.567_89 123E12 1.23e5_4 12_3E+5 1.2_3e+5 1_2.3E-5 123.4e-5 1#123# 1_6#123.3#e-12 32#12_3_Ab#E4_5 -- Textual Literals ' ' 'A' 'b' '0' ';' '"' '[' '}' '#' '=' '+' '/' '?' "Hello" "Hello world!" "A single ...
7,592
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b27a.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b27a.ada -- C87B27A.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 -- unlimi...
7,593
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/while_loop_statement.adb
<gh_stars>100-1000 procedure While_Loop_Statement is begin while True loop null; end loop; end While_Loop_Statement;
7,594
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/derived_type3_pkg.adb
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/derived_type3_pkg.adb with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; use Ada.Text_IO; package body Derived_Type3_Pkg is type Parent is tagged null record; type Child is new Parent with record ...
7,595
ada
1
faelys/natools-web
src/natools-web-escapes.ads
------------------------------------------------------------------------------ -- Copyright (c) 2015, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
7,596
ada
0
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt58_pkg.ads
with System; use System; package Opt58_Pkg is pragma Pure (Opt58_Pkg); type Small_Int is range 0 .. 255; type Rec is record D1, D2, D3, D4 : Small_Int; end record; pragma Pack (Rec); for Rec'Size use 32; function F1 (R : Rec) return Small_Int; function F2 (A : Address;...
7,597
ada
15
AdaCore/training_material
extern/game_support/stm32f4/src/stm32f429_discovery.adb
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- ...
7,598
ada
0
JCGobbi/Nucleo-STM32H743ZI
SVD2ada/svd/stm32_svd-rcc.ads
pragma Style_Checks (Off); -- This spec has been automatically generated from STM32H743x.svd pragma Restrictions (No_Elaboration_Code); with HAL; with System; package STM32_SVD.RCC is pragma Preelaborate; --------------- -- Registers -- --------------- subtype CR_HSIDIV_Field is HAL.UInt2; -- ...
7,599
ada
1
LaudateCorpus1/RosettaCodeData
Task/Linear-congruential-generator/Ada/linear-congruential-generator-2.ada
<gh_stars>1-10 package body LCG is State: Base_Type := Base_Type'First; procedure Initialize(Seed: Base_Type) is begin State := Seed; end Initialize; function Random return Base_Type is begin State := State * Multiplyer + Adder; return State / Output_Divisor; end Random; end L...