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
10,100
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf52/nrf_svd-rng.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...
10,101
ada
1
faelys/natools-web
tests/common.adb
<filename>tests/common.adb ------------------------------------------------------------------------------ -- Copyright (c) 2014-2015, <NAME> -- -- -- -- Permission to use, copy, modify, and distribute this softwar...
10,102
ada
1
persan/A-gst
src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_base_gstadapter_h.ads
<filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_base_gstadapter_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.glib_2_0_gobject_gobject_h; -- limited with GStreamer.GS...
10,103
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/stm32f3/gpio/main.adb
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control; with STM32GD.GPIO; with STM32GD.GPIO.Pin; with STM32GD.EXTI; with STM32_SVD.RCC; with Button_Irq; procedure Main is package GPIO renames STM32GD.GPIO; package LED is new GPIO.Pin (Pin => GPIO.Pin_5, Port => GPIO.Port_A, Mode => GPIO.Mode_O...
10,104
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug8.adb
<reponame>best08618/asylo -- { dg-do compile } -- { dg-options "-cargs -g -fgnat-encodings=minimal -dA -margs" } -- { dg-final { scan-assembler-not "DW_OP_const4u" } } -- { dg-final { scan-assembler-not "DW_OP_const8u" } } -- The DW_AT_byte_size attribute DWARF expression for the -- DW_TAG_structure_type DIE that de...
10,105
ada
88
VVCAS-Sean/OpenUxAS
src/ada/src/main/ctrl_c_handler__gcov.adb
<filename>src/ada/src/main/ctrl_c_handler__gcov.adb with GNAT.OS_Lib; with GNAT.Ctrl_C; procedure Ctrl_C_Handler is procedure Flush; pragma Import (C, Flush, "__gcov_flush"); procedure SIGINT_Exit is begin Flush; GNAT.OS_Lib.OS_Exit (1); end SIGINT_Exit; begin GNAT.Ctrl_C.Install_Handler ...
10,106
ada
26
damaki/libkeccak
src/common/keccak-generic_tuple_hash.ads
------------------------------------------------------------------------------- -- Copyright (c) 2019, <NAME> -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that the following conditions are met: -- * Redistributions of s...
10,107
ada
0
simonjwright/VL53L1X
demo/vl53l1x_demo-main.adb
<gh_stars>0 with Semihosting; with Ada.Real_Time; with HAL.I2C; with VL53L1X; with VL53L1X_Demo.Hardware; use VL53L1X_Demo.Hardware; procedure VL53L1X_Demo.Main is -- Override the default task stack sizes used by Cortex GNAT RTS, -- which aren't enough for this code. -- For the environment task. En...
10,108
ada
0
bracke/Meaning
source/Controller_Quit.ads
<gh_stars>0 with RASCAL.ToolboxQuit; use RASCAL.ToolboxQuit; with RASCAL.TaskManager; use RASCAL.TaskManager; with RASCAL.OS; use RASCAL.OS; package Controller_Quit is type TEL_Quit_Quit is new ATEL_Toolbox_Quit_Quit with null record; type MEL_Message_Quit is new AMEL_M...
10,109
ada
0
twinbee/petersons
as3.adb
--------------------------------------------------------------- -- Author: <NAME> -- Class: CSC410 Burgess -- Date: 09-21-04 Modified: 9-21-04 -- Desc: Assignment 3: PETERSON'S ALGORITHM -- a simple implementation of -- PETERSON's algorithm which describes -- mutual exclusion, fairness, and deadlock avoida...
10,110
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/asm_machine_code.adb
<gh_stars>100-1000 --An example of inline assember. Originally written as a --test for code-segment, the Ada95 standard way to do --assembler, but apparently no one has ever used that in --the history of the world. with Interfaces; use Interfaces; with System.Machine_Code; use System.Machine_Code; with Ada.Text_IO; u...
10,111
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pointer_discr1_pkg2.ads
<reponame>best08618/asylo with Unchecked_Conversion; with Pointer_Discr1_Pkg3; package Pointer_Discr1_Pkg2 is subtype T_WINDOW is Pointer_Discr1_Pkg3.T_WINDOW(Pointer_Discr1_Pkg3.One); function TO_WINDOW is new Unchecked_Conversion(Integer, T_WINDOW); end Pointer_Discr1_Pkg2;
10,112
ada
0
iyan22/AprendeAda
ejercicios3/ordenar_por_insercion.adb
<filename>ejercicios3/ordenar_por_insercion.adb with datos; use datos; with Buscar_Posicion_De_Insercion, Desplazar_Una_Posicion_A_La_Derecha; procedure Ordenar_Por_Insercion (L : in Lista_Enteros; L_Ordenada : out Lista_Enteros) is -- pre: -- post: L_ordenada contiene los valores de L en orden ascendente p...
10,113
ada
15
AdaCore/training_material
extern/game_support/stm32f4/src/stm32f4-usarts.ads
<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Hardware Abstraction Layer for STM32 Targets -- -- ...
10,114
ada
3
albinjal/ada_basic
Lab1/lab1.adb
<filename>Lab1/lab1.adb with Ada.Text_IO; use Ada.Text_IO; with Ada.Float_Text_IO; use Ada.Float_Text_IO; procedure lab1 is FP, LP, Steps, Moms: Float; begin FP := 10.0; LP := 15.0; Steps := 0.5; Moms := 10.0; Put("=== Momstabell ==="); New_Line(1); Put("Pris utan moms Moms Pris med moms"); ...
10,115
ada
4
jquorning/Gauss
source/setup.ads
<reponame>jquorning/Gauss -- -- 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. -- package Setup is...
10,116
ada
1
faelys/natools-web
generated/natools-static_maps-web-tags.ads
-- Generated at 2015-10-25 22:37:42 +0000 by Natools.Static_Hash_Maps -- from src/natools-web-tags-maps.sx package Natools.Static_Maps.Web.Tags is pragma Pure; type List_Command is (Unknown_List_Command, All_Children, All_Descendants, All_Elements, All_Leaves, Current_Elemen...
10,117
ada
12
jquorning/ada-asf
src/asf-events-phases.ads
----------------------------------------------------------------------- -- asf-events-phases -- Lifecycle phase event -- Copyright (C) 2012 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License....
10,118
ada
0
caqg/linux-home
Examples/Ada/greetings.ads
<filename>Examples/Ada/greetings.ads<gh_stars>0 package Greetings is procedure Hello; procedure Goodbye; end Greetings;
10,119
ada
17
WinterAlexander/Ada-IntelliJ
src/main/resources/project-templates/microbit_example/src/display.ads
------------------------------------------------------------------------------ -- Copyright (C) 2018, AdaCore -- -- -- -- This is free software; you can redistribute it and/or modify it under -- -- t...
10,120
ada
0
iyan22/AprendeAda
ejercicios1/diviporrestas.adb
<gh_stars>0 procedure diviporrestas(dividendo: in Integer; divisor: in Integer; resultado, resto: out Integer) is begin Resto:=Dividendo; resultado:=0; loop exit when divisor > resto; resto:=resto-divisor; resultado:=resultado+1; end loop; end diviporrestas;
10,121
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/ada/sinfo-cn.ads
<reponame>best08618/asylo ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
10,122
ada
1
TNO/Rejuvenation-Ada
tests/src/make_ada.adb
package body Make_Ada is function Make_Call (Name : String; Actual_Parameter_Part : Vector) return String is Actual_Parameter_Part_String : constant String := (if Actual_Parameter_Part.Is_Empty then "" else " (" & Join (Actual_Parameter_Part, ", ") & ")");...
10,123
ada
1
annexi-strayline/ASAP-JSON
json-fast_slab_allocators.adb
------------------------------------------------------------------------------ -- -- -- JSON Parser/Constructor -- -- -- -- -...
10,124
ada
0
hgrodriguez/embedded-dashboard-console
src/evaluate-matrices.ads
<filename>src/evaluate-matrices.ads --=========================================================================== -- -- This package checks and evaluates the input received from the serial -- line for commanding the LEDs -- --=========================================================================== -- -- Copyright...
10,125
ada
1
selroc/Renaissance-Ada
src/examples/Rejuvenation_Workshop/src/count_subprogram.ads
package Count_Subprogram is procedure P2A (x, y : Integer); procedure P2B (x : Integer; y : Integer); procedure P4A (k, l, m, n : Integer); procedure P4B (k : Integer; l : Integer; m : Integer; n : Integer); procedure P3A (x, y, z : Integer); procedure P3B (x, y : Integer; z : Integer); procedur...
10,126
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deref3.adb
-- { dg-do compile } with deref2; procedure deref3 is Obj : aliased deref2.NT; begin deref2.PT_View (Obj'Access).Op; Obj.PT_View.all.Op; Obj.PT_View.Op; end;
10,127
ada
0
hannesb0/rtpl18
src/lab-code/ravenspark_racecond/account.ads
pragma profile(Ravenscar); pragma Partition_Elaboration_Policy (Sequential); package account with SPARK_Mode is Num_Accounts : Natural := 0; task type Account_Management is end Account_Management; -- tasks at package level t1 : Account_Management; t2 : Account_Management; end Account;
10,128
ada
9
ajnavarro/language-dataset
data/github.com/stcarrez/etherscope/d53e55c0dc52d0fce500dc7df91274320d183038/src/etherscope-analyzer-ethernet.ads
<gh_stars>1-10 ----------------------------------------------------------------------- -- etherscope-analyzer-ethernet -- Ethernet packet analyzer -- Copyright (C) 2016 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in...
10,129
ada
2
morbos/Ada_Drivers_Library
arch/ARM/STM32/driversL5/stm32-hash.adb
with System; with STM32_SVD.RCC; use STM32_SVD.RCC; package body STM32.HASH is procedure Enable_Hash is RCC : aliased RCC_Peripheral with Import, Address => S_NS_Periph (RCC_Base); begin RCC.AHB2ENR.HASHEN := True; end Enable_Hash; procedure Init_Hash (Algorithm : Algorithm_Selec...
10,130
ada
1
LaudateCorpus1/RosettaCodeData
Task/Hailstone-sequence/Ada/hailstone-sequence-1.ada
with Ada.Text_IO; use Ada.Text_IO; procedure hailstone is type int_arr is array(Positive range <>) of Integer; type int_arr_pt is access all int_arr; function hailstones(num:Integer; pt:int_arr_pt) return Integer is stones : Integer := 1; n : Integer := num; begin if pt /= null then pt(1) := num; end if; ...
10,131
ada
4
davidkristola/vole
kv-avm-affiliates.ads
<reponame>davidkristola/vole<gh_stars>1-10 with Ada.Containers.Vectors; with Interfaces; with kv.Ref_Counting_Mixin; with kv.avm.Ini; with kv.avm.Clients; with kv.avm.Servers; with kv.avm.Control; package kv.avm.Affiliates is type Affiliates_Type is tagged private; procedure Initialize (Self : in ou...
10,132
ada
5
Componolit/AZ3
tests/z3-tests.adb
<reponame>Componolit/AZ3 with AUnit.Assertions; package body Z3.Tests is use AUnit.Assertions; subtype LLI is Long_Long_Integer; subtype LLU is Long_Long_Unsigned; function Simp (V : Bool_Type) return Bool_Type is begin return V.Simplified; end Simp; function Simp (V : Int_Type) return I...
10,133
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cb/cb4009a.ada
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cb/cb4009a.ada -- CB4009A.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...
10,134
ada
24
reznikmm/matreshka
examples/servlets/web_sockets/source/servlets-hello.ads
<filename>examples/servlets/web_sockets/source/servlets-hello.ads<gh_stars>10-100 ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -...
10,135
ada
20
charlie5/lace
3-mid/impact/source/2d/dynamics/joints/impact-d2-joint-gear.adb
package body impact.d2.Joint.gear is procedure dummy is begin null; end dummy; -- #include <Box2D/Dynamics/Joints/b2GearJoint.h> -- #include <Box2D/Dynamics/Joints/b2RevoluteJoint.h> -- #include <Box2D/Dynamics/Joints/b2PrismaticJoint.h> -- #include <Box2D/Dynamics/b2Body.h> -- #include <Box2D/Dynamics/b2Time...
10,136
ada
1
vidkidz/crossbridge
llvm-gcc-4.2-2.9/gcc/ada/a-taside.adb
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
10,137
ada
76
yannickmoy/SPARKNaCl
tests/testall.adb
<filename>tests/testall.adb with Hash; with Box; with Box7; with Box8; with Core1; with Core3; with Onetimeauth; with Onetimeauth2; with Onetimeauth7; with Scalarmult; with Scalarmult2; with Scalarmult5; with Scalarmult6; with Secretbox; with Secretbox2; with Secretbox3; with Secretbox7; with Secretbox8; with Secretbox...
10,138
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-imde32.ads
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
10,139
ada
12
TUM-EI-RCS/StratoX
tests/linkedlist/src/wrap.adb
with Ada.Containers; use Ada.Containers; with Ada.Text_IO; use Ada.Text_IO; package body wrap with SPARK_Mode is procedure foo is c : My_Lists.Cursor; begin My_Lists.Clear (li); My_Lists.Append (li, One); c := My_Lists.First (li); Put_Line ("First=" & Element_Type'Image (My_Lists.El...
10,140
ada
1
procrastiraptor/euler
ada/string_int.adb
<filename>ada/string_int.adb package body String_Int is Zero_Pos: constant Natural := Digit'Pos(Digit'First); procedure Add(A, B: in Digit; Sum: out Digit; Carry: in out Digit) is S: Natural := Digit'Pos(A) + Digit'Pos(B) + Digit'Pos(Carry); begin S := S - 3 * Zero_Pos; Sum := Digit'Val((S ...
10,141
ada
1
OneWingedShark/Risi
src/risi_script-types-implementation-convert.adb
<filename>src/risi_script-types-implementation-convert.adb<gh_stars>1-10 with Risi_Script.Types.Internals; Separate(Risi_Script.Types.Implementation) Function Convert( Item : Representation; To : Enumeration ) return Representation is use Risi_Script.Types.Internals, Risi_Script.Types.Implementation.Conversions; ...
10,142
ada
1
LaudateCorpus1/RosettaCodeData
Task/Distributed-programming/Ada/distributed-programming-2.ada
<filename>Task/Distributed-programming/Ada/distributed-programming-2.ada package body Server is Count : Natural := 0; procedure Foo is begin Count := Count + 1; end Foo; function Bar return Natural is begin return Count; end Bar; end Server;
10,143
ada
0
honno/code-solutions
university/language-concepts-labs/9/ada/bubble_test.adb
<gh_stars>0 with Ada.Text_IO; use Ada.Text_IO; with Bubble; use Bubble; with Ada.Task_Identification; use Ada.Task_Identification; procedure Bubble_Test is A, B, C, D : Integer; begin Put_Line("Starting"); State.Set_All(5,1,3,1); State.Wait_Until_Sorted(A,B,C,D); Put_Line("Done"); Abort_Task (C...
10,144
ada
1
charlie5/lace-alire
3-mid/opengl/private/freetype/source/freetype-face_size.adb
with freeType_C.Binding, freeType_C.Pointers; package body freetype.face_Size is use freeType_C; -------------- --- Attributes -- function CharSize (Self : access Item; Face : in FT_Face.item; point_Size : in Natural; ...
10,145
ada
33
ytomino/drake
examples/input2forward.adb
<gh_stars>10-100 with Ada.Containers.Forward_Iterators; with Ada.Directories; with Ada.Text_IO.Iterators; procedure input2forward is begin declare use Ada.Directories; Listing : aliased Directory_Listing := Entries (".", "*"); package DII is new Ada.Containers.Forward_Iterators ( Input_Cursor => Ada.Directori...
10,146
ada
0
JeremyGrosser/epoll-ada
example/src/server.adb
<gh_stars>0 -- -- Copyright (C) 2022 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: BSD-3-Clause -- with Ada.Text_IO; use Ada.Text_IO; with Interfaces; package body Server is use GNAT.Sockets; Listen_Backlog : constant := 128; function Hash (Element : GNAT.Sockets.Socket_Type) return Ada.Container...
10,147
ada
1
LaudateCorpus1/RosettaCodeData
Task/Arena-storage-pool/Ada/arena-storage-pool-4.ada
<gh_stars>1-10 with Arena_Pools; use Arena_Pools; procedure Test_Allocator is Pool : Arena_Pools.Arena (1024); type Integer_Ptr is access Integer; for Integer_Ptr'Storage_Pool use Pool; X : Integer_Ptr := new Integer'(1); Y : Integer_Ptr := new Integer'(2); Z : Integer_Ptr; begin Z := new Intege...
10,148
ada
30
jscparker/math_packages
ordinary/runge_coeffs_pd_5.ads
----------------------------------------------------------------------- -- package body Crout_LU, LU decomposition, with equation solving -- Copyright (C) 2008-2018 <NAME>. -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee is hereby granted, provided that the...
10,149
ada
12
TUM-EI-RCS/StratoX
software/hal/boards/pixracer_v1/hil/hil-uart.adb
-- Institution: Technische Universität München -- Department: Realtime Computer Systems (RCS) -- Project: StratoX -- -- Authors: <NAME> (<EMAIL>) pragma SPARK_Mode (Off); with STM32.USARTs; with STM32.Device; with HIL.Devices; use HIL.Devices; -- @summary -- Target-specific mapping for HIL of UART package ...
10,150
ada
4
jerry-sky/academic-notebook
electives/pw/lab/lista-3/ada/external.adb
package body External is procedure SleepForSomeTime (maxSleep: Natural) is gen: RAF.Generator; fraction: Float; begin RAF.Reset(gen); fraction := 1.0 / Float(maxSleep); delay Duration(fraction * RAF.Random(gen)); end SleepForSomeTime; end External;
10,151
ada
30
jrmarino/AdaBase
src/interfaces/adabase-interfaces-logger.ads
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../../License.txt package AdaBase.Interfaces.Logger is type iLogger is interface; procedure reaction (listener : iLogger) is null; end AdaBase.Interfaces.Logger;
10,152
ada
0
Tim-Tom/project-euler
Ada/inc/Problem_18.ads
package Problem_18 is procedure Solve; end Problem_18;
10,153
ada
0
djgoku/RosettaCodeData
Task/Floyds-triangle/Ada/floyds-triangle.ada
<filename>Task/Floyds-triangle/Ada/floyds-triangle.ada with Ada.Text_IO, Ada.Integer_Text_IO, Ada.Command_Line; procedure Floyd_Triangle is Rows: constant Positive := Integer'Value(Ada.Command_Line.Argument(1)); Current: Positive := 1; Width: array(1 .. Rows) of Positive; begin -- ...
10,154
ada
3
stcarrez/ada-css
tools/parser/css-analysis-parser-lexer_dfa.ads
<filename>tools/parser/css-analysis-parser-lexer_dfa.ads pragma Style_Checks (Off); package CSS.Analysis.Parser.Lexer_dfa is aflex_debug : boolean := false; yylineno : Natural := 0; yylinecol : Natural := 0; yy_last_yylineno : Natural := 0; yy_last_yylinecol : Natural := 0; -- Warning: This file is...
10,155
ada
0
hgrodriguez/edc-client
src/edc_client-alpha.ads
<gh_stars>0 --=========================================================================== -- -- This package is the root package for the Alpha part of the EDC Client -- All shared type definitions are defined here -- --=========================================================================== -- -- Copyright 2021 (...
10,156
ada
1
michalkonecny/polypaver
tools/SPARK2005/preprocessor/src/fp_translation.ads
<gh_stars>1-10 with Ada.Wide_Text_IO; use Ada.Wide_Text_IO; with ASIS; with ASIS.Text; package FP_Translation is type Traversal_State is record Span : ASIS.Text.Span; Output_File : File_Type; Trace : Boolean; end record; procedure Pre_Op (Element : Asis.Eleme...
10,157
ada
0
alire-project/sdlada
src/sdl-events-joysticks.ads
-------------------------------------------------------------------------------------------------------------------- -- Copyright (c) 2013-2018 <NAME> -- -- This software is provided 'as-is', without any express or implied -- warranty. In no event will the authors be held liable for any damages -- arising from the ...
10,158
ada
2
damaki/dw1000-rssi-tester
receiver/src/receiver.adb
------------------------------------------------------------------------------- -- Copyright (c) 2017 <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, inc...
10,159
ada
4
davidkristola/vole
string_ops.adb
<filename>string_ops.adb<gh_stars>1-10 -- public domain with Ada.Calendar; with Ada.Characters.Latin_1; with Ada.Strings.Maps.Constants; with Ada.Strings.Maps; with Ada.Strings.Fixed; with Ada.Text_IO; with Interfaces; package body String_Ops is use type Interfaces.Unsigned_32; use type Ada.Strings.Maps.Charact...
10,160
ada
0
optikos/oasis
source/nodes/program-nodes-derived_record_extensions.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Elements.Definitions; with Program.Elements.Derived_Record_Extensions; w...
10,161
ada
20
charlie5/lace
3-mid/opengl/source/lean/text/opengl-glyph.ads
with freeType_c.FT_GlyphSlot, openGL.GlyphImpl; package openGL.Glyph -- -- Glyph is the base class for openGL glyphs. -- -- It provides the interface between Freetype glyphs and their openGL -- renderable counterparts. -- -- This is an abstract class and derived classes must implement the 'Render' functi...
10,162
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-memory.adb
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
10,163
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/myarray.ads
<gh_stars>100-1000 package myarray is type Vector is array (Integer range <>) of Float; type Matrix is array (Integer range <>, Integer range <>) of Float; function "+" (Left : in Vector; Right : in Vector) return Vector; function "+" (Left : in Matrix; Ri...
10,164
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/s-pooglo.ads
<filename>tools/scitools/conf/understand/ada/ada12/s-pooglo.ads ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
10,165
ada
0
Letractively/ada-util
samples/json.adb
----------------------------------------------------------------------- -- json -- JSON Reader -- Copyright (C) 2010, 2011, 2014 <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. -- ...
10,166
ada
0
Letractively/ada-awa
awa/plugins/awa-votes/src/awa-votes.ads
<reponame>Letractively/ada-awa ----------------------------------------------------------------------- -- awa-votes -- Module votes -- Copyright (C) 2013 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance wit...
10,167
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada05/s-imgllu.ads
<reponame>brucegua/moocos ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
10,168
ada
5
jhumphry/auto_counters
src/kvflyweights/kvflyweights.ads
<filename>src/kvflyweights/kvflyweights.ads -- kvflyweights.ads -- A package for ensuring resources are not duplicated in a manner similar -- to the C++ Boost flyweight classes. -- Copyright (c) 2016, <NAME> -- -- Permission to use, copy, modify, and/or distribute this software for any -- purpose with or without fee i...
10,169
ada
1
danva994/ASFML-1.6
include/sf-graphics-string.ads
<gh_stars>1-10 -- //////////////////////////////////////////////////////////// -- // -- // SFML - Simple and Fast Multimedia Library -- // Copyright (C) 2007-2009 <NAME> (<EMAIL>) -- // -- // This software is provided 'as-is', without any express or implied warranty. -- // In no event will the authors be held liable fo...
10,170
ada
12
TUM-EI-RCS/StratoX
runtime/ravenscar-sfp-stm32f427/gnarl-common/a-exetim.ads
<reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/gnarl-common/a-exetim.ads ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS ...
10,171
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85006f.ada
-- C85006F.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. -- Unlimit...
10,172
ada
35
blueintegral/Level
hardware/Simulations/cc1101_wrk/workspace.ads
<ADSWorkspace Revision="7" Version="100"> <Workspace Name=""> <Library Name="1xEV" /> <Library Name="3GPPFDD" /> <Library Name="3GPPFDD_10_99" /> <Library Name="Antennas_and_Propagation" /> <Library Name="CDMA" /> <Library Name="CMMB" /> <Library Name="Circuit...
10,173
ada
33
ytomino/drake
source/sjlj/s-unwrep.ads
<gh_stars>10-100 pragma License (Unrestricted); -- runtime unit for ZCX (or SjLj, or Win64 SEH) with C.unwind; package System.Unwind.Representation is pragma Preelaborate; subtype Unwind_Exception_Class is C.unwind.Unwind_Exception_Class; -- (a-exexpr-gcc.adb) GNAT_Exception_Class : constant := 16#474e5...
10,174
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c97301e.ada
-- C97301E.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. -- Unlimit...
10,175
ada
0
JCGobbi/Nucleo-STM32G474RE
bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-io.ads
<gh_stars>0 ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
10,176
ada
0
faelys/natools
tests/natools-s_expressions-interpreter_tests.adb
<filename>tests/natools-s_expressions-interpreter_tests.adb ------------------------------------------------------------------------------ -- Copyright (c) 2014, <NAME> -- -- -- -- Permission to use, copy, mo...
10,177
ada
1
LaudateCorpus1/RosettaCodeData
Task/Globally-replace-text-in-several-files/Ada/globally-replace-text-in-several-files.ada
<filename>Task/Globally-replace-text-in-several-files/Ada/globally-replace-text-in-several-files.ada with Ada.Strings.Unbounded, Ada.Text_IO, Ada.Command_Line, Ada.Directories; procedure Global_Replace is subtype U_String is Ada.Strings.Unbounded.Unbounded_String; function "+"(S: String) return U_String renames...
10,178
ada
1
brucegua/moocos
tools/scitools/conf/understand/ada/ada12/s-imgllb.ads
<reponame>brucegua/moocos ------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- ...
10,179
ada
15
AdaCore/training_material
courses/spark_for_ada_programmers/labs/answers/130_state_abstractions/state/reverser.ads
with A_Stack; use A_Stack; package Reverser with SPARK_Mode is subtype Array_Range is Natural range 1 .. 10_000; type Array_Of_Items is array (Array_Range range <>) of Item; procedure Reverse_Array (A : in out Array_Of_Items) with Global => (In_Out => The_Stack), Pre => A'Length > 0 and th...
10,180
ada
24
svn2github/matreshka
source/web/tools/a2js/webapi/dom/webapi-dom-event_targets.ads
<reponame>svn2github/matreshka ------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- ...
10,181
ada
6
lunixbochs/project-euler
001-099/01/euler.adb
<reponame>lunixbochs/project-euler with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; procedure Euler is sum:Integer := 0; begin for I in Integer range 1 .. 999 loop if I mod 5 = 0 or I mod 3 = 0 then sum := sum + I; end if; end loop; Put(su...
10,182
ada
15
My-Colaborations/dynamo
src/gnat/fmap.adb
<reponame>My-Colaborations/dynamo<filename>src/gnat/fmap.adb ------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- ...
10,183
ada
1
jhumphry/Ascon_SPARK
src/ascon128av12.ads
<filename>src/ascon128av12.ads -- Ascon128av12 -- an instantiation of the Ascon-128a (v 1.2) variant of the Ascon Authenticated -- Encryption Algorithm created by <NAME>, <NAME>, -- <NAME> and <NAME>. -- Copyright (c) 2018, <NAME> - see LICENSE file for details pragma SPARK_Mode(On); with Ascon; package Ascon128av...
10,184
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c52010a.ada
-- C52010A.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. -- Unlimit...
10,185
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43205d.ada
<reponame>best08618/asylo<gh_stars>1-10 -- C43205D.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 docume...
10,186
ada
192
rocher/Ada_Drivers_Library
arch/ARM/Nordic/svd/nrf51/nrf_svd-radio.ads
<reponame>rocher/Ada_Drivers_Library -- Copyright (c) 2013, 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: -- -- * Redistributions of source code must retain the...
10,187
ada
18
kraileth/ravenadm
src/file_operations-heap.adb
-- This file is covered by the Internet Software Consortium (ISC) License -- Reference: ../License.txt with Ada.Text_IO.Text_Streams; package body File_Operations.Heap is package TIO renames Ada.Text_IO; package STR renames Ada.Text_IO.Text_Streams; procedure slurp_file (dossier : String) is begin ...
10,188
ada
1
ekoeppen/STM32_Generic_Ada_Drivers
examples/delay/main.adb
with Ada.Real_Time; use Ada.Real_Time; with STM32GD.Board; use STM32GD.Board; procedure Main is Next_Release : Time := Clock; Period : constant Time_Span := Milliseconds (500); begin Init; LED.Set; Text_IO.Put_Line ("Starting"); loop Text_IO.Put_Line ("Waiting"); Next_Release := N...
10,189
ada
0
caqg/linux-home
.emacs.d/elpa/wisi-2.1.1/wisitoken-bnf-generate_grammar.adb
-- Abstract : -- -- Output Ada source code to recreate Grammar. -- -- Copyright (C) 2018 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 versio...
10,190
ada
1
fabiojna02/OpenCellular
firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-gma-transcoder.adb
<gh_stars>1-10 -- -- Copyright (C) 2015-2018 secunet Security Networks AG -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software Foundation; either version 2 of the License, or -- (at your option) any later ...
10,191
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104l.ada
<reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64104l.ada<gh_stars>1-10 -- C64104L.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 ...
10,192
ada
488
ouankou/rose
tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/very_large_value.adb
procedure Very_Large_Value is begin if 16#2B.20000000000000000000000000000000000000000#E1 > 0.1 then null; end if; end Very_Large_Value;
10,193
ada
0
sebsgit/textproc
src/tests/maintestsuite.adb
with AUnit.Run; with AUnit.Reporter.Text; with ImageTests; with ShapeMatchingTests; with ShapeDatabaseTest; with HistogramTests; with HistogramDescriptorTests; with NeuralNetTests; with NeuralNetIOTests; with DataBatchTests; with NNClassifierTests; with TrainingSetTests; with CSVTests; with OpenCLTests; with GpuImageT...
10,194
ada
0
gerr135/gnat_bugs
gb_01/src_bug/root-child.ads
generic package root.child is type Base_Type is abstract new Base_Interface with null record; type Derived_Type is abstract new Base_Type and Derived_Interface with null record; end root.child;
10,195
ada
8
pvrego/adaino
examples/usart_polling_echo/src/main.adb
<filename>examples/usart_polling_echo/src/main.adb with AVR.USART; procedure Main is Out_Flag_Char : Character; begin AVR.USART.Initialize (In_Port => AVR.USART.USART1, In_Setup => (Sync_Mode => AVR.USART.ASYNCHRONOUS, Double_Speed => True, Baud_Rate => 9600, ...
10,196
ada
15
AdaCore/training_material
courses/fundamentals_of_ada/labs/prompts/180_polymorphism/shapes.adb
<reponame>AdaCore/training_material with Ada.Numerics.Generic_Elementary_Functions; package body Shapes is package Math is new Ada.Numerics.Generic_Elementary_Functions (Float_T); function Distance (Vertex1 : Vertex_T; Vertex2 : Vertex_T) return Float_T is begin return Math.Sqrt...
10,197
ada
0
JCGobbi/Nucleo-STM32H743ZI
ADL/hal/hal-spi.ads
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015-2016, AdaCore -- -- -- -- ...
10,198
ada
7
best08618/asylo
gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c95012a.ada
-- C95012A.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. -- Unlimit...
10,199
ada
7
stcarrez/atlas
src/atlas-applications.adb
<filename>src/atlas-applications.adb ----------------------------------------------------------------------- -- atlas -- atlas applications ----------------------------------------------------------------------- -- Copyright (C) 2012, 2013, 2014, 2015, 2016, 2017, 2020 <NAME> -- Written by <NAME> (<EMAIL>) -- -- Li...