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 |
|---|---|---|---|---|---|
3,600 | ada | 0 | optikos/oasis | source/parser/program-parsers-on_reduce_501.adb |
with Program.Parsers.Nodes;
use Program.Parsers.Nodes;
pragma Style_Checks ("N");
procedure Program.Parsers.On_Reduce_501
(Self : access Parse_Context;
Prod : Anagram.Grammars.Production_Index;
Nodes : in out Program.Parsers.Nodes.Node_Array) is
begin
case Prod is
when 501 =>
Nodes (1) :=
... |
3,601 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.1.1/sal-gen_definite_doubly_linked_lists_sorted.ads | <filename>.emacs.d/elpa/wisi-2.1.1/sal-gen_definite_doubly_linked_lists_sorted.ads
-- Abstract :
--
-- A generic sorted doubly linked list with definite elements.
--
-- Copyright (C) 2018 - 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- ... |
3,602 | ada | 12 | TUM-EI-RCS/StratoX | software/driver/led.adb | -- todo: use HAL
--with STM32_SVD.GPIO; use STM32_SVD.GPIO;
with HIL.GPIO; use HIL.GPIO;
package body LED with SPARK_Mode is
procedure init is
begin
null;
end init;
procedure on is
begin
write (RED_LED, HIGH); -- LED on
end on;
procedure off is
begin
write (RED_LED, LOW)... |
3,603 | ada | 24 | svn2github/matreshka | tools/ayacc/src/parse_template_file.ads | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Send bug reports for ayacc to <EMAIL>
--
-- Redistribution and use in... |
3,604 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-exexpr.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,605 | ada | 0 | KLOC-Karsten/adaoled | src/bitmap_graphics.ads |
with Interfaces; use Interfaces;
package Bitmap_Graphics is
type Color is (Black, White);
for Color use (Black => 0, White => 255);
type Point is record
X : Natural;
Y : Natural;
end record;
type Size is record
Width : Natural;
Height : Natural;
end record;
type Byte_Array is array... |
3,606 | ada | 0 | Intelligente-sanntidssystemer/Ada-prosjekt | ADA_RC_Car/src/sensor_behind.adb | <gh_stars>0
with NRF52_DK.Time;
with HAL; use HAL;
with NRF52_DK.IOs;
package body sensor_behind is
--Declaration of the PinIDs and type of the variables
TrigPin : NRF52_DK.IOs.Pin_Id := 12;
EchoPin : NRF52_DK.IOs.Pin_Id := 11;
CurrentTime : NRF52_DK.Time.Time_Ms;
Duration_Result : Durat... |
3,607 | ada | 3 | charlie5/aIDE | applet/aide/source/palettes/aide-palette-of_exceptions.adb | with
aIDE.Palette.of_exceptions_subpackages;
-- AdaM.Declaration.of_exception;
with Ada.Text_IO; use Ada.Text_IO;
with Glib; use Glib;
with Glib.Error; use Glib.Error;
with Glib.Object; use Glib.Object;
with Gtk.Builder; use Gtk.Builder;
with Gtk.Button... |
3,608 | ada | 192 | rocher/Ada_Drivers_Library | boards/OpenMV2/src/openmv.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2018, AdaCore --
-- --
-- ... |
3,609 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-lcd.adb | <filename>extern/game_support/stm32f4/src/stm32f4-lcd.adb<gh_stars>10-100
with Ada.Real_Time; use Ada.Real_Time;
with STM32F4.SDRAM; use STM32F4.SDRAM;
package body STM32F4.LCD is
function As_Word is new Ada.Unchecked_Conversion
(Source => System.Address, Target => Word);
------------------... |
3,610 | ada | 10 | Robert-Tice/AdaRoombot | src/types.ads | <reponame>Robert-Tice/AdaRoombot<filename>src/types.ads<gh_stars>1-10
with System; use System;
package Types is
type UByte is new Natural range 0 .. 255
with Size => 8;
type UByte_Array is array (Positive range <>) of UByte;
type Day is
(Sunday, Monday, Tuesday, Wednesday,
Thursday, F... |
3,611 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/xml_io/xml_io-base_readers.ads | <reponame>faelys/gela-asis<gh_stars>1-10
------------------------------------------------------------------------------
-- <NAME> A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada... |
3,612 | ada | 20 | charlie5/lace | 4-high/gel/source/joint/gel-ball_joint.ads | <reponame>charlie5/lace<gh_stars>10-100
with
gel.Joint,
gel.Sprite,
physics.Joint.DoF6,
physics.Joint.Ball,
physics.Space;
package gel.ball_Joint
--
-- Allows sprites to be connected via a 'ball and socket' joint.
--
is
type Item is new gel.Joint.item with private;
type View is acces... |
3,613 | ada | 0 | Holt59/Ada-SDL | body/ada/game-gtype.adb | <filename>body/ada/game-gtype.adb
--------------------------------------------
-- --
-- PACKAGE GAME - PARTIE ADA --
-- --
-- GAME-GTYPE.ADB --
-- --
-- Ge... |
3,614 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-sparse_matrices-remove_duplicates.adb | <gh_stars>0
separate (Numerics.Sparse_Matrices)
procedure Remove_Duplicates (Mat : in out Sparse_Matrix) is
N, Iter : Pos := 0;
J : Int_Array (1 .. Nat (Mat.P.Length)) := (others => 0);
I : Int_Array (1 .. Pos (Mat.I.Length));
X : Real_Vector (1 .. Pos (Mat.X.Length));
begin
for K in 1 .. Nat (Mat.P.L... |
3,615 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-wikis/regtests/awa-wikis-tests.ads | -----------------------------------------------------------------------
-- awa-wikis-tests -- Unit tests for wikis module
-- Copyright (C) 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Lice... |
3,616 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_address_null_init.adb | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do run }
-- { dg-options "-gnatws" }
with Address_Null_Init; use Address_Null_Init;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Address_Null_Init is
begin
if B /= null then
Put_Line ("ERROR: B was not default initialized to null!");
end if;
... |
3,617 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/tagged_subprogram_calls.ads | <filename>tests/syntax_examples/src/tagged_subprogram_calls.ads
with Other_Basic_Subprogram_Calls;
package Tagged_Subprogram_Calls is
package Inner is
type E is (A, B, C);
procedure P(A : E);
end Inner;
procedure Test(Param : Inner.E);
type T is tagged
null record;
procedu... |
3,618 | ada | 0 | reznikmm/gela | source/oasis/program-elements-exception_renaming_declarations.ads | <filename>source/oasis/program-elements-exception_renaming_declarations.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Elements.Defining_Identifiers;
with Program.Le... |
3,619 | ada | 24 | svn2github/matreshka | source/web/spikedog/daemon/service/spikedog-service.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,620 | ada | 5 | docandrew/troodon | include/glx.ads | <reponame>docandrew/troodon<filename>include/glx.ads
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with X11;
limited with Xlib;
limited with Xutil;
with Interfaces.C.Strings;
with System;
with GL;
with bits_stdint_intn_h;
package glx is
-- Troodon addition
type IntArray is arr... |
3,621 | ada | 33 | ytomino/drake | source/required/s-pack12.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_12 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_12 is mod 2 ** 12;
for Bits_12'Size use 12;
package Indexing is new... |
3,622 | ada | 80 | thindil/steamsky | tests/crew-mob_record_test_data.ads | -- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
with AUnit.Test_Fixtures;
with GNATtest_Ge... |
3,623 | ada | 0 | Jellix/elan520 | elan520-gp_timer_registers.ads | <reponame>Jellix/elan520<gh_stars>0
------------------------------------------------------------------------
-- Copyright (C) 2005-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- the... |
3,624 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32wb55x/stm32_svd-sai.ads | -- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.SAI is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ACR1_MODE_Field is HA... |
3,625 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-strfix.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
3,626 | ada | 1 | ShiroixD/pag_zad_2 | thirdparty/glut/progs/ada/ada_sphere_procs.adb | <filename>thirdparty/glut/progs/ada/ada_sphere_procs.adb
with GL; use GL;
with GLU; use GLU;
with Glut; use Glut;
with GNAT.OS_Lib;
package body ada_sphere_procs is
procedure display is
begin
glClear(GL_COLOR_BUFFER_BIT or GL_DEPTH_BUFFER_BIT);
glutSolidSphere(1.0, 10, 10);
glutSwapBuffers;
end di... |
3,627 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/gnatbind.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,628 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_unknown_discrs.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/test_unknown_discrs.adb
-- { dg-do compile }
procedure Test_Unknown_Discrs is
package Display is
type Component_Id (<>) is limited private;
Deferred_Const : constant Component_Id;
private
type Component_Id is (Clock);
... |
3,629 | ada | 0 | Lucretia/old_nehe_ada95 | utils/glutils.adb | ---------------------------------------------------------------------------------
-- Copyright 2004-2005 © <NAME>
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
-------------------------------------------------------------------... |
3,630 | ada | 1 | charlie5/lace-alire | 4-high/gel/applet/demo/distributed/gel_demo_server.ads | with
gel.World.server;
package gel_demo_Server
--
-- Provides the server.
--
is
the_server_World : gel.World.server.view;
task Item
is
entry start;
entry stop;
end Item;
end gel_demo_Server;
|
3,631 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-ngrear.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,632 | ada | 79 | Cre8or/OpenGLAda | tests/src/gl/gl_test-shaders.adb | <reponame>Cre8or/OpenGLAda
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO;
with GL.Buffers;
with GL.Files;
with GL.Fixed.Matrix;
with GL.Immediate;
with GL.Objects.Programs;
with GL.Objects.Shaders.Lists;
with GL.Types.Colors;
with GL_T... |
3,633 | ada | 0 | My-Colaborations/ada-servlet | regtests/servlet-routes-tests.ads | -----------------------------------------------------------------------
-- servlet-routes-tests - Unit tests for Servlet.Routes
-- Copyright (C) 2015, 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 w... |
3,634 | ada | 60 | Letractively/ada-util | src/util-texts-tokenizers.ads | -----------------------------------------------------------------------
-- util-tests-tokenizers -- Split texts into tokens
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the Li... |
3,635 | ada | 236 | jquorning/septum | src/windows/sp-platform.adb | with Ada.Directories;
with Ada.Environment_Variables;
package body SP.Platform is
function Home_Dir return String is
package Env renames Ada.Environment_Variables;
User_Profile : constant String := "HOME";
begin
if Env.Exists (User_Profile) then
return Ada.Directories.Full_... |
3,636 | ada | 0 | luk9400/nsi | list3/task2/src/rev.adb | <gh_stars>0
package body Rev with SPARK_Mode is
procedure Reve (S : in out String) is
Tmp: String := S;
begin
for I in S'Range loop
S(I) := Tmp(S'First + S'Last - I);
pragma Loop_Invariant (for all J in S'First .. I => S(J) = Tmp(S'First + S'Last - J));
end loop;
end Reve;
... |
3,637 | ada | 0 | optikos/oasis | source/oasis/program-elements-protected_definitions.ads | <reponame>optikos/oasis<filename>source/oasis/program-elements-protected_definitions.ads<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Definitions;
with Program.Ele... |
3,638 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/common/uxas-common.ads | <gh_stars>10-100
package UxAS.Common is
end UxAS.Common;
|
3,639 | ada | 26 | damaki/libkeccak | tests/unit_tests/ketje_tests.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source... |
3,640 | ada | 0 | fintatarta/protypo | src/lib/Readable_Sequences/Backup-2022-04-13/readable_sequences-generic_sequences.ads | with Ada.Containers.Vectors;
generic
type Element_Type is private;
type Element_Array is array (Positive range <>) of Element_Type;
package Readable_Sequences.Generic_Sequences is
type Sequence is tagged private;
Empty_Sequence : constant Sequence;
type Cursor is private;
Beginning : constant Curs... |
3,641 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-imgllf.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,642 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-lines.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- 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 Lic... |
3,643 | ada | 0 | Maxelweb/concurrency-sandbox | Erathostenes-III/src/soe.ads | with Ada.Finalization;
package SoE is
-- process Odd will be activated as part of the elaboration
-- of the enclosing package
-----------------------------------
task Odd is
-- we want the user to set the limit of the search range
entry Set_Limit (User_Limit : Positive);
end Od... |
3,644 | ada | 16 | stcarrez/ada-enet | demos/echo/echo_server.ads | <reponame>stcarrez/ada-enet<gh_stars>10-100
-----------------------------------------------------------------------
-- echo_server -- A simple UDP echo server
-- Copyright (C) 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
3,645 | ada | 1 | GauBen/Arbre-Genealogique | src/scenario_registre.adb | <filename>src/scenario_registre.adb
with registre;
with text_io; use text_io;
with ada.integer_text_io; use ada.integer_text_io;
procedure Test_Registre is
package Registre_Test is new registre (20, integer);
use Registre_Test;
mon_reg : t_registre;
begin
initialiser(mon_reg);
if not existe(mon_reg,... |
3,646 | ada | 192 | rocher/Ada_Drivers_Library | components/src/range_sensor/VL53L0X/vl53l0x.adb | <gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, 2020, AdaCore --
-- ... |
3,647 | ada | 0 | My-Colaborations/ada-asf | src/asf-components.ads | -----------------------------------------------------------------------
-- components -- Component tree
-- Copyright (C) 2009, 2010, 2011 <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.
-... |
3,648 | ada | 33 | ytomino/drake | source/strings/a-swmwco.ads | pragma License (Unrestricted);
with Ada.Strings.Maps.Constants;
-- diff (Ada.Strings.Maps.Naked)
-- diff (Ada.Strings.Naked_Maps.Set_Constants)
package Ada.Strings.Wide_Maps.Wide_Constants is
pragma Preelaborate;
-- extended
-- There are sets of unicode category.
function Unassigned_Set return Wide_Cha... |
3,649 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0026.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,650 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca5003b5.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ca/ca5003b5.ada
-- CA5003B5M.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
-- unl... |
3,651 | ada | 1 | mullikine/RosettaCodeData | Task/Pernicious-numbers/Ada/pernicious-numbers-2.ada | <filename>Task/Pernicious-numbers/Ada/pernicious-numbers-2.ada
Counter: Natural;
begin
-- initialize array Prime; Prime(I) must be true if and only if I is a prime
...
Counter := 0;
-- count p. numbers below 2**32
for Y in Num(2) .. 2**32 loop
if Prime(Pop_Count(Y)) then
Counter := Counter + ... |
3,652 | ada | 0 | usainzg/EHU | MP/LAB_001_Opt/Ver_Dicotomica.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Ver_Dicotomica is
type T_Vector is array (Positive range <>) of Integer;
Vector: T_Vector (1..10);
I: Integer;
function Dicotomica (Vector: T_Vector; N:Integer) return Integer is
mid : Integer := ((Vector'... |
3,653 | ada | 0 | rtoal/enhanced-dining-philosophers | ada/waiters.adb | <reponame>rtoal/enhanced-dining-philosophers
------------------------------------------------------------------------------
-- waiters.adb
--
-- Implementation of the waiters.
------------------------------------------------------------------------------
with Philosophers, Cooks, Host, Meals, Orders, Reporter, P... |
3,654 | ada | 0 | kitten1907/hexlo | src/hexlo.adb | <filename>src/hexlo.adb
with Ada.Command_Line;
with Ada.Exceptions;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
procedure hexlo is
begin
Put_Line("Ada hexlo program: begin");
Put_line("Ada hexlo program: end");
end hexlo;
|
3,655 | ada | 13 | annexi-strayline/AURA | repositories-cache-checkout_git.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
3,656 | ada | 0 | Letractively/ada-gen | src/gen-utils.adb | <gh_stars>0
-----------------------------------------------------------------------
-- gen-utils -- Utilities for model generator
-- 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 comp... |
3,657 | ada | 15 | mgrojo/adalib | ada-containers-unbounded_priority_queues.ads | <gh_stars>10-100
-- Standard Ada library specification
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-Identifier: BSD-3-Clause and... |
3,658 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-list_templates.adb | -- Generated at 2015-08-01 13:43:50 +0000 by Natools.Static_Hash_Maps
-- from src/natools-web-list_templates-maps.sx
with Natools.Static_Maps.Web.List_Templates.Commands;
package body Natools.Static_Maps.Web.List_Templates is
function To_Command (Key : String) return Command is
N : constant Natural
... |
3,659 | ada | 0 | bracke/Meaning | source/Controller_MainWindow.adb | <gh_stars>0
with RASCAL.Memory; use RASCAL.Memory;
with RASCAL.OS; use RASCAL.OS;
with RASCAL.Utility; use RASCAL.Utility;
with RASCAL.FileExternal; use RASCAL.FileExternal;
with RASCAL.Heap; use RASCAL.Heap;
with RASCAL.... |
3,660 | ada | 7,053 | Elon143/Amass | resources/scripts/archive/haw.ads | <reponame>Elon143/Amass
-- 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.
name = "HAW"
type = "archive"
function start()
set_rate_limit(4)
end
function vertical(ctx, domain)
local page, err = request(ctx, {['url']=... |
3,661 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-text_utils.adb | <filename>source/asis/asis-gela-text_utils.adb
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://g... |
3,662 | ada | 1 | kylelk/ada-examples | add_by_referance.adb | <gh_stars>1-10
with Ada.integer_text_IO;
use Ada;
procedure add_by_referance is
procedure add(a, b: in Integer; c: out Integer) is
begin
c := a + b;
end add;
answer : Integer;
begin
add(3, 5, answer);
integer_text_IO.put(answer);
end add_by_referance;
|
3,663 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Tree-traversal/Ada/tree-traversal.ada | <filename>Task/Tree-traversal/Ada/tree-traversal.ada
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Unchecked_Deallocation;
with Ada.Containers.Doubly_Linked_Lists;
procedure Tree_Traversal is
type Node;
type Node_Access is access Node;
type Node is record
Left : Node_Access := null;
Right : Node_Acc... |
3,664 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf_svd-adc.ads | <reponame>rocher/Ada_Drivers_Library
-- Copyright (c) 2013, Nordic Semiconductor ASA
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributions of source code must retain the... |
3,665 | ada | 2 | egustafson/sandbox | Ada/DataStructures/BinTree/int_binary_tree.ads | package Int_Binary_Tree is
type T is limited private;
function Is_In_Tree( Tree: in T; Number: in Integer ) return Boolean;
procedure Insert( Tree: in out T; Number: in Integer );
procedure Remove( Tree: in out T; Number: in Integer );
procedure Print( Tree: in T );
procedure Debug_Print( Tree: in... |
3,666 | ada | 16 | stcarrez/ada-enet | demos/utils/receiver.ads | -----------------------------------------------------------------------
-- receiver -- Ethernet Packet Receiver
-- Copyright (C) 2016, 2017 <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.... |
3,667 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-catiio.adb | <filename>support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-catiio.adb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
--... |
3,668 | ada | 79 | Roldak/OpenGLAda | src/gl/interface/gl-fixed.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.Types;
private with GL.Low_Level;
-- Fixed function pipeline. Deprecated in OpenGL 3.0.
package GL.Fixed is
pragma Preelaborate;
use GL.Types;
subtype Vertex_Length is Positive range 2 ..... |
3,669 | ada | 0 | patrickf2000/ada-asm | src/main.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Streams.Stream_IO;
with Parser; use Parser;
with X86Parser; use X86Parser;
with X86Writer; use X86Writer;
with Elf; use Elf;
procedure Main is
package Stream_IO renames Ada.Streams.Stream_IO;
Lines, Data, Code : Parts_Vector.Vector;
instr : Instr_Ve... |
3,670 | ada | 6 | gerr135/ada_gems | mixins/src/generic_mixin.adb | <reponame>gerr135/ada_gems
with Ada.Text_IO; use Ada.Text_IO;
package body generic_mixin is
overriding
procedure simple(Self : Derived) is
begin
Put_Line(" gm:simple");
end;
overriding
procedure compound(Self : Derived) is
begin
Put_Line(" gm:compound, calling De... |
3,671 | ada | 16 | stcarrez/ada-enet | demos/time/time.adb | -----------------------------------------------------------------------
-- time -- NTP example
-- 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 compliance with the License.
-- You may obtain a c... |
3,672 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf_svd-ccm.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... |
3,673 | ada | 0 | Letractively/ada-asf | src/asf-applications-messages.adb | <filename>src/asf-applications-messages.adb
-----------------------------------------------------------------------
-- applications.messages -- Application Messages
-- Copyright (C) 2010 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
3,674 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/g-eacodu-vms.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,675 | ada | 0 | persan/a-cups | src/gen/cups-wchar_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
private package CUPS.wchar_h is
-- Copyright (C) 1995-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software; you can redistribute it and/or
-- modify it under ... |
3,676 | ada | 0 | Letractively/ada-gen | src/gnat/sinput-p.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,677 | ada | 3 | TheSledgeHammer/2.11BSD | contrib/gnu/gdb/dist/gdb/testsuite/gdb.ada/mi_prot/prot.adb | <gh_stars>1-10
-- Copyright 2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later versi... |
3,678 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-osinte-rtems.ads | ------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
3,679 | ada | 2 | glencornell/ada-socketcan | src/sockets-can_thin.ads | -- MIT License
--
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, mo... |
3,680 | ada | 4 | assessorgeneral/ConQAT | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/sample1.ada | <reponame>assessorgeneral/ConQAT<gh_stars>1-10
package body PKG is
procedure a () is
begin
for Character'('0') .. Character'('9') loop
x ();
end loop;
end a;
procedure b (a: int; b: int) is
begin
y ();
end b;
end PKG;
|
3,681 | ada | 0 | AntonMeep/pbkdf2 | src/pbkdf2.ads | <reponame>AntonMeep/pbkdf2
with Ada.Streams; use Ada.Streams;
with PBKDF2_Generic;
with HMAC; use HMAC;
with SHA1;
with SHA2;
package PBKDF2 with
Pure,
Preelaborate
is
package PBKDF2_HMAC_SHA_1_Package is new PBKDF2_Generic
(Element => Stream_Element, Index => Stream_Element_Offset,
Eleme... |
3,682 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-utf8.ads | <filename>src/ada-pulse/src/pulse-utf8.ads
-- Copyright 2016 <NAME>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless requi... |
3,683 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/timing.adb | <filename>Sources/Library/timing.adb<gh_stars>1-10
--
-- Jan & <NAME>, Australia, July 2011
--
package body Timing is
Time_Keeper : Time := Clock;
function Timer return Time_Span is
Timed : constant Time_Span := Clock - Time_Keeper;
begin
Time_Keeper := Time_Keeper + Timed;
return Timed... |
3,684 | ada | 30 | jscparker/math_packages | linear_algebra/rectangular_test_matrices.ads |
generic
type Real is digits <>;
type R_Index is range <>;
type C_Index is range <>;
type Matrix is array(R_Index, C_Index) of Real;
package Rectangular_Test_Matrices is
type Matrix_Id is
(Zero_Diagonal, -- all 1's with 0 down the diagonal
Upper_Ones, --
Lower_Ones, --
... |
3,685 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/nfa.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... |
3,686 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-thread.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-thread.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,687 | ada | 3 | rogermc2/GA_Ada | example_1.1/src/draw_1_1.adb |
-- with Blade_Types;
with C3GA;
with C3GA_Draw;
with GA_Maths;
-- with GA_Utilities;
with Metric;
with Multivector_Utilities;
package body Draw_1_1 is
-- ---------------------------------------------------------------------
function Draw_Circle (Render_Program : GL.Objects.Programs.Program;
... |
3,688 | ada | 1 | sparre/JSA | src/jsa-debugged.adb | ------------------------------------------------------------------------------
--
-- package Debugged (body)
--
------------------------------------------------------------------------------
-- Update information:
--
-- 1996.07.26 (<NAME>)
-- Copied from Debugging (1996.07.26).
--
-- (Insert additional update in... |
3,689 | ada | 1 | charlie5/lace-alire | 4-high/gel/applet/demo/sprite/mixed_joints/launch_mixed_joints.adb | <filename>4-high/gel/applet/demo/sprite/mixed_joints/launch_mixed_joints.adb
with
gel.Window.sdl,
gel.Applet.gui_world,
gel.Forge,
gel.Sprite,
gel.hinge_Joint,
gel.ball_Joint,
gel.cone_twist_Joint,
gel.slider_Joint,
gel.any_Joint,
openGL.Palette;
pragma unreferenced (... |
3,690 | ada | 32 | robdaemon/AdaYaml | Parser_Tools/src/unicode/implementation/lexer-base-unicode.adb | <filename>Parser_Tools/src/unicode/implementation/lexer-base-unicode.adb<gh_stars>10-100
-- part of ParserTools, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.IO_Exceptions;
package body Lexer.Base.Unicode is
function Next (Object : in out Instance'Class) ret... |
3,691 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/regression-callstmt/main.adb | <filename>ada/examples/regression-callstmt/main.adb
WITH auxiliary;
PROCEDURE main IS
BEGIN
auxiliary.start;
END main;
|
3,692 | ada | 24 | svn2github/matreshka | source/xml/catalogs/matreshka-xml_catalogs-entry_files.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,693 | ada | 24 | svn2github/matreshka | source/league/matreshka-json_parser.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,694 | ada | 0 | jfitz/code-stat | test/data/Ada-95/philosophers.ads | <gh_stars>0
--::::::::::
--random_generic.ads
--::::::::::
generic
type Result_Subtype is (<>);
package Random_Generic is
-- Simple integer pseudo-random number generator package.
-- <NAME>, The George Washington University,
-- June 1995.
function Random_Value return Result_Subtype;
end Random_Generi... |
3,695 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-tables-uml_attribute_mappings.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,696 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-parse-packrat-generated.ads | <gh_stars>0
-- Abstract :
--
-- Types and operations for a packrat parser runtime, with nonterm
-- parsing subprograms generated by wisi-generate.
--
-- References:
--
-- see parent.
--
-- Copyright (C) 2018 - 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/o... |
3,697 | ada | 80 | thindil/steamsky | src/careers.ads | -- Copyright 2018-2021 <NAME>
--
-- This file is part of Steam Sky.
--
-- Steam Sky is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) a... |
3,698 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Element-wise-operations/Ada/element-wise-operations-1.ada | with Ada.Text_IO, Matrix_Scalar;
procedure Scalar_Ops is
subtype T is Integer range 1 .. 3;
package M is new Matrix_Scalar(T, T, Integer);
-- the functions to solve the task
function "+" is new M.Func("+");
function "-" is new M.Func("-");
function "*" is new M.Func("*");
fu... |
3,699 | ada | 0 | optikos/oasis | source/nodes/program-nodes-qualified_expressions.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Qualified_Expressions is
function Create
(Subtype_Mark : not null Program.Elements.Expressions
.Expr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.