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,100 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43207b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c43207b.ada
-- C43207B.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,101 | ada | 0 | frmr/power-station | main.adb | <gh_stars>0
with power_Station; use power_Station;
procedure Main
is
begin
Start_Reactor;
end Main;
|
5,102 | ada | 0 | optikos/oasis | source/oasis/program.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package Program is
pragma Pure (Program);
subtype Text is Wide_Wide_String;
-- Representation of program text
end Program;
|
5,103 | ada | 4 | ddugovic/words | inflections_package.ads | with TEXT_IO;
with DIRECT_IO;
package INFLECTIONS_PACKAGE is
package INTEGER_IO is new TEXT_IO.INTEGER_IO(INTEGER);
use TEXT_IO;
-- Generally simple/enumeration types have names ending in _TYPE
-- complex/record types have names ending in _RECORD
-- array type... |
5,104 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/adv_170_multiple_inheritance/answers/main.adb | <reponame>AdaCore/training_material
-----------------------------------------------------------------------
-- Ada Labs --
-- --
-- Copyright (C) 2008-2009, AdaCore ... |
5,105 | ada | 0 | fintatarta/generic-dsp | src/dsp-functions.ads | <reponame>fintatarta/generic-dsp<gh_stars>0
with Dsp.Generic_Functions;
with Ada.Numerics.Complex_Types;
--
-- Instantiation of Generic_Functions for Float and basic Complex
--
package Dsp.Functions is
new Dsp.Generic_Functions (Scalar_Type => Float,
Complex_Types => Ada.Numerics.Comple... |
5,106 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/vms_conv.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,107 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug7.adb | <reponame>best08618/asylo
-- { dg-do compile }
-- { dg-skip-if "No dwarf-2 support" { hppa*-*-hpux* } "*" "" }
-- { dg-options "-cargs -gdwarf-2 -gstrict-dwarf -dA -margs" }
-- { dg-final { scan-assembler "DW_TAG_imported_decl" } }
package body Debug7 is
function Next (I : Integer) return Integer is
begin
... |
5,108 | ada | 0 | melwyncarlo/ProjectEuler | problems/005/a005.adb | <gh_stars>0
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A005 is
use Ada.Integer_Text_IO;
I, N : Integer;
begin
I := 1;
loop
-- Based on the rules of divisibility, not all numbers from 1 to 20
-- have to be tested against.
N := 20 * I;
exit when ((N mod 19) ... |
5,109 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f4/stm32gd-usart-peripheral.ads | with STM32_SVD; use STM32_SVD;
with STM32_SVD.USART;
generic
Clock : Integer;
USART : USART_Instance;
Speed : UInt32;
package STM32GD.USART.Peripheral is
pragma Preelaborate;
procedure Enable;
procedure Disable;
procedure Init;
procedure Transmit (Data : in Byte);
function Data_Availabl... |
5,110 | ada | 33 | persan/zeromq-Ada | src/zmq-utilities-memory_streams.adb | <filename>src/zmq-utilities-memory_streams.adb
-------------------------------------------------------------------------------
-- --
-- Copyright (C) 2020-2030, <EMAIL> --
-- ... |
5,111 | ada | 33 | ytomino/drake | source/calendar/a-calfor.adb | <reponame>ytomino/drake
with Ada.Exception_Identification.From_Here;
with System.Formatting;
with System.Long_Long_Integer_Types;
with System.Native_Calendar;
with System.Native_Time;
package body Ada.Calendar.Formatting is
use Exception_Identification.From_Here;
use type Time_Zones.Time_Offset;
use type Syste... |
5,112 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf52/nrf_svd-mwu.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... |
5,113 | ada | 0 | positivevaib/nyu-archive | grad/programming-languages/ada-programming-assignment/Assignment_Main.adb | <reponame>positivevaib/nyu-archive
with Text_IO;
with Ada.Integer_Text_IO;
with Matrix_Mult;
use Text_IO;
use Ada.Integer_Text_IO;
use Matrix_Mult;
procedure Assignment_Main is
A: Mat;
B: Mat;
C: Mat;
task type Read_Mat is
entry Read(M: out Mat);
end Read_Mat;
task body Read_Mat is
... |
5,114 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming5.adb | -- PR ada/46192
-- Testcase by <NAME> <<EMAIL>>
-- { dg-do compile }
-- { dg-options "-O2 -fdump-tree-optimized" }
with System; use System;
package body Renaming5 is
type Bits_In_Byte is array (0 .. 7) of Boolean;
pragma Pack (Bits_In_Byte);
A : Bits_In_Byte;
for A'Address use System'To_Address(16#c0#)... |
5,115 | ada | 0 | wookey-project/ewok-legacy | src/Ada/ewok-mpu-interfaces.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 of the License at
--
-- http... |
5,116 | ada | 0 | iyan22/AprendeAda | ejercicios6/posicion.adb | with Datos;
use Datos;
function Posicion ( L : Lista; Num : Integer ) return Natural is
-- pre:
-- post: el resultado es la posicion de la primera aparicion de Num,
-- caso de que Num pertenezca a L, y cero en otro caso
LCopia : Lista;
Found : Boolean;
Pos, PosDev : Integer;
begin
LCopia := L... |
5,117 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/aggr1.ads | <reponame>best08618/asylo
-- { dg-do compile }
package aggr1 is
type Buffer_Array is array (1 .. 2 ** 23) of Integer;
type Message is record
Data : Buffer_Array := (others => 0);
end record;
end;
|
5,118 | ada | 0 | adammw/rtp_labs | week3/swap.adb | <filename>week3/swap.adb
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Swap is
A, B : Integer;
procedure Swap_It (A, B: in out Integer) is
Temp : Integer;
begin
Temp := B;
B := A;
A := Temp;
end Swap_It;
begin
Put("A=");
Get(A); Skip_Line;
Put("B=... |
5,119 | ada | 0 | MorganPeterson/aregex | src/compiler.ads | package Compiler is
UTFMAX : constant := 4;
RUNEMAX : 16#10FFF#;
Bit1 : constant := 7;
BitX : constant := 6;
Bit2 : constant := 5;
Bit3 : constant := 4;
Bit4 : constant := 3;
Bit5 : constant := 2;
Tx : constant := (left_shift (1, (BitX + 1)) - 1) xor 16#FF#;
T2 : constant := (left_shift ... |
5,120 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca2001h3.ada | -- CA2001H3M.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.
-- Unlim... |
5,121 | ada | 2 | egustafson/sandbox | Ada/finalize/obj.adb | with Ada.Text_IO; use Ada.Text_IO;
-- with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Finalization; use Ada.Finalization;
package body Obj is
Master_Serial : Integer := 1;
function New_Obj( I : in Integer ) return Obj_T is
Obj : Obj_T;
begin
Obj.X := I;
return... |
5,122 | ada | 2 | thindil/tashy2 | src/tk/tk-image-bitmap.ads | -- 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... |
5,123 | ada | 3 | charlie5/aIDE | attic/asis/find_all/adam-assist-query-find_all-element_processing.adb | with
Asis.Iterator,
AdaM.Assist.Query.find_All.Actuals_for_traversing;
package body AdaM.Assist.Query.find_All.element_Processing
is
procedure Recursive_Construct_Processing is new
Asis.Iterator.Traverse_Element
(State_Information => AdaM.Assist.Query.find_All.Actuals_for_traversing.Traver... |
5,124 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/taskarray.adb | <gh_stars>100-1000
procedure TaskArray is
G : Integer := 0;
TASK T IS
ENTRY E;
END T;
TASK BODY T IS
TYPE RT IS
RECORD
M : BOOLEAN := BOOLEAN'VAL(G);
N : CHARACTER := CHARACTER'V... |
5,125 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32_common/ltdc/framebuffer_ltdc.ads | with HAL; use HAL;
with HAL.Framebuffer; use HAL.Framebuffer;
with HAL.Bitmap;
private with STM32.DMA2D_Bitmap;
private with STM32.LTDC;
package Framebuffer_LTDC is
type Frame_Buffer is abstract limited
new HAL.Framebuffer.Frame_Buffer_Display with private;
procedure Initialize
(Display ... |
5,126 | ada | 1 | jquorning/WeDo | source/parser.adb | <reponame>jquorning/WeDo
--
-- 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.Strings.... |
5,127 | ada | 0 | Letractively/ada-ado | regtests/ado-sequences-tests.adb | <reponame>Letractively/ada-ado
-----------------------------------------------------------------------
-- ado-sequences-tests -- Test sequences factories
-- Copyright (C) 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
5,128 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_riff_riff_ids_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_riff_riff_ids_h is
-- unsupported macro: GS... |
5,129 | ada | 33 | ytomino/drake | source/environment/machine-apple-darwin/s-progra.ads | <reponame>ytomino/drake
pragma License (Unrestricted);
-- extended unit specialized for Darwin
private with System.Storage_Map;
package System.Program is
-- Probing information of the program itself.
pragma Preelaborate;
-- the executable file
function Full_Name return String;
function Load_Address... |
5,130 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/glx/private/thin/glx-context.ads | <reponame>charlie5/lace
with
glx.Pointers;
package glx.Context
is
subtype Item is Pointers.ContextRec_Pointer;
type Pointer is access all Item;
type Pointer_Pointer is access all Pointer;
type Items is array (C.size_t range <>) of aliased Item;
type Pointers is array (C.size_t range <>... |
5,131 | ada | 3 | TheSledgeHammer/2.11BSD | contrib/gnu/gdb/dist/zlib/contrib/ada/zlib-streams.ads | ----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 <NAME> --
-- --
-- Op... |
5,132 | ada | 0 | reznikmm/slimp | source/slim-messages-grfe.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Message_Visiters;
package body Slim.Messages.grfe is
List : constant Field_Description_Array :=
((Uint_16_Field, 1), -- Offset
... |
5,133 | ada | 0 | charlesincharge/Intro_to_Ada | lunch.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Lunch is
-- Enumeration type
type Lunch_Spot_t is (WS, Nine, Home);
type Day_t is (Sun, Mon, Tue, Wed, Thu, Fri, Sat);
-- Subtype Weekday_t is a constrained Day_t
subtype Weekday_t is Day_t range Mon .. Fri;
-- Declaring a fixed-size array
Where... |
5,134 | ada | 0 | KLOC-Karsten/adaoled | src/spi.ads | <reponame>KLOC-Karsten/adaoled
with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
package SPI is
MODE0: constant Integer := 0;
BIT_ORDER_MSBFIRST: constant Integer := 1;
CLOCK_DIVIDER_128: constant Integer := 128;
CS0: constant Integer := 0;
LOW: constant Integer := 0;
procedure Start... |
5,135 | ada | 6 | serpent7776/fizzbuzz | ada/fizzbuzz_newline.adb | -- Copyright (c) 2016, <NAME> <user="anglus"; domain="gmail.com">
--
-- 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 "... |
5,136 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-tpopsp__vxworks-tls.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
5,137 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal.adb | <reponame>caqg/linux-home<filename>.emacs.d/elpa/wisi-3.1.3/sal.adb
-- Abstract:
--
-- See spec.
--
-- Copyright (C) 1997 - 2004, 2006, 2009, 2019, 2020 Free Software Foundation, Inc.
--
-- SAL is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published ... |
5,138 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l4x5/stm32_svd-tim.ads | -- This spec has been automatically generated from STM32L4x5.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.TIM is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_CMS_Field is HAL.U... |
5,139 | ada | 3 | charlie5/aIDE | applet/aide/source/editors/aide-editor-of_context.adb | with
Glib,
glib.Error,
gtk.Builder,
gtk.Handlers,
AdaM.context_Line,
aIDE.Editor.of_context_line;
package body aIDE.Editor.of_context
is
use gtk.Builder,
Glib,
Glib.Error;
function on_context_Label_clicked (the_Label : access Gtk_Label_Record'Class;
... |
5,140 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_video_gstbasevideodecoder_h.ads | <gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_video_gstbasevideocodec_h;
with glib;
with glib.Values;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstadapte... |
5,141 | ada | 0 | persan/a-libpcap | src/gen/pcap-low_level-pcap_bpf_h.ads | -- begin read only
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings (Off); -- Since this is automaticly generated
with Interfaces.C; use Interfaces.C;
package PCAP.Low_Level.pcap_bpf_h is
BPF_RELEASE : constant := 199606; -- /usr/include/pcap/bpf.h:79
-- unsupported macro: BPF_ALIGNMENT sizeof(... |
5,142 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_parallel_keccakf.ads | <reponame>damaki/libkeccak<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 following conditi... |
5,143 | ada | 4 | faelys/gela-asis | source/asis/asis-statements.ads | <reponame>faelys/gela-asis<filename>source/asis/asis-statements.ads
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 18 package Asis.Statements
-------------------------------------------------------------... |
5,144 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-suteio.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,145 | ada | 0 | Letractively/ada-gen | src/gen-model.ads | -----------------------------------------------------------------------
-- gen-model -- Model for Code Generator
-- 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 complianc... |
5,146 | ada | 1 | mullikine/RosettaCodeData | Task/Evaluate-binomial-coefficients/Ada/evaluate-binomial-coefficients.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Binomial is
function Binomial (N, K : Natural) return Natural is
Result : Natural := 1;
M : Natural;
begin
if N < K then
raise Constraint_Error;
end if;
if K > N/2 then -- Use symmetry
M := N - K;
else
... |
5,147 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_framebuff/sdl_framebuffer.adb | <gh_stars>0
-- ----------------------------------------------------------------- --
-- AdaSDL_Framebuffer --
-- Copyright (C) 2001 A.M.F.Vargas --
-- <NAME> --
-- Ponta Delgada -... |
5,148 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cimutr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
5,149 | ada | 36 | rewriting/tom | examples/ada/car/launch.adb | with Car;
procedure launch is
begin Car.main; end launch;
|
5,150 | ada | 0 | reznikmm/webidl | source/parser/webidl-parsers.adb | <gh_stars>0
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with League.Strings;
with WebIDL.Arguments;
with WebIDL.Constructors;
with WebIDL.Definitions;
with WebIDL.Enumerations;
with WebIDL.Interface_Members;
with W... |
5,151 | ada | 0 | faelys/natools | src/natools-smaz_generic.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
5,152 | ada | 4 | ytomino/gmp-ada | source/mpfr-root_fr.ads | <filename>source/mpfr-root_fr.ads
private with Ada.Finalization;
package MPFR.Root_FR is
pragma Preelaborate;
type MP_Float (Precision : MPFR.Precision) is private;
function To_MP_Float (
X : Long_Long_Float;
Precision : MPFR.Precision;
Rounding : MPFR.Rounding)
return MP_Float;
function To_Long_Long_... |
5,153 | ada | 0 | AfroMetal/concurrent-railroad-ada | main.adb | --
-- <NAME> 221454
--
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Ada.Command_line; use Ada.Command_Line;
with Ada.Calendar;
with Ada.Exceptions; use Ada.Exceptions;
with GNAT.String_Split; use GNAT.String_Split;
with Ada.Strings.Unbounded;
with Trains... |
5,154 | ada | 2 | cbuschka/distrolessc | ada/hello.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("Hello world.");
end Hello;
|
5,155 | ada | 1 | selroc/Renaissance-Ada | src/tools/Dependency_Graph_Extractor/src/extraction-derived_type_defs.adb | <reponame>selroc/Renaissance-Ada
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Derived_Type_Defs is
use type LALCO.Ada_Node_Kind_Type;
function Has_Interfaces(Node : LAL.Ada_Node'Class) return Boolean is
(Node.Kind in LALCO.Ada_Derived_Type_Def | LALCO.Ada_Task_Def | ... |
5,156 | ada | 0 | optikos/oasis | source/nodes/program-nodes-function_access_types.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Function_Access_Types is
function Create
(Not_Token : Program.Lexical_Elements.Lexical_Element_Access;
... |
5,157 | ada | 17 | jquorning/swagger-ada | src/server/swagger-servers-applications.ads | <gh_stars>10-100
-----------------------------------------------------------------------
-- swagger-server-applications -- REST application
-- Copyright (C) 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in ... |
5,158 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-shshco.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
5,159 | ada | 2 | corentingay/ada_epita | project/adl/arch/ARM/STM32/driver_demos/demo_L3GD20_polling/src/demo_l3gd20.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
5,160 | ada | 4 | docandrew/YOTROC | src/tests.adb | package body tests is
testVal : Unsigned_64 := 0;
procedure runTests is
use ASCII;
parseResult : Boolean;
codeGenResult : Boolean;
errmsg : Unbounded_String;
insts : InstructionVector.Vector;
-- a bit hacky... short-hand for To_Unbounded_String
function... |
5,161 | ada | 9 | AntonMeep/parse_args | src/parse_args-concrete.ads | -- parse_args-concrete.ads
-- A simple command line option parser
-- Copyright (c) 2014 - 2015, <NAME>
--
-- 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 co... |
5,162 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/120_limited_types/employee_data.ads | <filename>courses/fundamentals_of_ada/labs/prompts/120_limited_types/employee_data.ads
package Employee_Data is
type Employee_T is limited private;
type Hourly_Rate_T is new Integer; -- better implementation
type Id_T is new Integer; -- better implementation
function Create
(Name : String;
... |
5,163 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-instances.adb | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
5,164 | ada | 1 | aheijde/httpd | src/httpd-callbacks.adb | <filename>src/httpd-callbacks.adb
with Ada.Text_IO;
with AWS.Messages;
with AWS.MIME;
with GNAT.OS_Lib;
package body HTTPd.Callbacks is
-------------
-- Default --
-------------
function Default (Request : in AWS.Status.Data) return AWS.Response.Data is
URI : constant String := AW... |
5,165 | ada | 1 | mullikine/RosettaCodeData | Task/Literals-Integer/Ada/literals-integer.ada | with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Test_Literals is
begin
Put (16#2D7#);
Put (10#727#);
Put (8#1_327#);
Put (2#10_1101_0111#);
end Test_Literals;
|
5,166 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-request-convert.ads | <reponame>DrenfongWong/tkm-rpc
with Ada.Streams;
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Convert is
subtype Stream_Range is Ada.Streams.Stream_Element_Offset range
1 .. Request_Size;
subtype Stream_Type is Ada.Streams.Stream_Element_Array (Stream_Range);
function To_Stream is new Ada.Unc... |
5,167 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-direio.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
5,168 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/gnatls.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
5,169 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | apps/bootloader/board.adb | <filename>apps/bootloader/board.adb
with System.Storage_Elements; use System.Storage_Elements;
with MSP430_SVD; use MSP430_SVD;
with MSP430_SVD.SYSTEM_CLOCK; use MSP430_SVD.SYSTEM_CLOCK;
with MSPGD.GPIO; use MSPGD.GPIO;
with MSPGD.GPIO.Pin;
with Startup;
package body Board is
CALDCO_1MHz : DCOCTL_Register with Imp... |
5,170 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-tables-standard_profile_l3_string_data_00.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
5,171 | ada | 8 | pvrego/adaino | project/src/avr-twi.ads | <filename>project/src/avr-twi.ads
with System;
-- =============================================================================
-- Package AVR.TWI
--
-- Implements TWI communication for the MCU micro-controller.
-- =============================================================================
package AVR.TWI is
typ... |
5,172 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/comms/uxas-comms-data-addressed.adb | with GNAT.String_Split;
with Ada.Strings.Fixed;
package body UxAS.Comms.Data.Addressed is
----------------------
-- Is_Valid_Address --
----------------------
function Is_Valid_Address (Address : String) return Boolean is
Delimiter_Pos : Natural;
use Ada.Strings.Fixed;
begin
if Addre... |
5,173 | ada | 33 | ytomino/drake | source/strings/a-szecin.ads | pragma License (Unrestricted);
-- Ada 2012
with Ada.Characters.Conversions;
with Ada.Strings.Generic_Equal_Case_Insensitive;
function Ada.Strings.Wide_Wide_Equal_Case_Insensitive is
new Generic_Equal_Case_Insensitive (
Wide_Wide_Character,
Wide_Wide_String,
Characters.Conversions.Get);
-- pragma ... |
5,174 | ada | 12 | TUM-EI-RCS/StratoX | bug-reports/prefix-inline/src/some_package.ads | with Interfaces; use Interfaces;
package Some_Package with SPARK_Mode is
procedure bar;
end Some_Package;
|
5,175 | ada | 0 | yannickmoy/SPARKNaCl | src/sparknacl.ads | <reponame>yannickmoy/SPARKNaCl
------------------------------------------------------------------------------
-- Copyright (c) 2020,2021 Protean Code Limited
-- All rights reserved.
--
-- "Simplified" (2-Clause) BSD Licence
--
-- Redistribution and use in source and binary forms, with or without
-- modification, a... |
5,176 | ada | 0 | hannesb0/rtpl18 | src/lab-code/cpu-affinity/src/dispatch.ads | with System.Multiprocessors.Dispatching_Domains;
use System.Multiprocessors.Dispatching_Domains;
package Dispatch is
My_Domain : Dispatching_Domain :=
Create(2,2);
task My_Task
with Dispatching_Domain => My_Domain;
end Dispatch;
|
5,177 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ststbo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
5,178 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements-clause-rep.ads | <filename>.build/ada/asis-gela-elements-clause-rep.ads
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the ... |
5,179 | ada | 4 | ytomino/gmp-ada | examples/pi.adb | -- original: http://homepage2.nifty.com/m_kamada/math/gmp_ja.htm
with Ada.Command_Line;
with Ada.Real_Time;
with Ada.Text_IO;
with C.gmp;
procedure pi is
use type Ada.Real_Time.Time;
use C;
use C.gmp;
-- Function: void mpf_pi (mpf_t rop)
-- Set the value of pi.
--
-- Reference:
-- http://www.kuri... |
5,180 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbpara__leon.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,181 | ada | 4 | jerry-sky/academic-notebook | electives/pw/lab/lista-2/ada/plunderer.adb |
package body Plunderer is
task body PlundererTask is
targetIndex: Natural;
target: pNodeObj;
n: Natural := nodes'Length;
exitTask: Boolean := False;
begin
loop
select
accept Stop do
exitTask := True;
end S... |
5,182 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-taprob.adb | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
5,183 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-valflt.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
5,184 | ada | 4 | faelys/gela-asis | tools/uaflex/uaflex.adb | ------------------------------------------------------------------------------
-- <NAME> A <NAME> S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
--... |
5,185 | ada | 0 | VMika/Des_Ada | Des_Ada/src/concrete_handler/p_stephandler-reverseiphandler.ads | package p_StepHandler.ReverseIPHandler is
type ReverseIPHandler is new T_StepHandler with private;
type Ptr_ReverseIPHandler is access all ReverseIPHandler;
function Make (Handler : in out ReverseIPHandler) return ReverseIPHandler;
procedure Handle (Self : in out ReverseIPHandler);
funct... |
5,186 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-objects-queries.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
package body GL.Objects.Queries is
procedure Begin_Query (Target : GL.Low_Level.Enums.Query_Param;
Object : Query_Object) is
begin
API.Begin_Query (Target... |
5,187 | ada | 80 | thindil/steamsky | tests/shipmodules-test_data-tests.adb | <reponame>thindil/steamsky
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to... |
5,188 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversF1/stm32-i2s.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
5,189 | ada | 0 | SKNZ/BoiteMaker | src/utilities/imagemagick.ads | <gh_stars>0
with ada.strings.unbounded;
use ada.strings.unbounded;
package imagemagick is
imagemagick_failure : exception;
-- transforme l'image passée en chaine base64 et obtient ses dimensions
procedure get_base64(file : string; base64 : out unbounded_string; width, height : out integer);
private
... |
5,190 | ada | 9 | Kidev/AdaPhysics2D | collisions.ads | <filename>collisions.ads
with Entities; use Entities;
with Vectors2D; use Vectors2D;
with Ada.Containers.Doubly_Linked_Lists;
with Circles;
with Rectangles;
package Collisions is
-- Collision type, holding meaningful information
-- about a collision
type Collision is record
A : EntityClassAcc;
B ... |
5,191 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-derived_types.ads | <reponame>reznikmm/gela<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Subtype_Indications;
with Program.Elements.Derived_Types;
with Program.Element_Visi... |
5,192 | ada | 3 | stcarrez/ada-css | tools/css-commands.adb | <filename>tools/css-commands.adb
-----------------------------------------------------------------------
-- css-commands -- Commands for CSS tools
-- Copyright (C) 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in... |
5,193 | ada | 13 | Fabien-Chouteau/GESTE | examples/platformer/src/levels.ads | <filename>examples/platformer/src/levels.ads
package Levels is
type Level_Id is (Lvl_1, Lvl_2, Lvl_3);
procedure Enter (Id : Level_Id);
procedure Leave (Id : Level_Id);
end Levels;
|
5,194 | ada | 33 | ytomino/drake | source/containers/a-coacho.adb | <filename>source/containers/a-coacho.adb
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Access_Holders is
use type Weak_Access_Holders.Data_Access;
subtype Nonnull_Data_Access is not null Data_Access;
function Upcast is
new Unchecked_Conversion (
No... |
5,195 | ada | 0 | T-Bone-Willson/SubmarinesFormalApproaches | src/submarinesubsystem.adb | with SubmarineSubSystem; use SubmarineSubSystem;
with Ada.Text_IO; use Ada.Text_IO;
package body SubmarineSubSystem with SPARK_Mode is
-----------------------------------------------------------------------------------------------
-----------------------------------DOOR FUNCTIONALITY--------------------------------... |
5,196 | ada | 0 | reznikmm/gela | source/oasis/program-elements-discrete_subtype_indications.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Discrete_Ranges;
with Program.Elements.Expressions;
with Program.Elements.Constraints;
package Program.Elements.Discrete_Subtype_Indications is
... |
5,197 | ada | 0 | optikos/oasis | source/oasis/program-elements-accept_statements.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Statements;
with Program.Lexical_Elements;
with Program.Elements.Identifiers;
with Program.Elements.Expressions;
with Program.Ele... |
5,198 | ada | 0 | AfroMetal/concurrent-railroad-ada | trains.adb | --
-- <NAME> 221454
--
package body Trains is
--type Route_Array is array (Integer range <>) of Integer;
--type Route_Ptr is access Route_Array;
procedure Connection(Self: Train_Ptr; From, To : out Track_Ptr) is
From_Index : constant Integer := Self.Index;
To_Index : constant Integer := (... |
5,199 | ada | 5 | onox/dcf-ada | dcf/src/dcf-unzip-decompress.adb | <reponame>onox/dcf-ada
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2007 - 2018 <NAME>
-- SWITZERLAND
--
-- 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, i... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.