id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
10,500 | ada | 0 | cortlandstarrett/mcada | example_relationships/src/generic_list.ads | <reponame>cortlandstarrett/mcada
with Application_Types;
generic
type Element_Type is private;
package Generic_List is
type Node_Type;
type Node_Access_Type is access Node_Type;
type Node_Type is
record
Item : Element_Type;
Next : Node_Access_Type;
end record;
--
-- The node is the basic element of ... |
10,501 | ada | 12 | jquorning/ada-asf | src/asf-beans-requests.ads | -----------------------------------------------------------------------
-- asf-beans-requests -- Bean giving access to the request object
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
10,502 | ada | 36 | rewriting/tom | examples/ada/trees/arraytree/launch.adb | <reponame>rewriting/tom
with ATree;
procedure launch is
begin
ATree.main;
end launch;
|
10,503 | ada | 0 | hgrodriguez/edc-client | src/edc_client-matrix-double_word.adb | <reponame>hgrodriguez/edc-client
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with Interfaces;
private with Edc_Client.Matrix.Common;
with Edc_Client.Matrix.Types; use Edc_Client.Matrix.Types;
package body Edc_Client.Matrix.Double_Word is
--------------------------------------... |
10,504 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/einfo.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<filename>tools-src/gnu/gcc/gcc/ada/einfo.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
10,505 | ada | 0 | fintatarta/eugen | src/Processors/LaTeX/project_processor-processors-latex.adb | <filename>src/Processors/LaTeX/project_processor-processors-latex.adb
pragma Ada_2012;
with Ada.Strings.Unbounded;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Ada.Containers.Vectors;
with Ada.Containers.Ordered_Sets;
with EU_Projects.Nodes.Partners... |
10,506 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/fname-sf.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
10,507 | ada | 12 | jquorning/ada-asf | src/asf-lifecycles.adb | <reponame>jquorning/ada-asf<gh_stars>10-100
-----------------------------------------------------------------------
-- asf-lifecycles -- Lifecycle
-- Copyright (C) 2010, 2011, 2012, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
10,508 | ada | 8 | reznikmm/jwt | tests/hs_256_test.adb | <reponame>reznikmm/jwt
-- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Streams;
with League.Strings;
with League.Base_Codecs;
with JWS;
procedure HS_256_Test is
function "+"
(Item... |
10,509 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/STM32/drivers/dma_interrupts/stm32-dma-interrupts.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2018, AdaCore --
-- --
-- ... |
10,510 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/wisitoken_grammar_runtime.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2018 - 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) ... |
10,511 | ada | 4 | faelys/gela-asis | source/asis/xasis/xasis-classes.ads | ------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
10,512 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/nordic/nrf52/nrf52840/svd/i-nrf52-clock.ads | <gh_stars>0
--
-- Copyright (C) 2019, AdaCore
--
-- 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 so... |
10,513 | ada | 1 | Hathoute/ENSEEIHT | PIM/Projet/src/types.adb | <reponame>Hathoute/ENSEEIHT<filename>PIM/Projet/src/types.adb<gh_stars>1-10
package body Types is
function "<"(Gauche: T_Rank; Droit: T_Rank) return Boolean is
begin
return Gauche.Poid < Droit.Poid;
end "<";
function Hachage(Indice: in T_Indice) return Integer is
begin
return Indic... |
10,514 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Last-Friday-of-each-month/Ada/last-friday-of-each-month.ada | with Ada.Text_IO, GNAT.Calendar.Time_IO, Ada.Command_Line,
Ada.Calendar.Formatting, Ada.Calendar.Arithmetic;
procedure Last_Weekday_In_Month is
procedure Put_Line(T: Ada.Calendar.Time) is
use GNAT.Calendar.Time_IO;
begin
Ada.Text_IO.Put_Line(Image(Date => T, Picture => ISO_Date));
end Put_Line;... |
10,515 | ada | 12 | jquorning/ada-asf | src/asf-applications-views.ads | -----------------------------------------------------------------------
-- applications.views -- Ada Web Application
-- Copyright (C) 2009, 2010, 2011, 2012, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compl... |
10,516 | ada | 18 | jquorning/ada-wiki | src/wiki-filters-variables.adb | -----------------------------------------------------------------------
-- wiki-filters-variables -- Expand variables in text and links
-- Copyright (C) 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
10,517 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/i-cpp.ads | <filename>tools/scitools/conf/understand/ada/ada95/i-cpp.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
10,518 | ada | 0 | My-Colaborations/ada-servlet | samples/demo_server.adb | <reponame>My-Colaborations/ada-servlet
-----------------------------------------------------------------------
-- demo_server -- Demo server for Ada Server Faces
-- Copyright (C) 2010, 2011, 2012, 2013, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
10,519 | ada | 0 | Louis-Aime/Milesian_calendar_Ada | Julian_calendar.adb | -- Package body Julian_calendar
----------------------------------------------------------------------------
-- Copyright Miletus 2016
-- 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 witho... |
10,520 | ada | 3 | FROL256/ada-ray-tracer | test.adb | with Text_IO;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Sequential_IO;
with Ada.Real_Time;
with Interfaces;
with Ray_Tracer;
with Bitmap;
with Scene;
use Ada.Integer_Text_IO;
use Ray_Tracer;
use Interfaces;
use Ada.Real_Time;
use Ada.Text_IO;
use Text_IO;
procedure Test is
t1,t2 : Ada.Real_Time.Ti... |
10,521 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/shader/opengl-variable.adb | <filename>3-mid/opengl/source/lean/shader/opengl-variable.adb
package body openGL.Variable
is
---------
-- Forge
--
procedure define (Self : in out Item) -- TODO: Rid these ?
is
begin
null;
end define;
procedure destroy (Self : in out Item)
is
begin
null;
end destr... |
10,522 | ada | 1 | reznikmm/mount_photos | src/photo_files.adb | <reponame>reznikmm/mount_photos<gh_stars>1-10
-- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Text_IO;
with Ada.Wide_Wide_Text_IO;
with AWS.Client;
with AWS.Headers;
with AWS.Messages;
with... |
10,523 | ada | 2 | zenharris/ada-bbs | src/texaco.adb | <filename>src/texaco.adb
package body Texaco is
-- c :Key_Code;
-- Ch : Character;
-- Current_Char : Column_Position := 1;
function GetKey (win1 : Window := Standard_Window) return Key_Code is
Inkey : Key_Code;
begin
Inkey := Get_Keystroke(win1);
return (Inkey);
exception
... |
10,524 | ada | 8 | darkestkhan/lumen | src/lumen-binary-endian-words.adb |
-- Lumen.Binary.Endian.Words -- Byte re-ordering routines for "word"
-- (32-bit) values
--
--
-- <NAME>, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for an... |
10,525 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/blkextract_from_reg.adb | -- { dg-do run }
with System, Ada.Unchecked_Conversion; use System;
procedure BLKextract_From_Reg is
type Byte is range 0 .. +255;
for Byte'size use 8;
type RGB is array (1 .. 3) of Byte;
for RGB'Size use 24;
type RAW_Packet is range 0 .. 2 ** 32 - 1;
for RAW_Packet'Size use 32;
type Compo... |
10,526 | ada | 3 | FROL256/ada-ray-tracer | bitmap.ads | with Interfaces;
with Ada.Streams.Stream_IO;
with Ada.Unchecked_Deallocation;
use Interfaces;
use Ada.Streams.Stream_IO;
package Bitmap is
type PixelData is array (Integer range <>) of Unsigned_32;
type PixelDataRef is access PixelData;
procedure delete is new Ada.Unchecked_Deallocation(Object => PixelData, N... |
10,527 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-parameter_association_vectors.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Nodes.Generic_Vectors;
with Program.Elements.Parameter_Associations;
package Program.Nodes.Parameter_Association_Vectors is new
Program.Nodes.Generic_Vecto... |
10,528 | ada | 0 | Letractively/ada-awa | awa/samples/src/model/atlas-reviews-models.ads | -----------------------------------------------------------------------
-- Atlas.Reviews.Models -- Atlas.Reviews.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ad... |
10,529 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_3/problem_3.ads | with Ada.Numerics; use Ada.Numerics;
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
with Ada.Containers.Vectors;
with Test_Solution; use Test_Solution;
package Problem_3 is
type Int64 is range -2**63 .. 2**63 -1;
type Prime_Count is record
Prime : Integer;
Cou... |
10,530 | ada | 24 | svn2github/matreshka | source/amf/mof/cmof/amf-internals-tables-cmof_attributes.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
10,531 | ada | 1 | io7m/coreland-opengl-ada | opengl-matrix.adb | package body OpenGL.Matrix is
function Mode_To_Constant (Mode : in Mode_t) return Thin.Enumeration_t is
begin
case Mode is
when Texture => return Thin.GL_TEXTURE;
when Modelview => return Thin.GL_MODELVIEW;
when Color => return Thin.GL_COLOR;
when Projection => return Thin.GL_P... |
10,532 | ada | 24 | svn2github/matreshka | tools/scanner_transformer/scanner_extractor.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
10,533 | ada | 60 | RREE/ada-util | src/core/util-locales.ads | <filename>src/core/util-locales.ads
-----------------------------------------------------------------------
-- util-locales -- Locale support
-- Copyright (C) 2001, 2002, 2003, 2009, 2010, 2011, 2012, 2013, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License... |
10,534 | ada | 33 | ytomino/drake | source/image/required/s-valenu.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Val_Enum is
pragma Pure;
-- required for Enum'Value by compiler (s-valenu.ads)
function Value_Enumeration_8 (
Names : String;
Indexes : Address;
Num : Natural;
Str : String)
return Natural... |
10,535 | ada | 1 | alvaromb/Compilemon | src/pilas.ads | <reponame>alvaromb/Compilemon<filename>src/pilas.ads<gh_stars>1-10
generic
type Tipus_Element is private;
package pilas is
Memoria_Agotada : exception;
type Pila is limited private;
procedure Pila_Buida
(P : out Pila);
function Es_Buida
(P : Pila) return Boolean;
procedure Cim
(P... |
10,536 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f3/stm32gd-usart-peripheral.adb | <gh_stars>1-10
with System; use System;
with Ada.Unchecked_Conversion;
with STM32_SVD.DMA; use STM32_SVD.DMA;
package body STM32GD.USART.Peripheral is
DMA_Index : Integer := 1;
function W is new Ada.Unchecked_Conversion (Address, UInt32);
protected body IRQ_Handler is
entry Wait when Data_Available i... |
10,537 | ada | 7,053 | Elon143/Amass | resources/scripts/scrape/gists.ads | -- Copyright 2021 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
name = "Gists"
type = "scrape"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
local gist_re = "https://gist[.]git... |
10,538 | ada | 5 | onox/wayland-ada | wayland_ada_scanner/src/aida/aida-xml_sax_parse.adb | <reponame>onox/wayland-ada
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 - 2019 <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://w... |
10,539 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | ADL/drivers/stm32h743/stm32-spi.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- --
-- ... |
10,540 | ada | 5 | leo-brewin/ada-lapack | tests/tdsyevd.adb | with Ada.Text_IO;
with Ada.Text_IO.Complex_IO;
with Ada.Numerics.Generic_Real_Arrays;
with Ada.Numerics.Generic_Complex_Types;
with Ada.Numerics.Generic_Complex_Arrays;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada_Lapack;
use Ada.Text_IO;
procedure ... |
10,541 | ada | 24 | svn2github/matreshka | source/amf/mof/cmof/amf-internals-cmof_properties.ads | <filename>source/amf/mof/cmof/amf-internals-cmof_properties.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
10,542 | ada | 3 | RajaSrinivasan/srctrace | tests/revisions.ads | package revisions is
-- Ada spec generator
-- File: revisions.ads
BUILD_TIME : constant String := "Fri Nov 15 2019 18:23:05" ;
VERSION_MAJOR : constant := 0 ;
VERSION_MINOR : constant := 0 ;
VERSION_BUILD : constant := 999 ;
REPO_URL : constant String := "<EMAIL>:privatetutor/projectlets/go.git" ;
... |
10,543 | ada | 7 | stcarrez/resource-embedder | regtests/expect/ada/web.adb | <filename>regtests/expect/ada/web.adb
-- Advanced Resource Embedder 1.2.0
with Interfaces; use Interfaces;
package body web is
function Hash (S : String) return Natural;
P : constant array (0 .. 6) of Natural :=
(1, 5, 7, 8, 10, 21, 22);
T1 : constant array (0 .. 6) of Unsigned_8 :=
(47, 30, 67, ... |
10,544 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3102f.ada | -- CE3102F.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
10,545 | ada | 0 | wooky/aoc.kt | src/main/ada/2019/aoc-aoc_2019-day06.ads | <filename>src/main/ada/2019/aoc-aoc_2019-day06.ads
package AOC.AOC_2019.Day06 is
type Day_06 is new Day.Day with null record;
overriding procedure Init (D : in out Day_06; Root : String);
overriding function Part_1 (D : Day_06) return String;
overriding function Part_2 (D : Day_06) return String;
end AOC.A... |
10,546 | ada | 21 | smithros/kpi-stuff | parralel-prog/Lab1/src/data.ads | <reponame>smithros/kpi-stuff
generic
N: Integer;
package Data is
type Vector is private;
type Matrix is private;
function Func1(B: in Vector; MA,MD: in Matrix) return Matrix;
function Func2(g: in Integer; MG,MK,ML: in Matrix) return Matrix;
function Func3(MP,MR: in Matrix; S,T: in Vector) return V... |
10,547 | ada | 3 | stcarrez/ada-css | tools/parser/css-analysis-parser-lexer.adb |
with Ada.Text_IO;
with CSS.Analysis.Parser.Lexer_dfa;
with CSS.Analysis.Parser.Lexer_IO;
package body CSS.Analysis.Parser.Lexer is
use Ada.Text_IO;
use Ada.Strings.Unbounded;
use Ada;
use CSS.Analysis.Parser.Lexer_dfa;
use CSS.Analysis.Parser.Lexer_IO;
pragma Style_Checks (Off);
pragma Warnings ... |
10,548 | ada | 0 | hgrodriguez/eeprom_i2c | src/eeprom_i2c.adb | <reponame>hgrodriguez/eeprom_i2c<gh_stars>0
-----------------------------------------------------------------------------
-- Implementation for
-- Base class for the implementation of EEPROM memory connected via
-- I2C bus.
--
-- Copyright 2022 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.I2C... |
10,549 | ada | 2 | thorstel/Advent-of-Code-2018 | day25/day25.adb | with Ada.Assertions; use Ada.Assertions;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Vectors;
procedure Day25 is
generic
type T is private;
with function "<" (Left, Right : T) return Boolean;
package Disjoint_Sets is
procedure Insert (Element : T... |
10,550 | ada | 0 | SKNZ/BoiteMaker | src/utilities/logger.ads | with ada.text_io;
use ada.text_io;
package logger is
-- Log le message passé en débug
procedure debug(output : string);
-- Initialise le loggeur
procedure initialize(console : boolean; file : string);
-- Ferme le loggeur
procedure close;
private
-- Afficher le debug sur la console
... |
10,551 | ada | 3 | stcarrez/ada-css | tools/csstools.adb | -----------------------------------------------------------------------
-- csstools -- CSS Tools Command
-- Copyright (C) 2017, 2018, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
... |
10,552 | ada | 36 | rewriting/tom | examples/ada/vehicle/antimatching.ads | package AntiMatching is
procedure main;
end AntiMatching;
|
10,553 | ada | 3 | rogermc2/GA_Ada | test_draw_line_major/src/main_loop.adb |
-- with Ada.Numerics;
with Ada.Text_IO; use Ada.Text_IO;
with GL.Buffers;
with GL.Culling;
with GL.Toggles;
with GL.Objects.Programs;
with GL.Objects.Vertex_Arrays;
with GL.Types;
with GL.Types.Colors;
with Glfw;
with Glfw.Input;
with Glfw.Input.Keys;
with GL.Window;
with Glfw.Windows.Context;
-- with Maths;
with... |
10,554 | ada | 0 | ALPHA-60/ada-keystore | src/keystore-passwords.adb | <reponame>ALPHA-60/ada-keystore<filename>src/keystore-passwords.adb
-----------------------------------------------------------------------
-- keystore-passwords -- Password provider
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
10,555 | ada | 0 | alire-project/sdlada | src/sdl-video-pixels.ads | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the ... |
10,556 | ada | 18 | kraileth/ravenadm | src/display-console.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package Display.Console is
-- These are dummy routines to match active ones in Display.Curses
-- This module is only used to support building ravenadm without curses support
function launch_monitor (nu... |
10,557 | ada | 0 | AntonMeep/sha2 | src/sha2_generic.ads | <reponame>AntonMeep/sha2<filename>src/sha2_generic.ads<gh_stars>0
with Interfaces; use Interfaces;
with SHA2_Generic_32;
with SHA2_Generic_64;
generic
type Element is mod <>;
type Index is range <>;
type Element_Array is array (Index range <>) of Element;
package SHA2_Generic with
Pure,
Preelaborate
is... |
10,558 | ada | 76 | yannickmoy/SPARKNaCl | tests/stream2.adb | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core; use SPARKNaCl.Core;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Stream; use SPARKNaCl.Stream;
with SPARKNaCl.Hashing; use SPARKNaCl.Hashing;
procedure Stream2
is
SecondKey : constant Salsa20_Key :=
Construct ((16#dc#, 16#90#, 1... |
10,559 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Convert-decimal-number-to-rational/Ada/convert-decimal-number-to-rational-1.ada | generic
type Real is digits <>;
procedure Real_To_Rational(R: Real;
Bound: Positive;
Nominator: out Integer;
Denominator: out Positive);
|
10,560 | ada | 5 | docandrew/troodon | src/frames.ads | <gh_stars>1-10
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Containers;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Interfaces.C; use Interfaces.C;
with GLX;
with xcb;
with xproto; use xproto;
with Render;
-------------------------------------------------------------------------------
-- Fram... |
10,561 | ada | 286 | auzkok/libagar | ada/gui/agar-mouse.ads | <reponame>auzkok/libagar
------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . M O U S E --
-- S p e c ... |
10,562 | ada | 0 | twdroeger/ada-awa | awa/src/awa-commands.ads | -----------------------------------------------------------------------
-- awa-commands -- AWA commands for server or admin tool
-- Copyright (C) 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance ... |
10,563 | ada | 2 | mgrojo/bingada | src/q_bingo_help.adb | --*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_bingo_help.adb
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
with GTK.ABOUT_DIALOG;
with GTK.DIALOG;... |
10,564 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/String-matching/Ada/string-matching.ada | with Ada.Strings.Fixed; use Ada.Strings.Fixed;
with Ada.Text_IO; use Ada.Text_IO;
procedure Match_Strings is
S1 : constant String := "abcd";
S2 : constant String := "abab";
S3 : constant String := "ab";
begin
if S1'Length >= S3'Length and then S1 (S1'First..S1'First + S3'Length - 1) = S3 then
... |
10,565 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-text_codecs-utf16.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
10,566 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35003d.ada | -- C35003D.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
10,567 | ada | 4 | octonion/examples | hybrid/ada/test.adb | <filename>hybrid/ada/test.adb
with Ada.Command_Line;
with Ada.Text_IO;
procedure Test is
Iterations : Positive := Positive'Value
(Ada.Command_Line.Argument (1));
protected Buffer is
entry Put (X : in Boolean);
entry Get (X : out Boolean);
private
Value : Boolean;
Full : Boolean ... |
10,568 | ada | 2 | onox/opus-ada | src/opus-decoders.adb | -- Copyright (c) 2014 onox <<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 appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DI... |
10,569 | ada | 0 | Intelligente-sanntidssystemer/Ada-prosjekt | ADA_Project/src/motor.adb | <filename>ADA_Project/src/motor.adb<gh_stars>0
package body Motor is
BLE_Port : aliased Serial_Port (BLE_UART_Transceiver_IRQ);
BLE : Bluefruit_LE_Transceiver (BLE_Port'Access);
Period : constant Time_Span := Milliseconds (System_Configuration.Remote_Control_Period);
Current_Vector : Travel_Vector := (... |
10,570 | ada | 80 | thindil/steamsky | tests/stories-test_data-tests-steps_container.ads | <filename>tests/stories-test_data-tests-steps_container.ads<gh_stars>10-100
package Stories.Test_Data.Tests.Steps_Container is
end Stories.Test_Data.Tests.Steps_Container;
|
10,571 | ada | 13 | annexi-strayline/AURA | child_processes-wait_and_buffer.ads | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
10,572 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Collections/Ada/collections-2.ada | <filename>Task/Collections/Ada/collections-2.ada<gh_stars>1-10
procedure Array_Collection is
type Array_Type is array (1 .. 3) of Integer;
A : Array_Type := (1, 2, 3);
begin
A (1) := 3;
A (2) := 2;
A (3) := 1;
end Array_Collection;
|
10,573 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/main.adb | <filename>Ada/main.adb
with Ada.Text_IO; use Ada.Text_IO;
with Test_Solution; use Test_Solution;
with Ada.Containers.Vectors;
with Ada.Strings.Unbounded;
with Problem_1;
with Problem_2;
with Problem_3;
with Problem_4;
with Problem_5;
with Problem_6;
with Problem_7;
with Problem_8;
with Problem_9;
with Problem_10;
with... |
10,574 | ada | 1 | onox/weechat-emoji | src/plugin_emoji.adb | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
10,575 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversL5/stm32-pka.adb | <filename>arch/ARM/STM32/driversL5/stm32-pka.adb<gh_stars>1-10
with System;
with System.Machine_Code; use System.Machine_Code;
with STM32.RNG; use STM32.RNG;
with STM32_SVD.RCC; use STM32_SVD.RCC;
package body STM32.PKA is
Curve : CurveData;
procedure Copy_S_To_U32 (S : String; To : out UInt32_Array)
... |
10,576 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_joystick_h.ads | <reponame>AdaCore/training_material<filename>extern/gnat_sdl/gnat_sdl2/src/sdl_joystick_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
with Interfaces.C.Strings;
package SDL_joystick_h is
SDL_JOYSTICK_AXIS_MAX : constant := 32767; -- ..\SDL2_tmp\SDL_joy... |
10,577 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-devices-surfaces-paged.adb | <filename>src/fltk-devices-surfaces-paged.adb
with
Interfaces.C,
System;
use type
Interfaces.C.int,
System.Address;
package body FLTK.Devices.Surfaces.Paged is
function new_fl_paged_device
return System.Address;
pragma Import (C, new_fl_paged_device, "new_fl_paged_device");
... |
10,578 | ada | 24 | svn2github/matreshka | testsuite/xml/xmlconf-testsuite_handlers.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
10,579 | ada | 0 | marcello-s/AeonFlux | src/ada/AeonFlux/Parser/Lexer_Base.ads | <reponame>marcello-s/AeonFlux
-- Copyright (c) 2015-2019 <NAME>
-- for details see License.txt
with Tokens; use Tokens;
with TokenValue; use TokenValue;
with Position; use Position;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Lexer_Base is
type Object is tagged private;
procedure OpenFile (... |
10,580 | ada | 1 | robertwenquan/nyu-course-assignment | programming-languages/ada/hello.adb | <reponame>robertwenquan/nyu-course-assignment
with Ada.Text_IO; -- Tell compiler to use i/o library
use Ada.Text_IO; -- Use library routines w/o fully qualified names
procedure hello is
begin
--put("Hello World!\n");
Ada.Text_IO.Put_Line ("Hello world in Ada!");
end hello;
|
10,581 | ada | 33 | ytomino/drake | source/a-uncrea.adb | <filename>source/a-uncrea.adb
with Ada.Tags;
with Ada.Unchecked_Deallocation;
with System.Standard_Allocators;
with System.Storage_Elements;
with System.Storage_Pools.Standard_Pools;
procedure Ada.Unchecked_Reallocation (
X : in out Name;
First_Index : Index_Type;
Last_Index : Index_Type'Base)
is
pragma Sup... |
10,582 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/assert.ads | <gh_stars>1-10
package Assert is
procedure Assert (Condition : Boolean);
end Assert;
|
10,583 | ada | 19 | jrcarter/Ada_GUI | gnat-sockets-server.ads | -- --
-- package GNAT.Sockets.Server Copyright (c) <NAME> --
-- Interface Luebeck --
-- Winter, 2012 --
-- ... |
10,584 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-menus-choices.ads |
package FLTK.Widgets.Menus.Choices is
type Choice is new Menu with private;
type Choice_Reference (Data : not null access Choice'Class) is limited null record
with Implicit_Dereference => Data;
package Forge is
function Create
(X, Y, W, H : in Integer;
... |
10,585 | ada | 33 | ytomino/drake | examples/charhandling.adb | <reponame>ytomino/drake
with Ada.Characters.ASCII.Handling;
with Ada.Characters.Handling;
with Ada.Strings.Maps.Constants;
procedure charhandling is
package UH renames Ada.Characters.Handling;
package AH renames Ada.Characters.ASCII.Handling;
package M renames Ada.Strings.Maps;
begin
begin
if UH.Is_Control (Chara... |
10,586 | ada | 0 | e3l6/SSMDev | demo/src/stm32f429_discovery.ads | <reponame>e3l6/SSMDev<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
10,587 | ada | 3 | reznikmm/coroutines | examples/tcp_servers.adb | <gh_stars>1-10
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Exceptions;
with Ada.Text_IO;
with Coroutines.Polling;
package body TCP_Servers is
type Listener_Arguments is record
... |
10,588 | ada | 4 | ytomino/gmp-ada | source/gmp.ads | <reponame>ytomino/gmp-ada
private with C.gmp;
package GMP is
pragma Preelaborate;
pragma Linker_Options ("-lgmp");
function Version return String;
subtype Number_Base is Integer range 2 .. 16;
type Exponent is new Long_Integer;
type Precision is mod 2 ** GMP.Exponent'Size;
function Default_Precision retu... |
10,589 | ada | 34 | sergev/vak-opensource | languages/ada/hello.adb | <gh_stars>10-100
with Text_Io;
procedure Hello is
begin
Text_Io.Put_Line ("Hello, World!");
end Hello;
|
10,590 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overflow_fixed.adb | -- { dg-do run }
-- { dg-options "-gnato -O" }
procedure Overflow_Fixed is
type Unsigned_8_Bit is mod 2**8;
procedure Fixed_To_Eight (Value : Duration) is
Item : Unsigned_8_Bit;
begin
Item := Unsigned_8_Bit(Value);
raise Program_Error;
exception
when Constraint_Error => null; -- expected case... |
10,591 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Include-a-file/Ada/include-a-file.ada | <filename>Task/Include-a-file/Ada/include-a-file.ada
with Ada.Text_IO, Another_Package; use Ada.Text_IO;
-- the with-clause tells the compiler to include the Text_IO package from the Ada standard
-- and Another_Package. Subprograms from these packages may be called as follows:
-- Ada.Text_IO.Put_Lin... |
10,592 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/collision/narrowphase/impact-d3-collision-convex_penetration_depth_solver-minkowski.adb | <reponame>charlie5/lace
with impact.d3.collision.Detector.discrete;
with impact.d3.Transform;
with impact.d3.Vector;
with impact.d3.collision.Detector.discrete.gjk_pair;
-- #include "impact.d3.collision.convex_penetration_depth_Solver.minkowski.h"
-- #include "BulletCollision/NarrowPhaseCollision/btSubSimplexConvex... |
10,593 | ada | 24 | svn2github/matreshka | source/web/servlet/http/servlet-http_servlets.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
10,594 | ada | 4 | jorge-real/Ball-On-Beam | utils/csv_logs.adb | <reponame>jorge-real/Ball-On-Beam
--------------------------------------------------------------------------------
-- --
-- C S V _ L O G S --
-- ... |
10,595 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-transform.adb |
with Device; use Device;
with Memory.Container; use Memory.Container;
with Memory.Join; use Memory.Join;
package body Memory.Transform is
procedure Process(mem : in out Transform_Type;
address : in Address_Type;
size : in Address_Type;
... |
10,596 | ada | 1 | jweese/Ada_Vent_19 | day_07.adb | with Ada.Integer_Text_IO;
with Intcode;
with Memory;
procedure Day_07 is
use type Memory.Value;
Mem: constant Memory.Block := Memory.Read_Comma_Separated;
type Amp_Range is range 1 .. 5;
type Phase is mod 5;
type Phases is array (Amp_Range) of Phase;
procedure Increment(X: in out Phases) is
beg... |
10,597 | ada | 0 | persan/advent-of-code-2020 | src/day-1/adventofcode-day_1.ads | -- https://adventofcode.com/2020/day/1
-- --- Day 1: Report Repair ---
--
-- After saving Christmas five years in a row, you've decided to take a vacation at a nice resort on a tropical island.
-- Surely, Christmas will go on without you.
--
-- The tropical island has its own currency and is entirely cash-only.
--... |
10,598 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/incomplete3.ads | <reponame>best08618/asylo
package Incomplete3 is
type Output_T;
type Output_T is abstract tagged private;
type Tracer_T is tagged private;
function Get_Tracer (This : access Output_T'Class) return Tracer_T'class;
function Get_Output (This : in Tracer_T) return access Output_T'Class;
private
type... |
10,599 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindusg.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindusg.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.