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
5,200
ada
36
rewriting/tom
src/tom/library/sl/ada/choiceidstrategy.ads
with ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; use ObjectPack, AbstractStrategyCombinatorPackage, IntrospectorPackage, StrategyPackage; package ChoiceIdStrategy is FIRST : constant Integer := 0; SECOND : constant Integer := 1; type ChoiceId is new AbstractStrategyCombi...
5,201
ada
1
mullikine/RosettaCodeData
Task/Same-Fringe/Ada/same-fringe-1.ada
<filename>Task/Same-Fringe/Ada/same-fringe-1.ada generic type Data is private; package Bin_Trees is type Tree_Type is private; function Empty(Tree: Tree_Type) return Boolean; function Left (Tree: Tree_Type) return Tree_Type; function Right(Tree: Tree_Type) return Tree_Type; function Item (Tree: Tree...
5,202
ada
0
reznikmm/gela
source/nodes/program-nodes-loop_statements.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Element_Vectors; with Program.Elements.Identifiers; with Program.Elements.Loop_Stat...
5,203
ada
0
zdimension/tdinfo302
src/annee.ads
<filename>src/annee.ads package annee is function Est_Bissextile (Annee : Integer) return Boolean; end annee;
5,204
ada
1
selroc/Renaissance-Ada
src/libraries/Rewriters_Lib/src/rewriters_context_utils.adb
<gh_stars>1-10 with Ada.Assertions; use Ada.Assertions; package body Rewriters_Context_Utils is function Combine_Contexts (C1, C2 : Ada_Node) return Ada_Node is begin if Is_Reflexive_Ancestor (C1, C2) then return C1; else Assert (Check => Is_Reflexive_Ancestor (C2, C1), ...
5,205
ada
0
beyondmetis/.emacs.d
flycheck/test/resources/language/ada/hello.adb
<filename>flycheck/test/resources/language/ada/hello.adb with Ada.Text_IO; with Ada.Command_Line; procedure Hello is package IO renames Ada.Text_IO; Name : String := Ada.Command_Line.Argument (1); begin pragma Foo; IO.Put_Line("Hello, world!"); IO.New_Line; end Hello;
5,206
ada
1
mullikine/RosettaCodeData
Task/Check-that-file-exists/Ada/check-that-file-exists-2.ada
<reponame>mullikine/RosettaCodeData with Ada.Text_IO; use Ada.Text_IO; with Ada.Directories; use Ada.Directories; procedure File_Exists is procedure Print_File_Exist (Name : String) is begin Put_Line ("Does " & Name & " exist? " & Boolean'Image (Exists (Name))); end Print_File_Exist; ...
5,207
ada
12
TUM-EI-RCS/StratoX
software/hal/hpl/STM32/drivers/ltdc/stm32-ltdc.adb
<filename>software/hal/hpl/STM32/drivers/ltdc/stm32-ltdc.adb ------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- ...
5,208
ada
0
AsyncMC/Mojang-API-Libs
generated-sources/ada-server/mojang-api/src/server/com-github-asyncmc-mojang-api-ada-server-model-skeletons.adb
-- Mojang API -- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -- -- OpenAPI spec version: 2020_06_05 -- -- -- NOTE: This package is auto generated by the swagger code generator 3.3.4. -- https://openapi-generator.tech -- Do not edit the class manuall...
5,209
ada
1
kylelk/ada-examples
fibonacci.adb
with Ada.Text_IO, Ada.Integer_Text_IO; use Ada; procedure fibonacci is a,b,tmp : integer; begin a := 0; b := 1; while b < 100 loop Integer_Text_IO.put(b, width=>0); Text_IO.New_Line; tmp := a + b; a := b; b := tmp; end loop; end fibonacci;
5,210
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c2/c24207a.ada
<gh_stars>1-10 -- C24207A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein....
5,211
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso2.adb
-- { dg-do compile } with Ada.Unchecked_Conversion; package body SSO2 is function Conv is new Ada.Unchecked_Conversion (Arr1, Arr2); procedure Proc (A1 : Arr1; A2 : out Arr2) is begin A2 := Conv (A1); end; end SSO2;
5,212
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-convex_convex.adb
<reponame>charlie5/lace with impact.d3.collision.convex_Raycast.gjk; with impact.d3.collision.simplex_Solver.voronoi; with impact.d3.collision.convex_Raycast; with impact.d3.Shape.convex.internal.sphere; with impact.d3.collision.polyhedral_contact_Clipping; with impact.d3.Quaternions; with impact.d3.Shape.convex.intern...
5,213
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95085b.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95085b.ada -- C95085B.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...
5,214
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-3.1.3/sal-gen_unconstrained_array_image.adb
-- Abstract : -- -- See spec. -- -- Copyright (C) 2019 Free Software Foundation, Inc. -- -- This library 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 lat...
5,215
ada
0
Letractively/ada-ado
samples/pschema.adb
----------------------------------------------------------------------- -- pschema - Print the database schema -- Copyright (C) 2009, 2010, 2011, 2012 <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...
5,216
ada
4
FrankBuss/Ada_Synth
ada/common/ringbuffers.adb
<filename>ada/common/ringbuffers.adb package body Ringbuffers is procedure Write (Self : in out Ringbuffer; e : Item) is begin Self.Items (Self.Write_Index) := e; Self.Write_Index := Self.Write_Index + 1; if Self.Write_Index = Size then Self.Write_Index := 1; end if; end Write...
5,217
ada
0
csb6/libtcod-ada
src/generated/image_h.ads
pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with color_h; with Interfaces.C.Extensions; with console_h; with Interfaces.C.Strings; with error_h; package image_h is -- BSD 3-Clause License -- * -- * Copyright © 2008-2021, Jice and the libtcod contributors. -- * All rights ...
5,218
ada
7
Fabien-Chouteau/Giza
src/giza-colors.ads
------------------------------------------------------------------------------ -- -- -- Giza -- -- -- -- ...
5,219
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/arm/sam/samv71/setup_pll.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
5,220
ada
0
xuedong/mini-ada
tests/typing/good/testfile-shadow-3.adb
with Ada.Text_IO; use Ada.Text_IO; procedure Test is X: Integer; procedure P is type X is record A: Integer; end record; V: X; begin New_Line; end; begin P; end;
5,221
ada
33
ytomino/drake
source/tasking/a-synbar.adb
<gh_stars>10-100 with System.Synchronous_Objects.Abortable; with System.Tasks; package body Ada.Synchronous_Barriers is procedure Do_Wait ( Object : in out Synchronous_Barrier; Notified : out Boolean; Aborted : out Boolean); procedure Do_Wait ( Object : in out Synchronous_Barrier; N...
5,222
ada
286
auzkok/libagar
ada/gui/agar-text.adb
------------------------------------------------------------------------------ -- AGAR GUI LIBRARY -- -- A G A R . T E X T -- -- B o d y -- -- ...
5,223
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/g-trasym.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
5,224
ada
26
damaki/libkeccak
tests/kat/monkeywrap_runner.adb
<filename>tests/kat/monkeywrap_runner.adb<gh_stars>10-100 ------------------------------------------------------------------------------- -- Copyright (c) 2019, <NAME> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the follow...
5,225
ada
1
sparre/JSA
tests/unit_tests/jsa-tests-run.adb
<reponame>sparre/JSA<filename>tests/unit_tests/jsa-tests-run.adb<gh_stars>1-10 with Ahven.Framework, Ahven.Text_Runner; procedure JSA.Tests.Run is Suite : Ahven.Framework.Test_Suite := Tests.Suite; begin Ahven.Text_Runner.Run (Suite); end JSA.Tests.Run;
5,226
ada
60
RREE/ada-util
src/tests/ahven/ahven-results.adb
<reponame>RREE/ada-util<gh_stars>10-100 -- -- Copyright (c) 2007-2009 <NAME> <<EMAIL>> -- -- Permission to use, copy, modify, and 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 SOFT...
5,227
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/radar/030_basic_types/src/main.adb
<reponame>AdaCore/training_material<gh_stars>10-100 with Radar_Internals; procedure Main is -- You are in charge of developping a rotating radar for the new T-1000 -- Some of the radar code is already in place, it is just missing the -- high-level interface to handle incoming objects. type Object_Status_T...
5,228
ada
20
charlie5/lace
3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-box_box.ads
<filename>3-mid/impact/source/3d/collision/dispatch/impact-d3-collision-algorithm-activating-box_box.ads with impact.d3.collision.Algorithm.activating, impact.d3.Dispatcher, impact.d3.collision.manifold_Result, impact.d3.collision.create_Func; with impact.d3.Manifold; with impact.d3.collision.Algorithm; ...
5,229
ada
0
joffreyhuguet/LmcpGen
src/templates/ada/avtas/lmcp/avtas-lmcp-types.ads
<gh_stars>0 with Interfaces; use Interfaces; package avtas.lmcp.types is -- C/C++ compatible integer types type Byte is new Interfaces.Unsigned_8; type UInt16 is new Interfaces.Unsigned_16; type UInt32 is new Interfaces.Unsigned_32; type UInt64 is new Interfaces.Unsigned_64; type Int16 is new Int...
5,230
ada
1
annexi-strayline/ASAP-HEX
hex-modular_unit_test.ads
------------------------------------------------------------------------------ -- -- -- Generic HEX String Handling Package -- -- -- -- -...
5,231
ada
24
svn2github/matreshka
source/amf/mof/amf-internals-extents.adb
<reponame>svn2github/matreshka<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
5,232
ada
0
JeremyGrosser/synack_misc
src/serial_console.adb
<filename>src/serial_console.adb -- -- Copyright 2021 (C) <NAME> -- -- SPDX-License-Identifier: BSD-3-Clause -- with HAL; use HAL; package body Serial_Console is use HAL.UART; procedure Put (This : in out Port; Item : Character) is Data : constant UART_Data_8b (1 .. 1) := (1 => UInt8 (...
5,233
ada
33
ytomino/drake
source/textio/a-coteio.ads
<filename>source/textio/a-coteio.ads pragma License (Unrestricted); with Ada.Numerics.Complex_Types; with Ada.Text_IO.Complex_IO; package Ada.Complex_Text_IO is new Text_IO.Complex_IO (Numerics.Complex_Types);
5,234
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_03.ads
package Problem_03 is procedure Solve; end Problem_03;
5,235
ada
4
docandrew/YOTROC
src/main.adb
<reponame>docandrew/YOTROC<filename>src/main.adb --with Ada.Strings.Unbounded; use Ada.Strings.Unbounded; with Ada.Text_IO; --with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO; --with Interfaces; use Interfaces; --with assembler; use assembler; --with callbacks; ...
5,236
ada
0
Tim-Tom/project-euler
Ada/src/Problem_71.adb
with Ada.Text_IO; package body Problem_71 is package IO renames Ada.Text_IO; procedure Solve is -- This problem is obviously pertaining to mediants, stern-brocot trees, and farey sequences. -- Specifically since we're doing constrained sequences, we're dealing with farey and we -- basically want...
5,237
ada
2
marcbejerano/ada-tools
Properties/src/properties.adb
-- @(#)File: properties.adb -- @(#)Last changed: Mar 18 2015 10:30:00 -- @(#)Purpose: Java properties file support -- @(#)Author: <NAME> <<EMAIL>> -- @(#)Copyright: Copyright (C) 2015, <NAME>, All Rights Reserved -- @(#)Product: None -- @(#)License: BSD3 -- -- Copyri...
5,238
ada
33
persan/zeromq-Ada
eBindings/dl/tests/dl-test_basics.ads
<reponame>persan/zeromq-Ada<gh_stars>10-100 with AUnit; with AUnit.Test_Cases; package Dl.Test_Basics is type Test_Case is new AUnit.Test_Cases.Test_Case with null record; procedure Register_Tests (T : in out Test_Case); -- Register routines to be run function Name (T : Test_Case) ret...
5,239
ada
2
godunko/adawebui
source/web-ui-widgets-spin_boxes-generic_floats.adb
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
5,240
ada
3
spr93/whitakers-words
src/latin_utils/latin_utils-latin_file_names.ads
<reponame>spr93/whitakers-words -- WORDS, a Latin dictionary, by <NAME> (USAF, Retired) -- -- Copyright <NAME> (1936–2010) -- -- This is a free program, which means it is proper to copy it and pass -- it on to your friends. Consider it a developmental item for which -- there is no charge. However, just for form, it is ...
5,241
ada
1
bracke/brackelib
tests/src/queues_tests.ads
<filename>tests/src/queues_tests.ads with AUnit; with AUnit.Test_Fixtures; with Brackelib.Queues; package Queues_Tests is package State_Queues is new Brackelib.Queues (Integer); use State_Queues; type Test is new AUnit.Test_Fixtures.Test_Fixture with null record; procedure Set_Up (T : in out Test); ...
5,242
ada
52
onox/orka
orka/src/orka/interface/orka-rendering-programs.ads
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2016 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 -...
5,243
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/s-asthan.ads
<filename>llvm-gcc-4.2-2.9/gcc/ada/s-asthan.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
5,244
ada
0
thomas070605/shoot-n-loot
src/projectile.adb
-- Shoot'n'loot -- Copyright (c) 2020 <NAME> with Game_Assets.Misc_Objects; with GESTE.Maths_Types; use GESTE.Maths_Types; package body Projectile is Empty_Tile : constant GESTE_Config.Tile_Index := Game_Assets.Misc_Objects.Item.Empty_Tile.Tile_Id; procedure Move_Tile (This : in out Instance) wi...
5,245
ada
0
faelys/natools
generated/natools-static_maps-s_expressions-templates-integers-ac.ads
package Natools.Static_Maps.S_Expressions.Templates.Integers.AC is pragma Pure; function Hash (S : String) return Natural; end Natools.Static_Maps.S_Expressions.Templates.Integers.AC;
5,246
ada
1
LaudateCorpus1/RosettaCodeData
Task/Function-definition/Ada/function-definition-3.ada
function Multiply(A, B: Float) return Float is (A * B);
5,247
ada
0
iyan22/AprendeAda
ejercicios6/datos.ads
<reponame>iyan22/AprendeAda package Datos is type Nodo; type Lista is access Nodo; type Nodo is record Info : Integer; Sig : Lista; end record; end Datos;
5,248
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/systick/main.adb
with System.Machine_Code; use System.Machine_Code; with STM32GD.Board; with STM32GD.Systick; use STM32GD.Systick; with Drivers.Text_IO; with Startup; procedure Main is package Text_IO is new Drivers.Text_IO (USART => STM32GD.Board.USART); begin STM32GD.Board.Init; Text_IO.Put_Line ("Starting SYSTICK..."); ...
5,249
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/single_protected_declaration.ads
package Single_protected_Declaration is protected Shared_Array is private The_Variable : Integer; end Shared_Array; end Single_protected_Declaration;
5,250
ada
286
auzkok/libagar
ada/original_2008/ada-gui/agar-gui-widget-console.adb
package body agar.gui.widget.console is package cbinds is procedure set_padding (console : console_access_t; padding : c.int); pragma import (c, set_padding, "AG_ConsoleSetPadding"); function message (console : console_access_t; text : cs.chars_ptr) return line_access_t; ...
5,251
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3104a.ada
<gh_stars>1-10 -- CE3104A.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contained herein....
5,252
ada
0
gitter-badger/Ada-tools
AdaToolsTests/Func.ads
<reponame>gitter-badger/Ada-tools<filename>AdaToolsTests/Func.ads<gh_stars>0 function Func return Integer;
5,253
ada
1
bracke/websitegenerator
src/blueprint.ads
<gh_stars>1-10 with Ada.Directories; use Ada.Directories; package Blueprint is type Action is (Write, Delete, DryRun); function Get_Blueprint_Folder return String; procedure Process_File (Target : String; Search_Item : Directory_Entry_Type; Todo : Action); procedure Parse_Content (Source_File : S...
5,254
ada
0
Asier98/AdaCar
src_pruebas/prueba_alarmas.adb
procedure Prueba_Alarmas is begin null; end Prueba_Alarmas;
5,255
ada
1
ForYouEyesOnly/Space-Convoy
Sources/Globe_3d/objects/globe_3d-impostor-terrain.adb
pragma Warnings (Off); pragma Style_Checks (Off); with GLOBE_3D.Textures, GLOBE_3D.Math; with glut.Windows; use glut.Windows; with GL.Errors; with GLU; with ada.text_io; package body GLOBE_3D.Impostor.Terrain is package G3DT renames GLOBE_3D.Textures; package G3DM renames GLOBE_3D.Math; ...
5,256
ada
33
ytomino/drake
source/s-unwbac.adb
pragma Check_Policy (Trace => Ignore); with Ada; -- assertions with System.Formatting.Address; with System.Storage_Map; with System.Unwind.Occurrences; with System.Unwind.Raising; package body System.Unwind.Backtrace is pragma Suppress (All_Checks); package Separated is -- equivalent to __gnat_backtrace ...
5,257
ada
10
persan/gdnative_ada
src/gdnative.ads
package GDNative is function To_Str (S : Wide_String) return String; function To_Wide (S : String) return Wide_String; end;
5,258
ada
15
My-Colaborations/dynamo
src/asis/asis-ids.ads
------------------------------------------------------------------------------ -- -- -- ASIS-for-GNAT INTERFACE COMPONENTS -- -- -- -- ...
5,259
ada
1
TNO/Dependency_Graph_Extractor-Ada
tests/syntax_examples/src/basic_subprogram_calls-child.ads
<reponame>TNO/Dependency_Graph_Extractor-Ada<gh_stars>1-10 package Basic_Subprogram_Calls.Child is function Child_F1 return Integer; procedure Child_P1; end Basic_Subprogram_Calls.Child;
5,260
ada
0
persan/advent-of-code-2020
src/day-10/adventofcode-day_10-main.adb
<filename>src/day-10/adventofcode-day_10-main.adb with Ada.Text_IO; use Ada.Text_IO; procedure Adventofcode.Day_10.Main is begin Put_Line ("Day-10"); end Adventofcode.Day_10.Main;
5,261
ada
30
jrmarino/AdaBase
testcases/execute_dynabound/execute_dynabound.adb
<gh_stars>10-100 with AdaBase; with Connect; with CommonText; with Ada.Text_IO; with Ada.Calendar; with AdaBase.Results.Sets; with Interfaces; procedure Execute_Dynabound is package CON renames Connect; package TIO renames Ada.Text_IO; package AR renames AdaBase.Results; package ARS renames AdaBase.Resul...
5,262
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/profile_warning_p.ads
package profile_warning_p is generic procedure Proc; end;
5,263
ada
3
jwarwick/aoc_2020
day21/src/day.ads
-- AOC 2020, Day 21 package Day is procedure ingredient_count(filename : in String); end Day;
5,264
ada
1
faelys/natools-web
src/natools-web-simple_pages-dynamic_multipages.adb
------------------------------------------------------------------------------ -- Copyright (c) 2019, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this software for any -- -- purpose ...
5,265
ada
24
svn2github/matreshka
source/uaflex/matreshka-internals-graphs.ads
<filename>source/uaflex/matreshka-internals-graphs.ads ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
5,266
ada
0
Letractively/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...
5,267
ada
36
rewriting/tom
src/tom/library/sl/ada/abstractstrategycombinatorpackage.adb
with Ada.Text_IO; use Ada.Text_IO; package body AbstractStrategyCombinatorPackage is procedure initSubterm(sc : in out AbstractStrategyCombinator) is begin sc.arguments := null; end; procedure initSubterm(sc : in out AbstractStrategyCombinator; str : StrategyPtr) is begin sc.arguments := new ObjectPtrArra...
5,268
ada
1
LaudateCorpus1/RosettaCodeData
Task/Happy-numbers/Ada/happy-numbers.ada
<reponame>LaudateCorpus1/RosettaCodeData with Ada.Text_IO; use Ada.Text_IO; with Ada.Containers.Ordered_Sets; procedure Test_Happy_Digits is function Is_Happy (N : Positive) return Boolean is package Sets_Of_Positive is new Ada.Containers.Ordered_Sets (Positive); use Sets_Of_Positive; function Ne...
5,269
ada
33
ytomino/drake
source/a-sbtzst.ads
<filename>source/a-sbtzst.ads pragma License (Unrestricted); -- extended unit package Ada.Streams.Block_Transmission.Wide_Wide_Strings is -- There are efficient streaming operations for Wide_Wide_String. pragma Pure; procedure Read is new Block_Transmission.Read ( Positive, Wide_Wide...
5,270
ada
12
TUM-EI-RCS/StratoX
software/lib/units-navigation.ads
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- Module: Units -- -- Authors: <NAME> (<EMAIL>) -- -- Description: Additional units for navigation -- with Units.Vectors; use Units.Vectors; with Units.Numerics; use Units.Numerics; with Interfa...
5,271
ada
3
rogermc2/GA_Ada
test_draw_line_major/src/shader_manager.adb
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; with GL.Objects.Shaders; with Program_Loader; package body Shader_Manager is Black : constant GL.Types.Singles.Vector4 := (0.0, 0.0, 0.0, 0.0); Render_Uniforms : Shader_Uniforms; procedure Init (Render_Program : in out GL.Objects.Programs.Progra...
5,272
ada
24
svn2github/matreshka
source/web/tools/a2js/webapi/html/webapi-html-elements.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
5,273
ada
20
charlie5/lace
3-mid/opengl/source/opengl-conversions.adb
package body openGL.Conversions is function to_Vector_4 (From : in lucid_Color) return Vector_4 is begin return (to_Real (From.Primary.Red), to_Real (From.Primary.Green), to_Real (From.Primary.Blue), to_Real (From.Opacity)); end to_Vector_4; function to...
5,274
ada
0
faelys/natools
generated/natools-static_hash_maps-s_expressions-command_map.ads
<gh_stars>0 package Natools.Static_Hash_Maps.S_Expressions.Command_Map is function Hash (S : String) return Natural; end Natools.Static_Hash_Maps.S_Expressions.Command_Map;
5,275
ada
80
enfoTek/tomato.linksys.e2000.nvram-mod
tools-src/gnu/gcc/gcc/ada/prj-part.adb
<reponame>enfoTek/tomato.linksys.e2000.nvram-mod ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
5,276
ada
5
docandrew/troodon
include/bits_time_h.ads
<filename>include/bits_time_h.ads pragma Ada_2012; pragma Style_Checks (Off); with Interfaces.C; use Interfaces.C; with bits_types_h; limited with bits_timex_h; package bits_time_h is -- unsupported macro: CLOCKS_PER_SEC ((__clock_t) 1000000) CLOCK_REALTIME : constant := 0; -- /usr/include/bits/time.h:46 ...
5,277
ada
1
LaudateCorpus1/RosettaCodeData
Task/Order-two-numerical-lists/Ada/order-two-numerical-lists.ada
<gh_stars>1-10 with Ada.Text_IO; use Ada.Text_IO; procedure Order is type IntArray is array (Positive range <>) of Integer; List1 : IntArray := (1, 2, 3, 4, 5); List2 : IntArray := (1, 2, 1, 5, 2, 2); List3 : IntArray := (1, 2, 1, 5, 2); List4 : IntArray := (1, 2, 1, 5, 2); type Animal is (Rat, Cat...
5,278
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36301b.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36301b.ada -- C36301B.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...
5,279
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/e/ee3409f.ada
<reponame>best08618/asylo -- EE3409F.ADA -- Grant of Unlimited Rights -- -- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687, -- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained -- unlimited rights in the software and documentation contai...
5,280
ada
1
Hathoute/ENSEEIHT
PIM/TP1_Algorithmique/somme_serie.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; -- Afficher la somme des valeurs d'un série dont les valeurs sont lues au clavier. -- Pour marquer la fin de la série, la dernière valeur est doublée. procedure Somme_Serie is Somme: Integer; -- Somme des valeurs de ...
5,281
ada
1
ytomino/vampire
source/tabula-villages-village_io.ads
-- The Village of Vampire by YT, このソースコードはNYSLです with Serialization; package Tabula.Villages.Village_IO is package Village_State_IO is new Serialization.IO_Enumeration (Tabula.Villages.Village_State); end Tabula.Villages.Village_IO;
5,282
ada
0
My-Colaborations/ada-ado
src/postgresql/ado-postgresql.ads
<filename>src/postgresql/ado-postgresql.ads<gh_stars>0 ----------------------------------------------------------------------- -- ado-postgresql -- PostgreSQL Database Drivers -- Copyright (C) 2019 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ma...
5,283
ada
2
persan/gprTools
src/gpr_tools-gprslaves-configuration.ads
with GNAT.Spitbol; with Ada.Directories; with Ada.Command_Line; package GPR_Tools.Gprslaves.Configuration is use GNAT.Spitbol; Nameserver : VString := V (Default_Nameserver); Command : constant String := Ada.Directories.Base_Name (Ada.Command_Line.Command_Name); type Verbose_Level is range 0 .. 2; V...
5,284
ada
4
Entomy/letscode-cards
Cards.adb
<gh_stars>1-10 package body Cards is function Image(Self : Card) return String is begin case Self.Face is when 11 => return " JACK of " & Self.Suit'Image; when 12 => return " QUEEN of " & Self.Suit'Image; when 13 => return " KING of " & Self.Suit'Image; when 14 => return " ACE of " & Self.Suit'Image; ...
5,285
ada
0
ytomino/gnat4drake
g-deutst.ads
<reponame>ytomino/gnat4drake pragma License (Unrestricted); with System.WCh_Con; with GNAT.Decode_String; package GNAT.Decode_UTF8_String is new GNAT.Decode_String (System.WCh_Con.WCEM_UTF8); pragma Pure (GNAT.Decode_UTF8_String);
5,286
ada
0
VitalijBondarenko/adagettext
test/message_dialogs.adb
------------------------------------------------------------------------------ -- -- -- Copyright (c) 2014 <NAME> <<EMAIL>> -- -- -- ----------------------------...
5,287
ada
0
e3l6/SSMDev
calc.adb
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; with Ada.Calendar; use Ada.Calendar; with Ada.Calendar.Formatting; use Ada.Calendar.Formatting; with Ada.Calendar.Time_Zones; use Ada.Calendar.Time_...
5,288
ada
0
DrenfongWong/tkm-rpc
specs/ada/server/ike/tkmrpc-operation_handlers-ike-isa_create_child.adb
<filename>specs/ada/server/ike/tkmrpc-operation_handlers-ike-isa_create_child.adb with Tkmrpc.Servers.Ike; with Tkmrpc.Results; with Tkmrpc.Request.Ike.Isa_Create_Child.Convert; with Tkmrpc.Response.Ike.Isa_Create_Child.Convert; package body Tkmrpc.Operation_Handlers.Ike.Isa_Create_Child is -----------------------...
5,289
ada
1
fabiojna02/OpenCellular
firmware/coreboot/3rdparty/libgfxinit/common/g45/hw-gfx-gma-gmch-lvds.adb
-- -- Copyright (C) 2015-2016 secunet Security Networks AG -- Copyright (C) 2016 <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...
5,290
ada
0
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr9_3.adb
-- { dg-do compile } with Ada.Streams; use Ada.Streams; procedure Addr9_3 is type Signal_Type is mod 2 ** 16; type A_Item is record I : Signal_Type; Q : Signal_Type; end record with Size => 32; for A_Item use record I at 0 range 0 .. 15; Q at 2 range 0 .. 15; ...
5,291
ada
1
charlie5/lace-alire
3-mid/physics/interface/source/private/bullet/bullet_physics-object.ads
with physics.Object, physics.Model, physics.Shape, bullet_C; private with bullet_c.Pointers, lace.Any; package bullet_Physics.Object -- -- Provides glue between a physics object and a Bullet3D object. -- is type Item is limited new physics.Object.item with private; type View is acc...
5,292
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-2.2.1/wisitoken-parse-lr-parser.ads
<gh_stars>0 -- Abstract : -- -- A generalized LR parser. -- -- In a child package of Parser.LR partly for historical reasons, -- partly to allow McKenzie_Recover to be in a sibling package. -- -- Copyright (C) 2002, 2003, 2009, 2010, 2013-2015, 2017 - 2019 Free Software Foundation, Inc. -- -- This file is part of...
5,293
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-casi32.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY COMPONENTS -- -- -- -- ...
5,294
ada
12
TUM-EI-RCS/StratoX
runtime/ravenscar-sfp-stm32f427/gnarl-common/s-interr.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
5,295
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/g-rannum.ads
<reponame>brucegua/moocos<gh_stars>1-10 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
5,296
ada
0
reznikmm/gela
source/nodes/program-nodes-discriminant_associations.ads
<reponame>reznikmm/gela -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Identifiers; with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Discriminant_Association...
5,297
ada
1
LaudateCorpus1/RosettaCodeData
Task/Execute-a-Markov-algorithm/Ada/execute-a-markov-algorithm-2.ada
<filename>Task/Execute-a-Markov-algorithm/Ada/execute-a-markov-algorithm-2.ada package body Markov is function Parse (S : String_Array) return Ruleset is Result : Ruleset (Length => S'Length); begin for I in S'Range loop if Length (S (I)) = 0 or else Element (S (I), 1) = '#' then ...
5,298
ada
15
AdaCore/training_material
extern/game_support/stm32f4/src/stm32f4-spi.adb
<filename>extern/game_support/stm32f4/src/stm32f4-spi.adb<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- ...
5,299
ada
1
TNO/Rejuvenation-Ada
find_tool/src/finder.adb
with Libadalang.Common; use Libadalang.Common; package body Finder is function Find (Node : Ada_Node'Class; P : Pattern) return Match_Pattern_List.Vector is (if P.As_Ada_Node.Kind in Ada_Ada_List then Find_Sub_List (Node, P) else Find_Full (Node, P)); end Finder;