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 |
|---|---|---|---|---|---|
6,700 | ada | 24 | svn2github/matreshka | source/xml/sax/matreshka-internals-xml-symbol_tables.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
6,701 | ada | 0 | reznikmm/gela | source/oasis/program-elements-parameter_specifications.ads | <filename>source/oasis/program-elements-parameter_specifications.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Declarations;
with Program.Elements.Defining_Ident... |
6,702 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/par-ch8.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,703 | ada | 60 | RREE/ada-util | src/base/beans/util-beans-objects-vectors.ads | <filename>src/base/beans/util-beans-objects-vectors.ads<gh_stars>10-100
-----------------------------------------------------------------------
-- util-beans-vectors -- Object vectors
-- Copyright (C) 2011, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
6,704 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-type-new-without-with.d/input.adb | <filename>third_party/universal-ctags/ctags/Units/parser-ada.r/ada-type-new-without-with.d/input.adb<gh_stars>1-10
-- Taken from https://en.wikibooks.org/wiki/Ada_Programming/Type_System
--
-- This code has a from of "type foo is new ..."
-- Though "new" is used in the form, "with" doesn't
-- follow "new" like "type fo... |
6,705 | ada | 0 | fintatarta/protypo | src/lib/Readable_Sequences/Backup-2022-04-13/readable_sequences.ads | package Readable_Sequences is
end Readable_Sequences;
|
6,706 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-comms-lmcp_net_client-service-automation_request_validation.ads | <filename>src/ada/src/uxas-comms-lmcp_net_client-service-automation_request_validation.ads<gh_stars>0
-- see OpenUxAS\src\Services\AutomationRequestValidatorService.h
with DOM.Core;
with AFRL.CMASI.LmcpTask;
with UxAS.Messages.LmcpTask.UniqueAutomationRequest;
with UxAS.Messages.LmcpTask.UniqueAutomationResponse;
wi... |
6,707 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-geometry.adb | <filename>Sources/Globe_3d/gl/gl-geometry.adb
-------------------------------------------------------------------------
-- GL.Geometry - GL geometry primitives
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, provided thi... |
6,708 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/support/opengl-frame_counter.adb | with
ada.Text_IO;
package body openGL.frame_Counter
is
procedure increment (Self : in out Item)
is
use ada.Text_IO;
use type ada.Calendar.Time;
begin
if ada.Calendar.Clock >= Self.next_FPS_Time
then
put_Line ("FPS:" & Integer'Image (Self.frame_Count));
Se... |
6,709 | ada | 13 | jrmarino/zstd-ada | Binding_Zstandard/zstandard-thin_binding.ads | <filename>Binding_Zstandard/zstandard-thin_binding.ads<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with System;
with Interfaces.C.Strings;
package Zstandard.Thin_Binding is
package IC renames Interfaces.C;
package ICS renames Interfa... |
6,710 | ada | 3 | mindviser/keepaSDK | ada/src/model/-models.adb | <reponame>mindviser/keepaSDK<filename>ada/src/model/-models.adb
-- Keepa API
-- The Keepa API offers numerous endpoints. Every request requires your API access key as a parameter. You can find and change your key in the keepa portal. All requests must be issued as a HTTPS GET and accept gzip encoding. If possible, u... |
6,711 | ada | 33 | ytomino/drake | source/image/required/s-wchwts.ads | <filename>source/image/required/s-wchwts.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.WCh_WtS is
pragma Pure;
-- (s-wchcon.ads)
type WC_Encoding_Method is range 1 .. 6;
-- required for T'Wide_Value by compiler (s-wchwts.ads)
function Wide_String_To_St... |
6,712 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-allocators.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Allocators is
function Create
(New_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Left_Brac... |
6,713 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/abstract1.ads | <reponame>best08618/asylo
with Ada.Streams; use Ada.Streams;
package abstract1 is
type T is abstract tagged limited null record;
function Input (Stream : not null access Root_Stream_Type'Class) return T
is abstract;
function New_T (Stream : not null access Root_Stream_Type'Class)
return T'Class;
... |
6,714 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/misc.adb | <reponame>alvaromb/Compilemon
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the a... |
6,715 | ada | 33 | ytomino/drake | source/strings/a-sgbgfu.adb | <filename>source/strings/a-sgbgfu.adb
package body Ada.Strings.Generic_Bounded.Generic_Functions is
package body Generic_Bounded_Length is
-- Copying
procedure Tail (
Source : Bounded.Bounded_String;
Count : Natural;
Pad : Character_Type := Fixed_Functions.Space;
Dr... |
6,716 | ada | 0 | balintsoos/LearnAda | gyak/gyak10/kocsma/taszkseged.adb | <gh_stars>0
package body Taszkseged is
task body Szemafor is
Bent: Natural := 0;
begin
loop
select
when Bent < Max => accept P; Bent := Bent + 1;
or
accept V; Bent := Bent - 1;
or
terminate;
end select;
end loop;
end Szemafor;
protected body Veletle... |
6,717 | ada | 15 | My-Colaborations/dynamo | src/gpr/gen-utils-gnat.adb | -----------------------------------------------------------------------
-- gen-utils-gnat -- GNAT utilities
-- Copyright (C) 2011, 2012, 2014, 2015, 2018 <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... |
6,718 | ada | 24 | svn2github/matreshka | source/opm/matreshka-internals-persistence_manager.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
6,719 | ada | 4 | Lucretia/raytracer_challenge | src/visuals/rtch-visuals.ads | <reponame>Lucretia/raytracer_challenge
package RTCH.Visuals with
Pure is
end RTCH.Visuals;
|
6,720 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/host_app/tm_receiver.ads | <reponame>AntonioRamosNieto/TFG-STM32F429<gh_stars>0
with System;
package TM_Receiver is
task TM_Receiver_Task
with Priority => System.Default_Priority;
end TM_Receiver;
|
6,721 | ada | 3 | charlie5/aIDE | source/types/adam-a_type-signed_integer_type.adb | <gh_stars>1-10
with
AdaM.Factory;
package body AdaM.a_Type.signed_integer_type
is
-- Storage Pool
--
record_Version : constant := 1;
max_Types : constant := 5_000;
package Pool is new AdaM.Factory.Pools (storage_Folder => ".adam-store",
pool_Name ... |
6,722 | ada | 17 | WinterAlexander/Ada-IntelliJ | src/main/resources/project-templates/aws_web_server_blocks/src/@_project_name_@.ads | <reponame>WinterAlexander/Ada-IntelliJ
package @_Project_Name_@ is
pragma Pure;
Host : constant String := "@_HOST_@";
Port : constant := @_PORT_@;
end @_Project_Name_@;
|
6,723 | ada | 33 | ytomino/drake | source/environment/machine-w64-mingw32/s-prdyli.adb | <gh_stars>10-100
with Ada.Exception_Identification.From_Here;
with Ada.Unchecked_Conversion;
with System.Zero_Terminated_WStrings;
with C.winbase;
with C.winnt;
package body System.Program.Dynamic_Linking is
use Ada.Exception_Identification.From_Here;
use type C.size_t;
use type C.windef.FARPROC;
use type C... |
6,724 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/inline8_pkg1.adb | with Inline8_Pkg2;
package body Inline8_Pkg1 is
procedure Test (I : Integer) is
function F is new Inline8_Pkg2.Calc (I);
pragma Inline (F);
begin
if I /= F (I) then
raise Program_Error;
end if;
end;
end Inline8_Pkg1;
|
6,725 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl.ads | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL/binding/sdl.ads
-- ----------------------------------------------------------------- --
-- AdaSDL --
-- Binding to Simple Direct Media Layer --
-- Copyright (C) 2001 A.M... |
6,726 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/volatile_aggregate.adb | <reponame>best08618/asylo
-- { dg-do compile }
with System;
procedure Volatile_Aggregate is
function GetArrayUpperBound return Integer is
begin
return 2;
end GetArrayUpperBound;
some_value : Integer := GetArrayUpperBound;
type Gp_Element_Type is record
Element : Integer;
end record;
type ... |
6,727 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c34007s.ada | -- C34007S.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... |
6,728 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-operator_symbols-set_defining_name.ads | <reponame>reznikmm/gela
-- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
procedure Program.Nodes.Operator_Symbols.Set_Defining_Name
(Self : not null Program.Elements.Operator_Symbols.Operator_Symbol_Access;
Va... |
6,729 | ada | 0 | ytomino/gnat4drake | g-decstr.ads | pragma License (Unrestricted);
with System.WCh_Con;
generic
Encoding_Method : System.WCh_Con.WC_Encoding_Method;
package GNAT.Decode_String is
pragma Pure;
procedure Decode_Wide_Character (
Input : String;
Ptr : in out Natural;
Result : out Wide_Character);
procedure Decode_Wide_Wide_Cha... |
6,730 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32108a.ada | -- C32108A.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... |
6,731 | ada | 24 | svn2github/matreshka | tools/aflex/src/misc.ads | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright notice and this... |
6,732 | ada | 1 | Hathoute/ENSEEIHT | PIM/Projet/src/pagerank.adb | <reponame>Hathoute/ENSEEIHT
with Module_IO;
with Google_Naive;
with Google_Creuse;
with Types; use Types;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Te... |
6,733 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-arabic.adb | <filename>src/lang/stemmer-arabic.adb
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Arabic is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*f... |
6,734 | ada | 12 | jquorning/ada-asf | src/asf-components-html-lists.adb | -----------------------------------------------------------------------
-- html.lists -- List of items
-- Copyright (C) 2009, 2010, 2013, 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 Licen... |
6,735 | ada | 13 | Fabien-Chouteau/GESTE | examples/utils/sdl/sdl_sdl_stdinc_h.ads | ------------------------------------------------------------------------------
-- Copyright (C) 1995-2014, Free Software Foundation, Inc. --
-- --
-- GNAT is free software; you can redistribute it and/or modify it under --
-- t... |
6,736 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-comms-lmcp_object_message_sender_pipes.ads | -- see OpenUxAS\src\Communications\LmcpObjectMessageSenderPipe.h
with AVTAS.LMCP.Object;
with UxAS.Comms.Data;
with UxAS.Comms.Data.Addressed.Attributed;
with UxAS.Comms.Transport.ZeroMQ_Sender.Addr_Attr_Msg_Senders;
with ZMQ.Sockets;
use UxAS.Comms.Data;
use UxAS.Comms.Transport.ZeroMQ_Sender.Addr_Attr_Msg_Senders;... |
6,737 | ada | 13 | annexi-strayline/AURA | checkout-parse_checkout_spec.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
6,738 | ada | 192 | rocher/Ada_Drivers_Library | components/src/screen/otm8009a/otm8009a.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- --
-- ... |
6,739 | ada | 1 | procrastiraptor/euler | ada/string_int.ads | <gh_stars>1-10
package String_Int is
type Digit is new Character range '0' .. '9';
subtype Index is Positive;
type Number is array (Index range <>) of Digit;
function From_String(S: String) return Number;
function To_String(N: Number) return String;
function "+"(A, B: Number) return Number;
end Str... |
6,740 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/answers/990_spark_example_project/string_fixed.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
6,741 | ada | 12 | jquorning/ada-asf | src/asf-servlets-faces-mappers.adb | <reponame>jquorning/ada-asf
-----------------------------------------------------------------------
-- asf-servlets-faces-mappers -- Read faces specific configuration files
-- Copyright (C) 2015, 2016, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "... |
6,742 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/benchmark_graph_2.adb | <reponame>skill-lang/skillAdaTestSuite
with Ada.Numerics.Discrete_Random;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Hashing;
with Graph_2.Api;
package body Benchmark_Graph_2 is
package Skill renames Graph_2.Api;
use Graph_2;
use Skill;
type State_Type is access Skill_State;
State : Stat... |
6,743 | ada | 0 | balintsoos/LearnAda | konz/konz2/Sor/sor.ads | <gh_stars>0
generic
type elem is (<>);
-- you can choose from these 3 options:
-- (<>) -> discret type, 'Image, 'Range, 'Succ, 'Pred
-- private -> no one above 4
-- limited private
with procedure kiirok(A : elem);
package sor is
type sora(max : positive := 10) is private;
procedure push(s : in out ... |
6,744 | ada | 0 | xeenta/learning-ada | src/002/thick_hello.adb | <reponame>xeenta/learning-ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Thick_Hello is
package Counter is
type C_Type is mod 17;
procedure Increment;
procedure Increment (I : Integer);
procedure Decrement;
function Value return C_Type;
private
Cnt : C_Type := 0;
end Cou... |
6,745 | ada | 24 | svn2github/matreshka | tools/configure/configure-instantiate.adb | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,746 | ada | 0 | sebsgit/textproc | src/opencl/opencl_api_spec.adb | with System; use System;
package body opencl_api_spec is
function Load_From(h: dl_loader.Handle) return Boolean is
begin
clGetPlatformIDs := dl_loader.Get_Symbol(h, "clGetPlatformIDs");
clGetPlatformInfo := dl_loader.Get_Symbol(h, "clGetPlatformInfo");
clGetDeviceIDs := dl_loader.Get_Symbol(h, ... |
6,747 | ada | 2 | drm343/Space-War-3000 | src/ship.adb | package body ship is
--------------------------------------
-- Build Ship
--------------------------------------
function is_Colony return Ship_Data is
result: Ship_Data := (Colony, 1, 2, 0, 0);
begin
return result;
end is_Colony;
--------------------------------------
function is_StarShip retu... |
6,748 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/varsize3_pkg2.ads | package Varsize3_Pkg2 is
function Last_Index return Positive;
end Varsize3_Pkg2;
|
6,749 | ada | 5 | Kidev/DemoAdaPhysics2D | src/utils.ads | <reponame>Kidev/DemoAdaPhysics2D
with HAL.Bitmap; use HAL.Bitmap;
package Utils is
BG : constant Bitmap_Color := (Alpha => 255, others => 0);
procedure Clear(Update : Boolean; Color : Bitmap_Color := BG);
function GetRandomFloat return Float;
end Utils;
|
6,750 | ada | 7 | stcarrez/resource-embedder | src/are-installer-merges.ads | -----------------------------------------------------------------------
-- are-installer-merges -- Web file merge
-- Copyright (C) 2020, 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 Licens... |
6,751 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-geometry-vbo.ads | pragma Style_Checks (Off);
-------------------------------------------------------------------------
-- GL.Geometry - GL geometry primitives
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, provided this copyright note... |
6,752 | ada | 33 | ytomino/drake | source/numerics/a-nuds19.ads | <reponame>ytomino/drake<filename>source/numerics/a-nuds19.ads
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from dSFMT (dSFMT-params19937.h)
with Ada.Numerics.dSFMT;
package Ada.Numerics.dSFMT_19937 is
new dSFMT (
MEXP => 19937,
POS1 => 117,
SL1 => 19,
MSK1 => 16#000ffaff... |
6,753 | ada | 0 | JeremyGrosser/adl-middleware | src/adl_config.ads |
-- This file is supposed to be generated from a configuration.
-- For Alire we use this file with default values.
package ADL_Config is
Max_Mount_Points : constant := 2;
Max_Mount_Name_Length : constant := 128;
Max_Path_Length : constant := 1024;
end ADL_Config;
|
6,754 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/asynch.ads | with Ada.Finalization;
package asynch is
type t_ctrl is new Ada.Finalization.Controlled with record
stuff : Natural := 0;
end record;
function null_ctrl return t_ctrl;
end asynch;
|
6,755 | ada | 4 | davidkristola/vole | kv-avm-affiliates.adb | <gh_stars>1-10
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Exceptions; use Ada.Exceptions;
with kv.avm.Log; use kv.avm.Log;
with kv.avm.Registers; use kv.avm.Registers;
with kv.avm.Tuples;
with kv.avm.Transactions;
package body kv.avm.Affiliates is
use Client_Lists;
use Interfaces;
AFFI... |
6,756 | ada | 1 | kylelk/ada-examples | ada-python-test/obj/b__ada_module.adb | pragma Ada_95;
pragma Source_File_Name (ada_modulemain, Spec_File_Name => "b__ada_module.ads");
pragma Source_File_Name (ada_modulemain, Body_File_Name => "b__ada_module.adb");
pragma Suppress (Overflow_Check);
with Ada.Exceptions;
package body ada_modulemain is
pragma Warnings (Off);
E73 : Short_Integer; pragm... |
6,757 | ada | 4 | davidkristola/vole | kv-avm-warrants.adb | <reponame>davidkristola/vole<gh_stars>1-10
with kv.avm.Instances;
package body kv.avm.Warrants is
-----------------------------------------------------------------------------
procedure Initialize (Self : in out Warrant_Type) is
begin
null;
end Initialize;
---------------------------------------... |
6,758 | ada | 0 | My-Colaborations/ada-util | regtests/util-streams-buffered-lzma-tests.adb | <reponame>My-Colaborations/ada-util<filename>regtests/util-streams-buffered-lzma-tests.adb
-----------------------------------------------------------------------
-- util-streams-buffered-lzma-tests -- Unit tests for encoding buffered streams
-- Copyright (C) 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- L... |
6,759 | ada | 15 | My-Colaborations/dynamo | src/asis/a4g-dda_aux.adb | <reponame>My-Colaborations/dynamo<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
6,760 | ada | 11 | charlie5/aShell | test/ashell/test_ashell.adb | with
Shell.Commands,
Ada.Text_IO;
procedure Test_aShell
is
procedure Log (Message : in String)
renames Ada.Text_IO.Put_Line;
procedure NL (Count : in Ada.Text_IO.Positive_Count := 1)
renames Ada.Text_IO.New_Line;
Error : exception;
begin
Log ("Begin aShell t... |
6,761 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements-assoc.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 following conditions are met:
--
-- * Redistributio... |
6,762 | ada | 0 | melwyncarlo/ProjectEuler | problems/009/a009.adb | <gh_stars>0
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A009 is
use Ada.Integer_Text_IO;
B : Float;
A, C, Product : Integer;
begin
A := 1;
loop
B := (5.0E+5 - (1.0E+3 * Float (A))) / (1.0E+3 - Float (A));
if (B - Float (Integer (B))) = 0.0 and B > Float (A... |
6,763 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/prep.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,764 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-taster.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
6,765 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/cmasi/afrl-cmasi-cameraconfiguration.ads | <gh_stars>0
with avtas.lmcp.types; use avtas.lmcp.types;
with afrl.cmasi.object; use afrl.cmasi.object;
with afrl.cmasi.enumerations; use afrl.cmasi.enumerations;
with afrl.cmasi.payloadConfiguration; use afrl.cmasi.payloadConfiguration;
with Ada.Containers.Vectors;
package afrl.cmasi.cameraConfiguration is
type C... |
6,766 | ada | 19 | jrcarter/Ada_GUI | ada_gui-gnoga-server-model.adb | -- Ada_GUI implementation based on Gnoga. Adapted 2021
-- --
-- GNOGA - The GNU Omnificent GUI for Ada --
-- --
-- G N O ... |
6,767 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/objects/globe_3d-tri_mesh-vertex_array.adb | <filename>Sources/Globe_3d/objects/globe_3d-tri_mesh-vertex_array.adb
pragma Warnings (Off);
pragma Style_Checks (Off);
with GLOBE_3D.Options,
GLOBE_3D.Textures,
GLOBE_3D.Math;
with GL.geometry.primitives; use GL.geometry.primitives;
with Ada.Exceptions; use Ada.Exceptions;
with ada.text_io; ... |
6,768 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/models/planet.ads | pragma Warnings (Off);
pragma Style_Checks (Off);
with GLOBE_3D;
package Planet is
procedure Create (
object : in out GLOBE_3D.p_Object_3D;
scale : GLOBE_3D.Real;
centre : GLOBE_3D.Point_3D;
mercator : GLOBE_3D.Image_id;
parts : Positive := 30
... |
6,769 | ada | 0 | corentingay/ada_epita | project/adl/arch/ARM/STM32/driver_demos/demo_timer_pwm/src/demo_timer_pwm.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- ... |
6,770 | ada | 1 | mullikine/RosettaCodeData | Task/Delete-a-file/Ada/delete-a-file-1.ada | <reponame>mullikine/RosettaCodeData
with Ada.Directories; use Ada.Directories;
|
6,771 | ada | 11 | Haransis/gpio-map | lib/ncurses-6.1/Ada95/samples/sample-manifest.ads | ------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
6,772 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/stm32f051_rfm69/stm32gd-board.adb | <gh_stars>1-10
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.NVIC;
with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with STM32GD.Startup;
with STM32GD.Vectors;
package body STM32GD.Board is
procedure Enable_Peripherals is
begin
STM32_SVD.RCC.RCC_Periph.AHBENR.IOPAEN := 1;
... |
6,773 | ada | 11 | reznikmm/ada_lsp | source/protocol/lsp.ads | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package LSP is
pragma Pure;
end LSP;
|
6,774 | ada | 0 | Letractively/ada-asf | src/asf-servlets-files.adb | -----------------------------------------------------------------------
-- asf.servlets.files -- Static file servlet
-- Copyright (C) 2010, 2011, 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 with t... |
6,775 | ada | 0 | Tim-Tom/project-euler | Ada/inc/BigInteger.ads | with Ada.Containers.Vectors;
package BigInteger is
type BigInt is private;
function Create(l : in Long_Long_Integer) return BigInt;
function Create(s : in String) return BigInt;
-- Two Big Ints
function "+" (Left, Right: in BigInt) return BigInt;
function "-" (Left, Right: in BigInt) return BigInt;
... |
6,776 | ada | 0 | xeenta/learning-ada | src/002/b.adb | with Person;
with Ada.Text_IO; use Ada.Text_IO;
package body B is
procedure Print_Modify is
package I is new Ada.Text_IO.Integer_IO (Integer);
begin
I.Put (Person.Unit_Age); New_Line;
Person.Unit_Age := 20;
end Print_Modify;
end B;
|
6,777 | ada | 0 | kkirstein/proglang-playground | Ada/Benchmark/src/fibonacci.ads | <filename>Ada/Benchmark/src/fibonacci.ads
with Ada.Numerics.Big_Numbers.Big_Integers;
use Ada.Numerics.Big_Numbers.Big_Integers;
package Fibonacci is
function Fib_Iter (N : Natural) return Big_Natural;
function Fib_Naive (N : Natural) return Natural;
function Fib_Recur (N : Natural) return Big_Natural;
f... |
6,778 | ada | 0 | reznikmm/lace | source/llvm/lace-llvm_contexts.ads | <reponame>reznikmm/lace
-- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Containers;
with LLVM.Types;
with Lace.Contexts;
with Lace.Generic_Engines;
package Lace.LLVM_Contexts is
-- pragma Preelaborate;
... |
6,779 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/080_expressions/main.adb | <filename>courses/fundamentals_of_ada/labs/prompts/080_expressions/main.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
subtype Year_T is Positive range 1_900 .. 2_099;
subtype Month_T is Positive range 1 .. 12;
subtype Day_T is Positive range 1 .. 31;
type Date_T is record
Year : Positive... |
6,780 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-exception_renaming_declarations.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Defining_Identifiers;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Program.Elements.Aspect_Specifications;
with Program.Ele... |
6,781 | ada | 1,823 | Elon143/Amass | resources/scripts/misc/shadowserver.ads | <reponame>Elon143/Amass
-- Copyright 2017-2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "ShadowServer"
type = "misc"
local shadowServerWhoisAddress = ""
-- shadowServerWhoisURL is the URL for the ShadowServer whois server.
lo... |
6,782 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP7_Modules_Genericite/piles.ads | <gh_stars>1-10
-- Spécification du module Piles.
generic
Capacite : Integer; -- Nombre maximal d'éléments qu'une pile peut contenir
type T_Element is private; -- Type des éléments de la pile
package Piles is
type T_Pile is limited private; --! "très privé" en Algorithmique !
--! Sur un type pr... |
6,783 | ada | 0 | Letractively/ada-asf | src/asf-views-nodes-jsf.adb | <reponame>Letractively/ada-asf<gh_stars>0
-----------------------------------------------------------------------
-- views.nodes.jsf -- JSF Core Tag Library
-- Copyright (C) 2010, 2011, 2012, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- y... |
6,784 | ada | 20 | charlie5/lace | 3-mid/opengl/private/gl/source/glu.adb | <filename>3-mid/opengl/private/gl/source/glu.adb
with
GL.Binding,
GL.lean,
Interfaces.c.Pointers,
ada.unchecked_Conversion,
ada.unchecked_Deallocation;
package body GLU
--
-- This is a direct port of parts of Mesa GLU 'mipmap.c' file.
--
-- Only declarations involved in 'gluScaleImage' are curre... |
6,785 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-umldi_uml_composite_structure_diagrams.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
6,786 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l151/stm32_svd-scb.ads | <filename>arch/ARM/STM32/svd/stm32l151/stm32_svd-scb.ads
-- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SCB is
pragma Preelaborate;
---------------
-- Registers... |
6,787 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Swarm/swarm_configurations.ads | with Ada.Real_Time; use Ada.Real_Time;
with Real_Type; use Real_Type;
with Swarm_Structures_Base; use Swarm_Structures_Base;
package Swarm_Configurations is
type Configurations is (Single_Globe_In_Orbit, Dual_Globes_In_Orbit, Dual_Globes_In_Orbit_Fast, Globe_Grid_In_Centre, Globe_Grid_Drifting... |
6,788 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/common/hil/hil-spi.ads | -- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: <NAME> (<EMAIL>)
with HIL.Devices;
-- @summary
-- Target-independent specification for HIL of SPI
package HIL.SPI with
Spark_Mode => On
-- Abstract_State => Deselect
is... |
6,789 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/proof/test/util/tlsf-proof-test-util.ads | package TLSF.Proof.Test.Util with SPARK_Mode is
procedure Test_Util;
end TLSF.Proof.Test.Util;
|
6,790 | ada | 51 | REWERK/lolicon | src/lolicon.adb | <reponame>REWERK/lolicon
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with GNAT.OS_Lib; use GNAT.OS_Lib;
procedure Lolicon is
Age : Integer;
procedure Intice is
begin
-- Nothing because weebs are already attracted to underage anime girls.
null;
... |
6,791 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-graphs.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
6,792 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_decimal_fixed_point_definitions.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Formal_Decimal_Fixed_Point_Definitions is
function Create
(Delta_Token : not null Program.Lexical_Elements.Lexical_... |
6,793 | ada | 1 | mullikine/RosettaCodeData | Task/File-size/Ada/file-size.ada | <filename>Task/File-size/Ada/file-size.ada
with Ada.Directories; use Ada.Directories;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_File_Size is
begin
Put_Line (File_Size'Image (Size ("input.txt")) & " bytes");
Put_Line (File_Size'Image (Size ("/input.txt")) & " bytes");
end Test_File_Size;
|
6,794 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-bnf-output_ada_common.adb | -- 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 3, or (at your option) ... |
6,795 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-culling.adb | <gh_stars>10-100
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Culling is
procedure Set_Front_Face (Face : Orientation) renames API.Front_Face;
function Front_Face return Orientation is
Re... |
6,796 | ada | 3 | rogermc2/GA_Ada | test_draw_line_major/src/points.adb |
package body Points is
function Set_Draw_Colour (Colour : Singles.Vector4) return Colour_Data is
begin
return (others => Colour);
end Set_Draw_Colour;
end Points;
|
6,797 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt59_pkg.ads | <reponame>best08618/asylo
package Opt59_Pkg is
type Boolean_Vector is array (1 .. 8) of Boolean;
function Get_BV1 return Boolean_Vector;
function Get_BV2 return Boolean_Vector;
procedure Test (B : Boolean);
end Opt59_Pkg;
|
6,798 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | ADL/devices/stm32-rcc.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
6,799 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-excpol-interix.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.