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 |
|---|---|---|---|---|---|
2,300 | ada | 0 | erlingrj/ktc | benchmark/ada/example1.ads | <filename>benchmark/ada/example1.ads
package Example1 is
procedure Sense ;
procedure Handle_Deadline;
Count : Integer := 0;
Dummy : Integer := 0;
end Example1;
|
2,301 | ada | 0 | AdaForge/Advent_of_Code_2020 | puzzle_16/src/puzzle_16.adb | procedure Puzzle_16 is
begin
null;
end Puzzle_16;
|
2,302 | ada | 0 | xuedong/mini-ada | tests/typing/good/testfile-case-3.adb | with Ada.Text_IO; use Ada.Text_IO;
procEdure TesT is bEGin PUT('a'); EnD TeSt;
|
2,303 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | SVD2ada/svd/stm32_svd-fmac.ads | <gh_stars>0
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.FMAC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype X1BUFCFG_X1_BASE_Field ... |
2,304 | ada | 24 | svn2github/matreshka | source/league/league-json-streams.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,305 | ada | 1 | persan/spawn-manager | bin/src/helper.adb | <reponame>persan/spawn-manager
with Ada.Text_IO;
with Spawn_Manager;
with Ada.Command_Line;
procedure Helper is
use Ada.Text_IO;
begin
if Spawn_Manager.Version /= $VERSION then
Ada.Command_Line.Set_Exit_Status (Ada.Command_Line.Failure);
Put_Line ("Version Missmatch : Code=""" & Spawn_Manager.Version ... |
2,306 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45262b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c45262b.ada
-- C45262B.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimi... |
2,307 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | SVD2ada/svd/stm32_svd-tamp.ads | pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32G474xx.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.TAMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- control register 1
type CR1_Register... |
2,308 | ada | 24 | svn2github/matreshka | source/xml/sax/matreshka-internals-xml-notation_tables.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,309 | ada | 3 | charlie5/aIDE | source/program_structure/adam-program_unit.ads | <filename>source/program_structure/adam-program_unit.ads
with
Ada.Containers.Vectors;
package AdaM.program_Unit
is
type Item is interface;
-- View
--
type View is access all Item'Class;
-- Vector
--
package Vectors is new ada.Containers.Vectors (Positive, View);
subtype Vector is ... |
2,310 | ada | 0 | persan/dds-requestreply | src/dds-request_reply-replier-impl.adb | pragma Ada_2012;
package body DDS.Request_Reply.Replier.Impl is
-----------------------
-- Wait_For_Requests --
-----------------------
procedure Wait_For_Requests
(Self : not null access Ref;
Min_Count : DDS.Integer;
Max_Wait : DDS.Duration_T)
is
begin
Self.Wait_For_An... |
2,311 | ada | 0 | My-Colaborations/ada-ado | regtests/ado-objects-tests.adb | -----------------------------------------------------------------------
-- ADO Objects Tests -- Tests for ADO.Objects
-- Copyright (C) 2011 - 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 L... |
2,312 | ada | 0 | HeisenbugLtd/cache-sim | src/caches-simple_caches.adb | ------------------------------------------------------------------------------
-- Copyright (C) 2012-2020 by Heisenbug Ltd.
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the LICE... |
2,313 | ada | 3 | onox/orka-demo | src/orka_demo.adb | with Ada.Exceptions;
with Ada.Numerics.Generic_Elementary_Functions;
with Ada.Real_Time;
with Ada.Text_IO;
with GL.Buffers;
with GL.Low_Level.Enums;
with GL.Objects.Textures;
with GL.Pixels;
with GL.Toggles;
with GL.Types;
with Orka.Behaviors;
with Orka.Cameras.Rotate_Around_Cameras;
with Orka.Contexts;
with Orka.Deb... |
2,314 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Greatest-element-of-a-list/Ada/greatest-element-of-a-list-1.ada | <gh_stars>1-10
with Ada.Text_Io;
procedure Max_Test isco
-- substitute any array type with a scalar element
type Flt_Array is array (Natural range <>) of Float;
-- Create an exception for the case of an empty array
Empty_Array : Exception;
function Max(Item : Flt_Array) return Float is
Max_Eleme... |
2,315 | ada | 7,053 | Elon143/Amass | resources/scripts/cert/certspotter.ads | -- Copyright 2020-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")
local json = require("json")
name = "CertSpotter"
type = "cert"
function start()
set_rate_limit(2)
end
function vertical(ctx, domain)
... |
2,316 | ada | 7 | stcarrez/mat | mat/src/memory/mat-memory-probes.ads | -----------------------------------------------------------------------
-- mat-memory-probes - Definition and Analysis of memory events
-- Copyright (C) 2014, 2015, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
2,317 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/100_packages/list.ads | <filename>courses/fundamentals_of_ada/labs/prompts/100_packages/list.ads<gh_stars>10-100
package List is
pragma Elaborate_Body;
-- Create subprogram specs for adding to and removing from a list,
-- as well as return length of list and print the list
end List;
|
2,318 | ada | 24 | svn2github/matreshka | tools/documentation_generator/documentation_generator-database.adb | <reponame>svn2github/matreshka<filename>tools/documentation_generator/documentation_generator-database.adb<gh_stars>10-100
with Ada.Containers.Hashed_Maps;
with Ada.Containers.Ordered_Sets;
with Ada.Strings.Wide_Fixed;
with Ada.Strings.Wide_Hash;
with Ada.Unchecked_Conversion;
with Asis.Compilation_Units;
with Asis.De... |
2,319 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/opt2.ads | <reponame>best08618/asylo<gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O2" }
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Interfaces; use Interfaces;
package Opt2 is
type Arr is array (Unsigned_32 range <>) of Unbounded_String;
end Opt2;
|
2,320 | ada | 12 | jquorning/ada-asf | src/asf-components-widgets-tabs.adb | <reponame>jquorning/ada-asf<gh_stars>10-100
-----------------------------------------------------------------------
-- components-widgets-tabs -- Tab views and tabs
-- Copyright (C) 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
2,321 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/varsize_return_pkg1.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/varsize_return_pkg1.ads
-- { dg-excess-errors "no code generated" }
with Varsize_Return_Pkg2;
generic
type Id_T is range <>;
package Varsize_Return_Pkg1 is
type Variable_Data_T (Fixed : Boolean := False) is
record
case Fixed is
when ... |
2,322 | ada | 33 | ytomino/drake | examples/ucd_simplecasemapping.adb | <gh_stars>10-100
-- convert UCD/UnicodeData.txt (13, 14)
-- bin/ucd_simplecasemapping $UCD/UnicodeData.txt > ../source/strings/a-uscama.ads
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Containers.Ordered_Maps;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Text_IO; use Ada.Text_IO;
procedure ucd_s... |
2,323 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/taft_type2_pkg.ads | package Taft_Type2_Pkg is
type T is private;
function Open return T;
private
type Buffer_T;
type T is access Buffer_T;
end Taft_Type2_Pkg;
|
2,324 | ada | 2,201 | yangyangisyou/GildedRose-Refactoring-Kata | Ada/program.adb | <reponame>yangyangisyou/GildedRose-Refactoring-Kata<gh_stars>1000+
with Ada.Text_IO;
use Ada.Text_IO;
with Items;
use Items;
with Ada.Strings.Unbounded;
use Ada.Strings.Unbounded;
with Gilded_Rose;
use Gilded_Rose;
procedure Program is
Things : Item_Vecs.Vector;
begin
Things.Append(New_Item =>
(Name => To_U... |
2,325 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64005da.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c64005da.ada
-- C64005DA.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
-- unli... |
2,326 | ada | 0 | Sinbad-The-Sailor/Ada-Snake | graphics.adb | <filename>graphics.adb
package body graphics is
--------------------------------------------------------------------------------
procedure Transform_To_Graphical(X_Pos, Y_pos : in Integer; G_X, G_Y : out Integer) is
begin
G_X := X_Pos*Scaling_Factor + 40;
G_Y := Y_Pos*Scaling_Factor + 10;
end Transform_To... |
2,327 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37213k.ada | -- C37213K.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... |
2,328 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/common/s-memset.ads | <reponame>TUM-EI-RCS/StratoX<filename>runtime/ravenscar-sfp-stm32f427/common/s-memset.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS ... |
2,329 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect10.adb | -- { dg-do compile }
-- { dg-options "-w" }
package body Vect10 is
procedure Add_Mul (X : in out Unit; Y, Z : in Unit) is
begin
X := X + Y * Z;
end;
pragma Inline_Always (Add_Mul);
procedure Proc
(F : in Rec_Vector;
First_Index : in Natural;
Last_Index : in Natural;
... |
2,330 | ada | 0 | gonma95/RealTimeSystem_CarDistrations | tools.ads |
with Ada.Real_Time; use Ada.Real_Time;
use type Ada.Real_Time.Time_Span;
package tools is
Big_Bang : constant Ada.Real_Time.Time := Clock;
procedure Current_Time (Origen : Ada.Real_Time.Time);
procedure Print_an_Integer (x: in integer);
procedure Print_a_Float (x : in float);
proced... |
2,331 | ada | 0 | VitalijBondarenko/notifyada | src/notify-notification.ads | <reponame>VitalijBondarenko/notifyada<gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (c) 2014-2021 <NAME> <<EMAIL>> --
-- ... |
2,332 | ada | 1 | shelld3v/Amass | resources/scripts/api/zoomeye.ads | -- Copyright 2017 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "ZoomEye"
type = "api"
function start()
setratelimit(3)
end
function check()
local c
local cfg = datasrc_config()
if cf... |
2,333 | ada | 2 | egustafson/sandbox | Ada/DataStructures/List/generic_list.adb | <reponame>egustafson/sandbox
-- generic_list.adb -*- Ada -*-
--
-- This package defines a generic list and list iterator.
--
-- Author: <NAME>
-- Date: 25 August 1998
--
-- ------------------------------------------------------------
--
-- $Revision$
--
-- $Log$
-- --------------------------------------... |
2,334 | ada | 60 | RREE/ada-util | src/sys/lzma/util-encoders-lzma.adb | <filename>src/sys/lzma/util-encoders-lzma.adb
-----------------------------------------------------------------------
-- util-encoders-lzma -- LZMA compression and decompression
-- Copyright (C) 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
--... |
2,335 | ada | 0 | mlurbe97/ABench2020 | LinearSearch/linear_search.adb | --
-- ABench2020 Benchmark Suite
--
-- Linear Search Program
--
-- Licensed under the MIT License. See LICENSE file in the ABench root
-- directory for license information.
--
-- Uncomment the line below to print the result.
-- with Ada.Text_IO; use Ada.Text_IO;
procedure Linear_Search is
type Vector is array... |
2,336 | ada | 60 | RREE/ada-util | src/base/log/util-log-appenders-formatter.adb | <filename>src/base/log/util-log-appenders-formatter.adb
-----------------------------------------------------------------------
-- util-log-appenders-formatters -- Log appenders
-- Copyright (C) 2001 - 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
2,337 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-tposen.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
2,338 | ada | 33 | ytomino/drake | source/directories/machine-pc-freebsd/s-nadite.adb | with Ada.Exception_Identification.From_Here;
with Ada.Hierarchical_File_Names;
with System.Address_To_Named_Access_Conversions;
with System.Zero_Terminated_Strings;
with C.errno;
with C.stdlib;
with C.unistd;
package body System.Native_Directories.Temporary is
use Ada.Exception_Identification.From_Here;
use type ... |
2,339 | ada | 0 | optikos/oasis | source/nodes/program-nodes-select_statements.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Select_Paths;
with Program.Element_Vectors;
with Program.Elements.Select_Statements;
with Program.... |
2,340 | ada | 1 | charlie5/lace-alire | 3-mid/physics/interface/source/private/box2d/box2d_physics-joint.adb | <reponame>charlie5/lace-alire
with
box2d_c.Binding,
box2d_physics.Object,
c_math_c.Vector_3,
c_math_c.Matrix_4x4,
c_math_c.Conversion,
Swig,
interfaces.C,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body box2d_Physics.Joint
is
use c_math_c.Conversion,... |
2,341 | ada | 0 | xeenta/learning-ada | src/002/person2.adb | package body Person2 is
procedure Set_Name (A_Person : out Person;
Name : in Unbounded_String) is
begin
A_Person.Name := Name;
end Set_Name;
procedure Set_Age (A_Person : out Person;
Her_Age : in Age_Type) is
begin
A_Person.Age := Her_Age;
end ... |
2,342 | ada | 0 | reznikmm/ada-skynet | example/skynet_test.adb | -- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Skynet;
with League.Strings;
with Ada.Wide_Wide_Text_IO;
procedure Skynet_Test is
Options : Skynet.Upload_Options;
Skylink : League.Strings... |
2,343 | ada | 8 | darkestkhan/lumen2 | src/x11/x11.ads |
-- <NAME>, NiEstu, Phoenix AZ, Spring 2010
-- Lumen would not be possible without the support and contributions of a cast
-- of thousands, including and primarily Rod Kay.
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software... |
2,344 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce2109b.ada | <gh_stars>1-10
-- CE2109B.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.... |
2,345 | ada | 33 | ytomino/drake | source/numerics/machine-pc-freebsd/s-llelfu.ads | <reponame>ytomino/drake<filename>source/numerics/machine-pc-freebsd/s-llelfu.ads<gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit specialized for FreeBSD
package System.Long_Long_Elementary_Functions is
pragma Pure;
-- Long_Float
function log (x : Long_Float) return Long_Float
wi... |
2,346 | ada | 0 | faelys/natools | src/natools-string_slices.adb | <gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2013-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --... |
2,347 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c37209b.ada | -- C37209B.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... |
2,348 | ada | 17 | jrmarino/ravensource | bucket_D7/gprbuild/patches/patch-src_gprlib.adb | --- src/gprlib.adb.orig 2021-05-19 05:22:13 UTC
+++ src/gprlib.adb
@@ -745,9 +745,6 @@ procedure Gprlib is
for Dir of Imported_Library_Directories loop
Library_Switches_Table.Append ("-L" & Dir);
- if Path_Option /= null then
- Add_Rpath (Dir);
- end if;
end loop;
... |
2,349 | ada | 229 | joshuawalcher/dockerfile-boilerplates | ada/src/main.ads | with Text_IO,ada.Text_IO;
use Text_IO,ada.Text_IO;
procedure Adadocker is
begin
Put_line("******************************");
New_Line(2);
Put_line("Ada running inside docker.");
New_Line(2);
Put_line("******************************");
end Adadocker; |
2,350 | ada | 0 | AntonMeep/system_random | src/system_random.ads | with Interfaces; use Interfaces;
with Interfaces.C; use Interfaces.C;
generic
type Element is mod <>;
-- ELement type, must be mod 2**8, i.e. represent a byte
type Index is range <>;
-- Index type
type Element_Array is array (Index range <>) of aliased Element;
-- An array of aliased Elements
... |
2,351 | ada | 0 | byllgrim/iictl | srv_conn.adb | -- See LICENSE file for cc0 license details
with Ada.Directories;
with Ada.Exceptions; use Ada.Exceptions; -- TODO remove
with Ada.Strings;
with Ada.Strings.Maps.Constants;
with Ada.Strings.Unbounded; -- TODO needed?
with Ada.Text_Io;
with Iictl; -- TODO unecessary?
with Posix.Io;
with Posix.Process_Identification;
wit... |
2,352 | ada | 1 | TNO/Dependency_Graph_Extractor-Ada | tests/syntax_examples/src/tagged_subprogram_calls.adb | <reponame>TNO/Dependency_Graph_Extractor-Ada<gh_stars>1-10
with Ada.Text_IO;
package body Tagged_Subprogram_Calls is
package body Inner is
procedure P(A : E) is
begin
null;
end P;
end Inner;
procedure Test(Param : Inner.E) is
type F is new Inner.E range Param .. Inn... |
2,353 | ada | 1 | ShiroixD/pag_zad_2 | thirdparty/glut/progs/ada/cone_procs.adb | <filename>thirdparty/glut/progs/ada/cone_procs.adb
--
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all c... |
2,354 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__Ada_units/ada05-ok-1.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
2,355 | ada | 5 | docandrew/troodon | src/compositor.adb | with Ada.Containers.Doubly_Linked_Lists;
with Ada.Text_IO;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
with Interfaces.C; use Interfaces.C;
with System;
with GL;
with GLext;
with GLX;
with GLXext;
with X11;
with XLib;
with xcb; use xcb;
with xcb_xfixes;
with xcb_shape;
with xproto; use xproto;
wit... |
2,356 | ada | 81 | My-Colaborations/ada-awa | awa/regtests/awa_test_app.ads | -----------------------------------------------------------------------
-- awa_test_app -
-- 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 with the License.
-- You may obtain a copy o... |
2,357 | ada | 33 | ytomino/drake | source/directories/machine-w64-mingw32/s-nadivo.adb | with Ada.Exception_Identification.From_Here;
with System.Address_To_Named_Access_Conversions;
with System.Standard_Allocators;
with System.Storage_Elements;
with System.Zero_Terminated_WStrings;
with C.string;
with C.winerror;
package body System.Native_Directories.Volumes is
use Ada.Exception_Identification.From_He... |
2,358 | ada | 0 | mstewartgallus/linted | src/ada-xcb/src/xcb-xkb.ads | <filename>src/ada-xcb/src/xcb-xkb.ads
-- Copyright 2015 <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 required b... |
2,359 | ada | 4 | DNSCatcher/DNSCatcher | src/dnscatcher/utils/dnscatcher-utils.ads | <filename>src/dnscatcher/utils/dnscatcher-utils.ads
-- Copyright 2019 <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 ... |
2,360 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-stwise.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
2,361 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/broxton/hw-gfx-gma-ddi_phy.ads | <reponame>fabiojna02/OpenCellular
--
-- Copyright (C) 2017 secunet Security Networks AG
--
-- 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 2 of the License, or
-- (at your opti... |
2,362 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/g-catiio.ads | <filename>tools-src/gnu/gcc/gcc/ada/g-catiio.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
2,363 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/generic_protected.adb | --
-- <NAME>, Australia, 2013
--
package body Generic_Protected is
protected body Monitor is
function Read return Element is (Value);
procedure Write (E : Element) is
begin
Value := E;
Touched := True;
end Write;
entry Wait_for_Update (E : out Element) when Tou... |
2,364 | ada | 7,053 | Elon143/Amass | resources/scripts/api/anubisdb.ads | <gh_stars>1000+
-- 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 = "AnubisDB"
type = "api"
function start()
set_rate_limit(1)
end
function vertical(ctx, domain)
scrape(ctx, {['url']=build_url(domain)})
end
f... |
2,365 | ada | 76 | yannickmoy/SPARKNaCl | tests/secretbox7.adb | <gh_stars>10-100
with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Core;
with SPARKNaCl.Secretbox; use SPARKNaCl.Secretbox;
with SPARKNaCl.Stream;
with Random;
with Ada.Text_IO; use Ada.Text_IO;
with Interfaces; use Interfaces;
procedure Secretbox7
is
RK : Bytes_32;
K : Core.Salsa20_... |
2,366 | ada | 0 | reznikmm/gela | source/oasis/program-elements-array_component_associations.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Element_Vectors;
with Program.Elements.Associations;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
package Program.Elements.Array_Compone... |
2,367 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/t1.adb | <gh_stars>1-10
-- { dg-do run }
with Init1; use Init1;
with Text_IO; use Text_IO;
with Dump;
procedure T1 is
Local_R1 : R1;
Local_R2 : R2;
begin
Local_R1.I := My_R1.I + 1;
Put ("Local_R1 :");
Dump (Local_R1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "Local_R1 : 79 56 34 12.*\... |
2,368 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23_pkg2.ads | <reponame>best08618/asylo
with Array23_Pkg3;
package Array23_Pkg2 is
C1 : Natural := Array23_Pkg3.C0;
type Enum is (Zero, One, Two);
subtype Index is Enum range One .. Enum'val(C1);
end Array23_Pkg2;
|
2,369 | ada | 1 | ShiroixD/pag_zad_2 | thirdparty/glut/progs/ada/dof_procs.adb | <filename>thirdparty/glut/progs/ada/dof_procs.adb
--
-- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc.
-- ALL RIGHTS RESERVED
-- Permission to use, copy, modify, and distribute this software for
-- any purpose and without fee is hereby granted, provided that the above
-- copyright notice appear in all co... |
2,370 | ada | 0 | Letractively/ada-gen | src/gen-commands-templates.ads | <gh_stars>0
-----------------------------------------------------------------------
-- gen-commands-templates -- Template based command
-- Copyright (C) 2011, 2013, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
2,371 | ada | 81 | twdroeger/ada-awa | awa/plugins/awa-settings/regtests/awa-settings-modules-tests.adb | <filename>awa/plugins/awa-settings/regtests/awa-settings-modules-tests.adb
-----------------------------------------------------------------------
-- awa-settings-modules-tests -- Unit tests for settings module
-- Copyright (C) 2013, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License... |
2,372 | ada | 15 | mgrojo/adalib | ada-strings-wide_fixed.ads | <reponame>mgrojo/adalib
-- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- 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... |
2,373 | ada | 5 | jhumphry/SPARK_SipHash | src/halfsiphash.adb | -- HalfSipHash
-- A 32-bit friendly version of SipHash, the algorithm described in
-- "SipHash: a fast short-input PRF"
-- by <NAME> and <NAME>
-- Half Siphash was designed by <NAME> but is not yet documented
-- in a paper. This implementation is based on the reference code.
-- Copyright (c) 2016, <NAME> - see LICENS... |
2,374 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-storages/src/model/awa-storages-beans-factories.ads | -----------------------------------------------------------------------
-- awa-storages-beans-factories -- Factories for storage beans
-- 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 compl... |
2,375 | ada | 1 | faelys/natools-web | tests/common-pages.adb | <filename>tests/common-pages.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, <NAME> --
-- --
-- Permission to use, copy, modify, and dis... |
2,376 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_warn.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,377 | ada | 3 | venusing1998/hello-world | a/ada.ada | <gh_stars>1-10
with Text_IO;
procedure Hello_World is
begin
Text_IO.Put_line("Hello World!");
end Hello_World;
|
2,378 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Seven-sided-dice-from-five-sided-dice/Ada/seven-sided-dice-from-five-sided-dice-1.ada | <reponame>LaudateCorpus1/RosettaCodeData
package Random_57 is
type Mod_7 is mod 7;
function Random7 return Mod_7;
-- a "fast" implementation, minimazing the calls to the Random5 generator
function Simple_Random7 return Mod_7;
-- a simple implementation
end Random_57;
|
2,379 | ada | 2 | charlie5/cBound | tier-1/xcb/source/thin/xcb-xcb_get_window_attributes_reply_t.ads | -- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with swig;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_get_window_attributes_reply_t is
-- Item
--
type Item is record
response_type : aliased Interfaces.Unsigned_8;
backing_store ... |
2,380 | ada | 24 | svn2github/matreshka | source/xml/catalogs/matreshka-xml_catalogs-normalization.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
2,381 | ada | 60 | Letractively/ada-util | testutil/ahven/ahven.ads | <filename>testutil/ahven/ahven.ads
-- Ahven Unit Test Library
--
-- Copyright (c) 2007-2009 <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and 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 ... |
2,382 | ada | 0 | My-Colaborations/ada-ado | src/ado-dialects.adb | -----------------------------------------------------------------------
-- ADO Dialects -- Driver support for basic SQL Generation
-- Copyright (C) 2010, 2011, 2012, 2015, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this ... |
2,383 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt56.ads | package Opt56 is
type Vector is array (Positive range <>) of Float;
function F (Values : Vector) return Boolean;
end Opt56;
|
2,384 | ada | 1 | zrmyers/VulkanAda | test/vulkan-math-vec2-test.adb | --------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 <NAME>
--
-- 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 r... |
2,385 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-implementation-permissions.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
2,386 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_modular_type_definitions.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Modular_Type_Definitions;
with Program.Element_Visitors;
package Program.Nodes.Formal_Modu... |
2,387 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_prag.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
2,388 | ada | 0 | mspiegel/ada-initiative | hello-world/hello_world.adb | <reponame>mspiegel/ada-initiative<gh_stars>0
with Ada.Text_IO;
procedure Hello_World is
begin
Ada.Text_IO.Put_Line("Hello world!");
end Hello_World;
|
2,389 | ada | 10 | seeduvax/AcrobatomaticBuildSystem | sampleprj/adalib/src/plop.adb | <reponame>seeduvax/AcrobatomaticBuildSystem
package body Plop is
function Ping(i: in Integer) return Integer is
begin
return i+1;
end Ping;
end Plop;
|
2,390 | ada | 9 | AntonMeep/parse_args | src/parse_args-generic_options.ads | <filename>src/parse_args-generic_options.ads
-- parse_args-generic_discrete_option.ads
-- A simple command line option parser
-- Copyright (c) 2015, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyrig... |
2,391 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dse_step.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dse_step.adb<gh_stars>1-10
package body Dse_Step is
procedure Do_Step (This : in out Counter) is
begin
This.Value := This.Value + This.Step;
end;
procedure Step_From (Start : in My_Counter) is
Lc : My_Counter := Start;
begin
while ... |
2,392 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Metronome/Ada/metronome.ada | with Ada.Text_IO; use Ada.Text_IO;
--This package is for the delay.
with Ada.Calendar; use Ada.Calendar;
--This package adds sound
with Ada.Characters.Latin_1;
procedure Main is
begin
Put_Line ("Hello, this is 60 BPM");
loop
Ada.Text_IO.Put (Ada.Characters.Latin_1.BEL);
delay 0.9; --Delay ... |
2,393 | ada | 33 | ytomino/drake | source/strings/a-snmgca.ads | pragma License (Unrestricted);
-- implementation unit
package Ada.Strings.Naked_Maps.General_Category is
pragma Preelaborate;
-- General_Category=Unassigned (Cn)
function Unassigned return not null Character_Set_Access;
function All_Unassigned return not null Character_Set_Access;
-- Contains Unas... |
2,394 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/String-interpolation--included-/Ada/string-interpolation--included--2.ada | <filename>Task/String-interpolation--included-/Ada/string-interpolation--included--2.ada
Put_Line ("Mary had a " & New_Str & " lamb.");
|
2,395 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-audio-listener.ads | --//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- 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 use of this... |
2,396 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders-aes.ads | -----------------------------------------------------------------------
-- util-encoders-aes -- AES encryption and decryption
-- Copyright (C) 2017, 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 complian... |
2,397 | ada | 0 | Letractively/ada-util | src/util-properties.ads | <filename>src/util-properties.ads
-----------------------------------------------------------------------
-- properties -- Generic name/value property management
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0... |
2,398 | ada | 4 | reznikmm/adaside | sources/ada_pretty-joins.adb | <filename>sources/ada_pretty-joins.adb<gh_stars>1-10
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Ada_Pretty.Joins is
--------------
-- Document --
--------------
overri... |
2,399 | ada | 9 | SALLYPEMDAS/DW1000 | bsp-examples/evb1000/stm32-afio.ads | <filename>bsp-examples/evb1000/stm32-afio.ads
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.AFIO is
pragma Preelaborate;
---------------
-- Registers --
---------------
-------------------
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.