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 |
|---|---|---|---|---|---|
600 | ada | 0 | vasilev-dev/AdaCompiler | AdaCompiler/in/test4.adb | procedure Hello is
procedure example is
begin
meow := meow + meow;
end example;
procedure bark ( top, tip : INTEGER ; abc :STRING) is
a,b,c : ARRAY (1..5) of INTEGER;
begin
a(1):= 5;
end bark;
function foo return INTEGER is
begin
return 1;
end example;
function hi (hello:STRING) return FLOAT i... |
601 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_13.ads | package Problem_13 is
procedure Solve;
end Problem_13;
|
602 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-option.adb | <gh_stars>0
package body Memory.Option is
function Create_Option return Option_Pointer is
result : constant Option_Pointer := new Option_Type;
begin
return result;
end Create_Option;
function Clone(mem : Option_Type) return Memory_Pointer is
result : constant Option_Pointer := new Optio... |
603 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-5.3.1/gps_source/ada_analyzer.adb | ------------------------------------------------------------------------------
-- G P S --
-- --
-- Copyright (C) 2001-2017, AdaCore --
-- ... |
604 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/comms/uxas-comms-transport-zeromq_socket_configurations.adb | <reponame>VVCAS-Sean/OpenUxAS
package body UxAS.Comms.Transport.ZeroMQ_Socket_Configurations is
----------
-- Make --
----------
function Make
(Network_Name : String;
Socket_Address : String;
Is_Receive : Boolean;
Zmq_Socket_Type : ZMQ.Socket... |
605 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Equilibrium-index/Ada/equilibrium-index-2.ada | <reponame>LaudateCorpus1/RosettaCodeData
package body Equilibrium is
function Get_Indices (From : Array_Type) return Index_Vectors.Vector is
Result : Index_Vectors.Vector;
Right_Sum, Left_Sum : Element_Type := Zero;
begin
for Index in Index_Type'Range loop
Right_Sum := Right_Sum + Elem... |
606 | ada | 7 | TUDSSL/TICS | msp430-gcc-tics/msp430-gcc-7.3.1.24-source-full/gcc/gcc/testsuite/gnat.dg/specs/private2_pkg.ads | <gh_stars>1-10
package Private2_Pkg is
type Rec2 (D : Natural) is private;
private
type Rec1 (D : Natural) is null record;
type Rec2 (D : Natural) is new Rec1 (D);
end Private2_Pkg;
|
607 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sinput-l.adb | <reponame>best08618/asylo
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
608 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/dynamics/impact-d3-action.ads | <reponame>charlie5/lace
with
impact.d3.Space;
package impact.d3.Action is
type Item is abstract tagged limited
record
null;
end record;
procedure updateAction (Self : in Item;
collisionWorld : access impact.d3.Space.item'Class;
... |
609 | ada | 3 | charlie5/aIDE | source/adam-a_pragma.ads | with
AdaM.Entity,
Ada.Containers.Vectors,
Ada.Streams;
package AdaM.a_Pragma
is
type Item is new Entity.item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Sel... |
610 | ada | 192 | rocher/Ada_Drivers_Library | examples/MicroBit/follower/src/hmi.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
611 | ada | 32 | robdaemon/AdaYaml | src/annotation_processor/implementation/yaml-transformator-annotation-vars.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Yaml.Events.Context;
package body Yaml.Transformator.Annotation.Vars is
procedure Put (Object : in out Instance; E : Event) is
begin
Object.State.all (Object, E);
end Put;
function ... |
612 | ada | 2 | stcarrez/jason | regtests/jason-testsuite.adb | <reponame>stcarrez/jason
-----------------------------------------------------------------------
-- jason-testsuite -- Testsuite for jason
-- Copyright (C) 2016 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file... |
613 | ada | 0 | JeremyGrosser/arm_cmsis_dsp | src/bayes_functions_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with sys_ustdint_h;
with arm_math_types_h;
package bayes_functions_h is
type arm_gaussian_naive_bayes_instance_f32 is record
vectorDimension : aliased sys_ustdint_h.uint32_t; -- ../CMSIS_5/CMSIS/DSP/Incl... |
614 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/physics-joint-hinge.ads | package physics.Joint.hinge
--
-- An interface to a hinge joint.
--
is
type Item is limited interface
and Joint.item;
type View is access all Item'Class;
procedure Limits_are (Self : in out Item; Low, High : in Real;
Softness :... |
615 | ada | 0 | klampworks/hanael | hanael.adb | <reponame>klampworks/hanael<filename>hanael.adb
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
with Randomise; use Randomise;
procedure Main is
C : Character;
S : R_String.Bounded_String;
Are_Inside_Tag : Boolean := False;
begin
while not End_Of_File loop
Get_Immed... |
616 | ada | 0 | btmalone/alog | alog/src/alog.ads | ------------------------------------------------------------------------
--
-- Copyright (c) 2018, <NAME> All Rights Reserved.
--
-- 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
--
-- ... |
617 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Count-the-coins/Ada/count-the-coins.ada | with Ada.Text_IO;
procedure Count_The_Coins is
type Counter_Type is range 0 .. 2**63-1; -- works with gnat
type Coin_List is array(Positive range <>) of Positive;
function Count(Goal: Natural; Coins: Coin_List) return Counter_Type is
Cnt: array(0 .. Goal) of Counter_Type := (0 => 1, others => 0);
... |
618 | ada | 0 | Fabien-Chouteau/libriscv | examples/simulator/src/gdb_remote.adb | <gh_stars>0
package body GDB_Remote is
--------------
-- From_Hex --
--------------
function From_Hex (Str : String) return Unsigned_64
is
Res : Unsigned_64 := 0;
begin
for C of Str loop
Res := Shift_Left (Res, 4);
Res := Res + Unsigned_64 (From_Hex (C));
end loop... |
619 | ada | 4 | faelys/gela-asis | source/asis/spec/ada-tags.ads | ------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
620 | ada | 0 | YoannDupont/advent_of_code_2018 | aoc2018/src/day02.adb | <reponame>YoannDupont/advent_of_code_2018<gh_stars>0
--------------------------------------------------------------------------------
-- An Ada implementation of the Advent Of Code 2018 --
-- --
-- D... |
621 | ada | 5 | jhumphry/SPARK_SipHash | src/siphash-entropy.ads | <reponame>jhumphry/SPARK_SipHash<filename>src/siphash-entropy.ads
-- SipHash.Entropy
-- A child package that attempts to set the key from an entropy source on the
-- system. There are various different implementations of this that are selected
-- at compile-time.
-- Copyright (c) 2015, <NAME> - see LICENSE file for de... |
622 | ada | 2 | rocher/TTS-Runtime-Ravenscar | examples/tts_example_b.ads | <reponame>rocher/TTS-Runtime-Ravenscar<gh_stars>1-10
package TTS_Example_B is
procedure Main;
end TTS_Example_B;
|
623 | ada | 0 | e3l6/SSMDev | demo/adainclude/memory_set.ads | with System; use System;
with Interfaces.C; use Interfaces.C;
package Memory_Set is
pragma Preelaborate;
function Memset (M : Address; C : int; Size : size_t) return Address;
pragma Export (C, Memset, "memset");
-- This function stores C converted to a Character in each of the elements
-- of the arra... |
624 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-gui-element-canvas.adb | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O G A . ... |
625 | ada | 19 | jrcarter/Ada_GUI | object-handle.adb | <gh_stars>10-100
-- --
-- package Object.Handle Copyright (c) <NAME> --
-- Implementation Luebeck --
-- Winter, 2002 --
-- ... |
626 | ada | 80 | thindil/steamsky | tests/basestypes-test_data-tests.adb | -- 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 set up and tear down the t... |
627 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/parent_ltd_with-child_full_view.ads | package Parent_Ltd_With.Child_Full_View is
type Child_Symbol is new Parent_Ltd_With.Symbol with private;
type Child_Symbol_Access is access all Child_Symbol;
function New_Child_Symbol return Child_Symbol_Access;
private
type Child_Symbol is new Parent_Ltd_With.Symbol with null record;
end Pare... |
628 | ada | 0 | TNO/Rejuvenation-Ada | workshop/tests/src/tests_workshop.adb | <gh_stars>0
with AUnit; use AUnit;
with AUnit.Reporter.Text; use AUnit.Reporter.Text;
with AUnit.Run; use AUnit.Run;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Workshop_Suite; use Workshop_Suite;
procedure Tests_Workshop is
function Runner is new Test_Runner_With_Status (Suite);
... |
629 | ada | 0 | ytomino/xml-ada | examples/test_writer.adb | -- testWriter.c
--
-- section: xmlWriter
-- synopsis: use various APIs for the xmlWriter
-- purpose: tests a number of APIs for the xmlWriter, especially
-- the various methods to write to a filename, to a memory
-- buffer, to a new document, or to a subtree. It shows how to
-- do encoding st... |
630 | ada | 0 | thierr26/ada-apsepp | src/_test/scenarios/apsepp_scope_bound_locks_test_case.ads | <filename>src/_test/scenarios/apsepp_scope_bound_locks_test_case.ads
-- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Generic_Assert; use Apsepp.Test_Node_Class;
with Apsepp.Abstract_Test_Case; use Apsepp.Abstract_Test_Case;
package Apsep... |
631 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-consoles-gtkmat.ads | -----------------------------------------------------------------------
-- mat-consoles-text - Text console interface
-- Copyright (C) 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.... |
632 | ada | 26 | damaki/libkeccak | tests/kat/cshake_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 following conditions are met:
-- * Redistri... |
633 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-lexer.adb | <reponame>caqg/linux-home
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2017 - 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... |
634 | ada | 18 | kraileth/ravenadm | src/file_operations-heap.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with System.Pool_Local;
generic
File_Size : Natural; -- handle empty file
package File_Operations.Heap is
localPool : System.Pool_Local.Unbounded_Reclaim_Pool;
subtype HM_File_String is String (1 .. ... |
635 | ada | 7 | stcarrez/resource-embedder | src/are-installer.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- are-installer -- Resource selector, preparer and installer
-- Copyright (C) 2012, 2013, 2015, 2020, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
636 | ada | 8 | flyx/OpenCLAda | src/implementation/cl_gl/cl-memory-images-cl_gl.adb | --------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice... |
637 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf_svd-rng.ads | -- 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 above copyright notice, this
-- lis... |
638 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sprint.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
639 | ada | 3 | JCGobbi/Nucleo-STM32G474RE | ADL/hal/hal-gpio.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- --
-- ... |
640 | ada | 0 | Chester-Gillon/ibv_message_parsing | ibv_message_passing_ada_project/source/get_rdate/get_rdate.adb | <filename>ibv_message_passing_ada_project/source/get_rdate/get_rdate.adb
-- @file get_rdate.adb
-- @date 7 July 2019
-- @author <NAME>
-- @brief Example program using GNAT.sockets to get the date from a RFC 868 TCP protocol server
-- @details The output as seconds since the Linux epoch can be verified by running:
-- ... |
641 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Same-Fringe/Ada/same-fringe-3.ada | <reponame>LaudateCorpus1/RosettaCodeData
generic
with procedure Process_Data(Item: Data);
with function Stop return Boolean;
with procedure Finish;
package Bin_Trees.Traverse is
task Inorder_Task is
entry Run(Tree: Tree_Type);
-- this will call each Item in Tree and, at t... |
642 | ada | 2 | darkestkhan/xdg | src/xdg.adb | <filename>src/xdg.adb
------------------------------------------------------------------------------
-- EMAIL: <<EMAIL>> --
-- License: ISC License (see COPYING file) --
-- ... |
643 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/s8.adb | -- { dg-do run }
with Init8; use Init8;
with Text_IO; use Text_IO;
with Dump;
procedure S8 is
A1 : R1 := My_R1;
A2 : R2 := My_R2;
N1 : Nested1;
N2 : Nested2;
C1 : Integer;
C2 : Integer;
C3 : Integer;
begin
Put ("A1 :");
Dump (A1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-o... |
644 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/xmmintrin_h.ads | <reponame>AdaCore/training_material
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package xmmintrin_h is
-- Copyright (C) 2002-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under t... |
645 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/s-shasto.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
646 | ada | 0 | Letractively/ada-util | regtests/util-strings-tests.adb | <reponame>Letractively/ada-util<gh_stars>0
-----------------------------------------------------------------------
-- strings.tests -- Unit tests for strings
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... |
647 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32112b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32112b.ada
-- C32112B.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... |
648 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/exp_aggr.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
649 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaGL/GL_x11/adagl.ads | <filename>thirdparty/adasdl/thin/adasdl/AdaGL/GL_x11/adagl.ads
-- ---------------------------------------------------------------- --
-- This file contains some improvements to the gl Ada binding --
-- in order to allow a better programming style. --
-- The prototypes below follow the Impl... |
650 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/a-sttebu.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
651 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/lto12.ads | -- { dg-do compile }
-- { dg-options "-flto" { target lto } }
with Lto12_Pkg; use Lto12_Pkg;
package Lto12 is
C : constant R := F;
end Lto12;
|
652 | ada | 0 | ytomino/xml-ada | source/xml-streams.ads | with Ada.Streams;
package XML.Streams is
pragma Preelaborate;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Encoding : Encoding_Type := No_Encoding;
URI : String := "")
return Reader;
function Create (
Stream : not null access Ada.Streams.Root_Stream_Type'Class;
Encod... |
653 | ada | 0 | micahwelf/ada_launch | xclock.adb | <reponame>micahwelf/ada_launch
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Command_Line; use Ada.Command_Line;
with Gnat.Command_Line; use Gnat.Command_Line;
with Ada.Environment_Variables;
with Ada.Directories; use Ada.Directories;
with GNAT.OS_Lib; use GNAT.OS_Lib;
with Ada.Containers; use Ada.Containers;
with Ada.Co... |
654 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ees/tkmrpc-dispatchers-ees.ads | with Tkmrpc.Request;
with Tkmrpc.Response;
package Tkmrpc.Dispatchers.Ees is
procedure Dispatch
(Req : Request.Data_Type;
Res : out Response.Data_Type);
-- Dispatch EES request to concrete operation handler.
end Tkmrpc.Dispatchers.Ees;
|
655 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/init_scalar1.adb | -- { dg-do run }
-- { dg-options "-gnatws -gnatVa" }
pragma Initialize_Scalars;
procedure init_scalar1 is
type Fixed_3T is delta 2.0 ** (- 4)
range - 2.0 ** 19 .. (2.0 ** 19 - 2.0 ** (- 4));
for Fixed_3T'Size use 3*8;
Write_Value : constant Fixed_3T := Fixed_3T(524287.875);
type singleton is array (1... |
656 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-lisisq.adb | <filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-lisisq.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
657 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/a-intnam__leon.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
658 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/x86_64/src/i-x86_64-exception_handler.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
659 | ada | 0 | Letractively/ada-asf | src/asf-lifecycles-response.adb | -----------------------------------------------------------------------
-- asf-lifecycles-response -- Response phase
-- Copyright (C) 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... |
660 | ada | 0 | optikos/oasis | source/oasis/program-elements-discriminant_specifications.ads | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Declarations;
with Program.Elements.Defining_Identifiers;
with Program.Lexi... |
661 | ada | 0 | hugovk/whitakers-words | src/words_engine/words_engine-roman_numerals_package.adb | -- 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 Copyrighted
-- (c). Permission i... |
662 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Rock-paper-scissors/Ada/rock-paper-scissors.ada | with Ada.Text_IO; with Ada.Numerics.Float_Random;
procedure Rock_Paper_Scissors is
package Rand renames Ada.Numerics.Float_Random;
Gen: Rand.Generator;
type Choice is (Rock, Paper, Scissors);
Cnt: array (Choice) of Natural := (1, 1, 1);
-- for the initialization: pretend that each of Rock, Paper,
... |
663 | ada | 19 | jrcarter/Ada_GUI | strings_edit-streams.ads | -- --
-- package Copyright (c) <NAME> --
-- Strings_Edit.Streams Luebeck --
-- Interface Spring, 2009 --
-- ... |
664 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32f46_79x/stm32_svd-fsmc.ads | -- This spec has been automatically generated from STM32F46_79x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.FSMC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype BCR1_MTYP_Field is... |
665 | ada | 0 | jwarwick/aoc_2019_ada | day03/src/main.adb | <reponame>jwarwick/aoc_2019_ada
-- AOC, Day 3
with Ada.Text_IO; use Ada.Text_IO;
with FMS;
procedure main is
begin
FMS.load_file("day3_input.txt");
put_line("Part 1: " & Positive'Image(FMS.closest_intersection));
put_line("Part 2: " & Positive'Image(FMS.shortest_intersection));
end main;
|
666 | ada | 0 | optikos/oasis | source/oasis/program-elements-real_range_specifications.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Real_Range_Specification... |
667 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cd5014x.ada | <gh_stars>1-10
-- CD5014X.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.... |
668 | ada | 7 | kimtg/euler-ada | euler10.adb | <filename>euler10.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Euler10 Is
function Sum_Prime_Under(N: Integer) return Long_Long_Integer is
Is_Prime : array (2 .. N - 1) of Boolean := (others => True);
Sum : Long_Long_Integer := 0;
begin
for I in Is_Prime'Range loop
if Is_Prime(I) t... |
669 | ada | 0 | AfroMetal/concurrent-railroad-ada | trains.ads | <reponame>AfroMetal/concurrent-railroad-ada<gh_stars>0
--
-- <NAME> 221454
--
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings; use Ada.Strings;
with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Calendar;
with Rails; use Rails;
package Trains is
package Calendar renames Ada.Calend... |
670 | ada | 1 | Feqzz/diffie-hellman-key-exchange | main.adb | <filename>main.adb
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Strings.Unbounded;
with Ada.Strings.Fixed;
with Ada.Command_Line;
procedure Main is
generator: Natural;
prime : Natural;
alicePrivateKey : Natural;
bobPrivateKey : Natural;
---------------------
-- DecimalToBinary --
-------... |
671 | ada | 0 | csb6/libtcod-ada | src/generated/sys_utypes_h.ads | <filename>src/generated/sys_utypes_h.ads
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with i386_utypes_h;
package sys_utypes_h is
-- * Copyright (c) 2003-2007 Apple Inc. All rights reserved.
-- *
-- * @APPLE_OSREFERENCE_LICENSE_HEADER_START@
-- *
-- * This file contains ... |
672 | ada | 33 | ytomino/drake | source/tasking/a-tasatt.ads | <filename>source/tasking/a-tasatt.ads
pragma License (Unrestricted);
with Ada.Task_Identification; -- use Ada.Task_Identification;
generic
type Attribute is private;
Initial_Value : Attribute;
package Ada.Task_Attributes is
type Attribute_Handle is access all Attribute;
function Value (
T : Task_Ide... |
673 | ada | 5 | amvb/GUCEF | dependencies/agar/ada-core/agar-core-config.ads | package Agar.Core.Config is
function Load return Boolean;
function Save return Boolean;
end Agar.Core.Config;
|
674 | ada | 24 | svn2github/matreshka | testsuite/league/TN-308/test_308.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
675 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/debug2.adb | -- { dg-do compile }
-- { dg-options "-g" }
with Debug2_Pkg; use Debug2_Pkg;
package body Debug2 is
procedure Proc is
function F return String_List_Ptr is
begin
return new String_List'(Singleton);
end;
A : String_List_Ptr := F;
begin
null;
end;
... |
676 | ada | 7 | stcarrez/resource-embedder | regtests/are-generator-c-tests.adb | -----------------------------------------------------------------------
-- are-generator-c-tests -- Tests for C generator
-- Copyright (C) 2021 <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 Lice... |
677 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/vectors_3d.adb | <reponame>ForYouEyesOnly/Space-Convoy
--
-- Jan & <NAME>, Australia, July 2011
--
package body Vectors_3D is
function "*" (V_Left, V_Right : Vector_3D) return Vector_3D is
(x => (V_Left (y) * V_Right (z) - V_Left (z) * V_Right (y)),
y => (V_Left (z) * V_Right (x) - V_Left (x) * V_Right (z)),
z => ... |
678 | ada | 0 | melwyncarlo/ProjectEuler | problems/043/a043.adb | with Ada.Long_Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A043 is
use Ada.Long_Integer_Text_IO;
Main_Num : String (1 .. 10) := "0123456789";
Temp_Char : String (1 .. 1);
Pandigital_Num_List : array (Integer range 1 .. 100) of Long_Integer :=
(others => 0);
Sum : Long_Integer := ... |
679 | ada | 33 | ytomino/drake | source/streams/machine-w64-mingw32/s-naiona.adb | <filename>source/streams/machine-w64-mingw32/s-naiona.adb
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Storage_Map;
with System.System_Allocators;
with System.Zero_Terminated_WStrings;
with C.string;... |
680 | ada | 0 | GLADORG/glad-cli | src/commands-init.adb | with Ada.Text_IO;
with Ada.Directories;
with Init_Project;
with Blueprint; use Blueprint;
package body Commands.Init is
package IO renames Ada.Text_IO;
package TT renames CLIC.TTY;
-------------
-- Execute --
-------------
overriding
procedure Execute ( Cmd : in out Command;
Arg... |
681 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/old/tlsf-block-operations_old.ads | <filename>tlsf/src/old/tlsf-block-operations_old.ads
with System;
with TLSF.Config; use TLSF.Config;
with TLSF.Block.Types; use TLSF.Block.Types;
with TLSF.Block.Proof;
package TLSF.Block.Operations_Old with SPARK_Mode is
package Proof renames TLSF.Block.Proof;
function Get_Block_At_Address(Base : System... |
682 | ada | 0 | wooky/aoc.kt | src/main/ada/2019/aoc-aoc_2019-day06.adb | <gh_stars>0
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Containers.Vectors;
with Ada.Strings.Hash;
with Ada.Text_IO;
with GNAT.String_Split;
package body AOC.AOC_2019.Day06 is
type Planet is new String (1..3);
function Orbit_Maps_Hash (Key : Planet) return Ada.Containers.Hash_... |
683 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn8.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/warn8.adb
-- { dg-do compile }
pragma Optimize (Space); -- { dg-warning "must specify -Os" }
procedure Warn8 is
begin
null;
end;
|
684 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-objrea.adb | <reponame>orb-zhuchen/Orb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
685 | ada | 1 | selroc/Renaissance-Ada | src/tools/Dependency_Graph_Extractor/src/extraction-bodies_for_entries.adb | <filename>src/tools/Dependency_Graph_Extractor/src/extraction-bodies_for_entries.adb
with Extraction.Node_Edge_Types;
with Extraction.Utilities;
package body Extraction.Bodies_For_Entries is
use type LALCO.Ada_Node_Kind_Type;
procedure Extract_Edges
(Node : LAL.Ada_Node'Class;
Graph : Graph_Operati... |
686 | ada | 0 | AntonMeep/hmac | tests/src/hmac_sha1_streams_tests.adb | pragma Ada_2012;
with AUnit.Assertions; use AUnit.Assertions;
with AUnit.Test_Caller;
with Ada.Streams; use Ada.Streams;
with HMAC; use HMAC.HMAC_SHA_1;
package body HMAC_SHA1_Streams_Tests is
package Caller is new AUnit.Test_Caller (Fixture);
Test_Suite : aliased AUnit.Test_Suites.Test_Suite;
func... |
687 | ada | 0 | fintatarta/eugen | src/Sym_Expr/symbolic_expressions.adb | ----------------------------------------------------------------------------
-- Symbolic Expressions (symexpr)
--
-- Copyright (C) 2012, <NAME>
--
-- This file is part of symexpr.
--
-- symexpr is free software: you can redistribute it and/or modify
-- it under the terms of the L... |
688 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-generate.adb | <gh_stars>0
-- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 - 2020 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 yo... |
689 | ada | 0 | optikos/oasis | source/oasis/program-lexical_elements.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Lexical_Elements is
-----------
-- First --
-----------
function First
(Self : Lexical_Element_Vector'Class)
... |
690 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/geometry/opengl-primitive-long_indexed.adb | <reponame>charlie5/lace
with
openGL.Errors,
openGL.Buffer,
openGL.Tasks,
GL.Binding,
ada.unchecked_Deallocation;
package body openGL.Primitive.long_indexed
is
---------
--- Forge
--
procedure define (Self : in out Item; Kind : in facet_Kind;
... |
691 | ada | 1 | bracke/websitegenerator | src/websitegenerator.adb | <filename>src/websitegenerator.adb
with Server;
with Templates_Parser;
with Ada.Text_IO; use Ada.Text_IO;
with Generator;
with Ada.Directories;
with Ada.Calendar;
with GNAT.Command_Line; use GNAT.Command_Line;
with Ada.Wide_Wide_Text_IO;
with Ada.Wide_Wide_Text_IO.Text_Streams;
with Ada.Command_Line;
with Ada.Exception... |
692 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Convert-decimal-number-to-rational/Ada/convert-decimal-number-to-rational-3.ada | with Ada.Text_IO; With Real_To_Rational;
procedure Convert_Decimal_To_Rational is
type My_Real is new Long_Float; -- change this for another "Real" type
package FIO is new Ada.Text_IO.Float_IO(My_Real);
procedure R2R is new Real_To_Rational(My_Real);
Nom, Denom: Integer;
R: My_Real;
begin
loop
... |
693 | ada | 20 | Roldak/OpenGLAda | deps/gid/gid-decoding_gif.ads | private package GID.Decoding_GIF is
--------------------
-- Image decoding --
--------------------
generic
type Primary_color_range is mod <>;
with procedure Set_X_Y (x, y: Natural);
with procedure Put_Pixel (
red, green, blue : Primary_color_range;
alpha : Primar... |
694 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_07.adb | <filename>Ada/src/Problem_07.adb
with Ada.Integer_Text_IO;
with Ada.Text_IO;
with PrimeInstances;
package body Problem_07 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
procedure Solve is
package Integer_Primes renames PrimeInstances.Integer_Primes;
Sieve : constant In... |
695 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/s-addima.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
696 | ada | 1 | bracke/Ext2Dir | source/RASCAL-FileExternal.ads | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
697 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/sam4s/svd/i-sam-pmc.ads | --
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAM4SD32C.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Power Management Controller
package Interfaces.SAM.PMC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Regist... |
698 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/usage.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
699 | ada | 0 | My-Colaborations/ada-ado | regtests/ado-parameters-tests.adb | <gh_stars>0
-----------------------------------------------------------------------
-- ado-parameters-tests -- Test query parameters and SQL expansion
-- Copyright (C) 2011, 2015, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.