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 |
|---|---|---|---|---|---|
8,300 | ada | 2 | charlie5/cBound | tier-1/xcb/source/thin/xcb-xcb_charinfo_t.ads | <reponame>charlie5/cBound<filename>tier-1/xcb/source/thin/xcb-xcb_charinfo_t.ads
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_charinfo_t is
-- Item
--
type Item is record
left_side_bearing : aliased... |
8,301 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c87b31a.ada | -- C87B31A.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... |
8,302 | ada | 20 | charlie5/lace | 1-base/lace/applet/demo/event/distributed/source/chat-client-local.ads | with
lace.Any;
private
with
lace.make_Subject,
lace.make_Observer,
ada.Strings.unbounded;
package chat.Client.local
--
-- Provides a local client.
-- Names must be unique.
--
is
type Item is limited new lace.Any.limited_item
and chat.Client .item with private;
ty... |
8,303 | ada | 4 | faelys/gela-asis | source/libgela/gela-embeded_links-caches.ads | <reponame>faelys/gela-asis<filename>source/libgela/gela-embeded_links-caches.ads<gh_stars>1-10
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compi... |
8,304 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/drivers/stm32gd-drivers-cdc.adb | with STM32_SVD; use STM32_SVD;
with STM32GD.USB; use STM32GD.USB;
with Ada.Text_IO;
package body STM32GD.Drivers.CDC is
-- TODO: Add functions to read/write data from/to the buffer table
-- TODO: Add record types for control transfers
procedure EP0_Setup;
procedure EP0_Out;
procedure EP0_In;
pro... |
8,305 | ada | 0 | hgrodriguez/rp2040_zfp | src/runtime.ads | with RP.ROM;
pragma Unreferenced (RP.ROM);
package Runtime is
-- crt0.S expects this symbol to exist. It is called after main returns.
procedure OS_Exit (Status : Integer)
with Export => True,
Convention => C,
External_Name => "exit";
procedure HardFault_Handler
w... |
8,306 | ada | 0 | strenkml/EE368 | memsim-master/src/memory-arbiter.ads | <gh_stars>0
with Memory.Container; use Memory.Container;
with Ada.Containers.Vectors;
package Memory.Arbiter is
type Arbiter_Type is new Container_Type with private;
type Arbiter_Pointer is access all Arbiter_Type'Class;
function Create_Arbiter(next : access Memory_Type'Class)
r... |
8,307 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Swarm/swarm_structures.ads | <reponame>ForYouEyesOnly/Space-Convoy
--
-- Jan & <NAME>, Australia, 2013
--
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Real_Time; use Ada.Real_Time;
with Ada.Task_Identification; use Ada.Task_Identification;
with Ada.Unchecked_Deallocation; use Ada;
with Barrier_Type; ... |
8,308 | ada | 3 | jwarwick/aoc_2020 | day03/src/day.adb | -- AoC 2020, Day 3
with Ada.Text_IO;
package body Day is
package TIO renames Ada.Text_IO;
function "<"(left, right : in Position) return Boolean is
begin
if left.y < right.y then
return true;
elsif left.y = right.y and left.x < right.x then
return true;
else
return false;
end if... |
8,309 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Longest-common-subsequence/Ada/longest-common-subsequence-1.ada | with Ada.Text_IO; use Ada.Text_IO;
procedure Test_LCS is
function LCS (A, B : String) return String is
begin
if A'Length = 0 or else B'Length = 0 then
return "";
elsif A (A'Last) = B (B'Last) then
return LCS (A (A'First..A'Last - 1), B (B'First..B'Last - 1)) & A (A'Last);
els... |
8,310 | ada | 0 | jquorning/CELLE | source/sessions.ads | --
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
-------------------------------------------... |
8,311 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/renderer/opengl-culler.adb | package body openGL.Culler
is
procedure Viewer_is (Self : in out Item'Class; Now : in Renderer.lean.view)
is
begin
Self.Viewer := Now.all'Access;
end Viewer_is;
function Viewer (Self : in Item'Class) return Renderer.lean.view
is
begin
return Self.Viewer;
end Viewer;
end openGL.... |
8,312 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-use_cases.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
8,313 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-finroo.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/s-finroo.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,314 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/sub_derived_types.ads | package Sub_Derived_Types is
subtype smallSub is Integer range -10 .. 10;
type smallDerived is new Integer range -10 .. 10;
type smallRange is range -10 .. 10;
subtype bigSub is Integer;
type bigDerived is new Integer;
type bigRange is range -2**10 .. 2**10;
end Sub_Derived_Types;
|
8,315 | ada | 0 | Letractively/ada-gen | src/gnat/output.ads | <filename>src/gnat/output.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,316 | ada | 0 | mgrojo/lsystem-editor | src/view/lse-view-view.adb | <filename>src/view/lse-view-view.adb<gh_stars>0
-------------------------------------------------------------------------------
-- LSE -- L-System Editor
-- Author: Heziode
--
-- License:
-- MIT License
--
-- Copyright (c) 2018 <NAME> (Heziode) <<EMAIL>>
--
-- Permission is hereby granted, free of charge, to any ... |
8,317 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | common/mspgd.adb | with System.Machine_Code; use System.Machine_Code;
package body MSPGD is
procedure Standby is
begin
Asm ("bis.b #0xD8, SR", Volatile => True);
end Standby;
procedure Stop is
begin
Asm ("bis.b #0xF8, SR", Volatile => True);
end Stop;
procedure Reset is
begin
Asm ("mov.b #0, ... |
8,318 | ada | 17 | jrmarino/ravensource | bucket_34/gnatstudio/patches/patch-kernel_src_gtkada-search__entry.ads | <filename>bucket_34/gnatstudio/patches/patch-kernel_src_gtkada-search__entry.ads<gh_stars>10-100
--- kernel/src/gtkada-search_entry.ads.orig 2021-06-15 05:19:41 UTC
+++ kernel/src/gtkada-search_entry.ads
@@ -35,7 +35,7 @@ package Gtkada.Search_Entry is
function Get_Icon_Position
(Self : access Gtkada_Sear... |
8,319 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c91004b.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c91004b.ada
-- C91004B.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... |
8,320 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr35.adb | -- { dg-do compile }
package body Discr35 is
procedure Proc1 is
R : Rec2 := Null_Rec2;
begin
null;
end;
procedure Proc2 is
R : Rec2;
begin
R := Null_Rec2;
end;
end Discr35;
|
8,321 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/solar_system/190_exceptions/answers/solar_system.adb | <filename>courses/fundamentals_of_ada/labs/solar_system/190_exceptions/answers/solar_system.adb<gh_stars>10-100
-----------------------------------------------------------------------
-- Ada Labs --
-- ... |
8,322 | ada | 0 | rtoal/enhanced-dining-philosophers | ada/host.ads | <reponame>rtoal/enhanced-dining-philosophers<filename>ada/host.ads
------------------------------------------------------------------------------
-- host.ads
--
-- This package defines the task for the host. The host allows the philoso-
-- phers to enter and leave the restaurant. It also keeps track ... |
8,323 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstminiobject_h.ads | <filename>src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstminiobject_h.ads
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with glib;
with System;
-- with GStreamer.GST_Low_Level.glib_2_0_gobject_gparam_h;
with Int... |
8,324 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Generate-lower-case-ASCII-alphabet/Ada/generate-lower-case-ascii-alphabet-3.ada | B : Arr_Type (1 .. 26);
begin
B(B'First) := 'a';
for I in B'First .. B'Last-1 loop
B(I+1) := Lower_Case'Succ(B(I));
end loop; -- now all the B(I) are different
|
8,325 | ada | 0 | bemafred/hello-world | ada/hello.adb | <reponame>bemafred/hello-world
with Ada.Text_IO; use Ada.Text_IO;
procedure Hello is
begin
Put_Line ("ADA says: Hello, world!");
end Hello;
|
8,326 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-network-http.adb | <reponame>Fabien-Chouteau/ASFML
--//////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 <NAME> (<EMAIL>)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be ... |
8,327 | ada | 7 | stcarrez/mat | mat/src/gtk/mat-events-gtkmat.ads | <filename>mat/src/gtk/mat-events-gtkmat.ads
-----------------------------------------------------------------------
-- gprofiler-events - Profiler Events Description
-- Copyright (C) 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
8,328 | ada | 0 | leomlr/sudoku_ada-jewl | src/JEWL/jewl-windows.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- J E W L . W I N D O W S --
-- ... |
8,329 | ada | 52 | onox/orka | orka/src/orka/interface/orka-smart_pointers.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 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
-... |
8,330 | ada | 20 | HeisenbugLtd/spat | src/core/spat-spark_info.adb | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- 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... |
8,331 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Terminal-control-Inverse-video/Ada/terminal-control-inverse-video.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO; use Ada.Text_IO;
procedure Reverse_Video is
Rev_Video : String := Ascii.ESC & "[7m";
Norm_Video : String := Ascii.ESC & "[m";
begin
Put (Rev_Video & "Reversed");
Put (Norm_Video & " Normal");
end Reverse_Video;
|
8,332 | ada | 18 | kraileth/ravenadm | src/portscan-log.adb | <reponame>kraileth/ravenadm<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Ada.Calendar.Arithmetic;
with Ada.Calendar.Formatting;
with Ada.Characters.Latin_1;
with Ada.Directories;
with File_Operations;
with Parameters;
with Utilities;
pac... |
8,333 | ada | 3 | spr93/whitakers-words | src/words_engine/words_engine-word_package.adb | <gh_stars>1-10
-- WORDS, a Latin dictionary, by <NAME> (USAF, Retired)
--
-- Copyright <NAME> (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is Copyrighted
-- (c... |
8,334 | ada | 0 | optikos/oasis | source/contexts/plain/program-symbols-tables.adb | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Strings.Wide_Wide_Hash;
with Ada.Wide_Wide_Characters.Handling;
package body Program.Symbols.Tables is
----------... |
8,335 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/tc_u2249/sam_svd-tc.ads | <gh_stars>1-10
-- ============================================================================
-- Atmel Microcontroller Software Support
-- ============================================================================
-- Copyright (c) 2017 Atmel Corporation,
-- a wholly owned subsidiary of Microchip Technology Inc.... |
8,336 | ada | 80 | thindil/steamsky | tests/crew-member_data_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 Crew.Mob_Record_Test_Data.Mob_Record_T... |
8,337 | ada | 33 | ytomino/drake | source/required/s-pack14.ads | <filename>source/required/s-pack14.ads
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_14 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_14 is mod 2 ** 14;
for Bits_14'S... |
8,338 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/s-thread.ads | <reponame>brucegua/moocos
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,339 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/physics-joint.ads | with
physics.Object,
lace.Any;
package physics.Joint
--
-- Provides an interface for physics joints.
--
is
type Item is limited interface
and lace.Any.limited_item;
type View is access all Item'Class;
use Math;
type Degree_of_freedom is range 1 .. 6;
procedure destruct ... |
8,340 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-evsys.ads | <reponame>Fabien-Chouteau/samd51-hal
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package SAM_SVD.EVSYS is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Co... |
8,341 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_body_stub.adb | package body function_body_stub is
function Inner return integer is separate;
end function_body_stub;
|
8,342 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements.ads |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistributio... |
8,343 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sizetype3.adb | -- { dg-do compile }
-- { dg-options "-O" }
with Sizetype3_Pkg; use Sizetype3_Pkg;
package body Sizetype3 is
procedure Handle_Enum_Values is
Values : constant List := F;
L : Values_Array_Access;
begin
L := new Values_Array (1 .. Values'Length);
end Handle_Enum_Values;
procedure Simplif... |
8,344 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-boarop.ads | <reponame>brucegua/moocos
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
8,345 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simple_array_expressions.adb | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/simple_array_expressions.adb
-- Demonstrates:
-- Declaring arrays
-- Indexted Component
-- Slice
procedure simple_array_expressions is
type Arr_Type is array (Integer range <>) of Integer;
Arr1 : Arr_Type ( 1 .. 26);
... |
8,346 | ada | 1 | f110/wing | third_party/universal-ctags/ctags/Units/parser-ada.r/ada-separate.d/input.adb | -- Taken from #2943 submitted by @koenmeersman
with Ada.Text_IO;
separate (Buffer);
package body Test is
procedure Inner is separate;
begin
null;
end Test;
|
8,347 | ada | 0 | sebsgit/textproc | src/histogramdescriptor.adb | with Ada.Numerics.Generic_Elementary_Functions;
with PixelArray;
with Histogram;
with HistogramGenerator;
with ImageRegions;
use PixelArray;
use ImageRegions;
package body HistogramDescriptor is
package FloatFunctions is new Ada.Numerics.Generic_Elementary_Functions(Float);
function create(image: PixelArray.... |
8,348 | ada | 7,053 | Elon143/Amass | resources/scripts/api/dnslytics.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 json = require("json")
name = "DNSlytics"
type = "api"
function start()
set_rate_limit(1)
end
function check()
local c
local cfg = datasrc_config()
i... |
8,349 | ada | 1 | alvaromb/Compilemon | src/semantica-ctipus.adb | with U_Lexica;
use U_Lexica;
package body Semantica.Ctipus is
procedure Mt_Atom
(L, C : in Natural;
A : out Atribut) is
begin
A := (Atom, L, C);
end Mt_Atom;
procedure Mt_Identificador
(L, C : in Natural;
S : in String;
A : out Atribut) is
Id : Id_Nom;
begin
... |
8,350 | ada | 0 | Letractively/ada-util | src/util-beans-basic-lists.adb | -----------------------------------------------------------------------
-- Util.Beans.Basic.Lists -- List bean given access to a vector
-- Copyright (C) 2011, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in comp... |
8,351 | ada | 11 | psyomn/ash | src/http_status.ads | <gh_stars>10-100
-- Copyright 2019 <NAME> (psyomn)
--
-- 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 by applic... |
8,352 | ada | 33 | ytomino/drake | source/required/s-pack24.ads | pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Packed_Arrays;
package System.Pack_24 is
pragma Preelaborate;
-- It can not be Pure, subprograms would become __attribute__((const)).
type Bits_24 is mod 2 ** 24;
for Bits_24'Size use 24;
package Indexing is new... |
8,353 | ada | 2 | egustafson/sandbox | Ada/DataStructures/Containers/generic_stack.adb | <reponame>egustafson/sandbox
with Ada.Unchecked_Deallocation;
package body Generic_Stack is
procedure Free is new Ada.Unchecked_Deallocation( Stack_Node,
Stack_Node_Ptr );
------------------------------------------------------------
procedure Push( Stac... |
8,354 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c93005b.ada | <reponame>best08618/asylo
-- C93005B.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 contai... |
8,355 | ada | 1 | michalkonecny/polypaver | tools/SPARK2005/packages/polypaver/pp_f_rounded.adb | <gh_stars>1-10
-- This file cannot be processed by the SPARK Examiner.
with Ada.Numerics,
Ada.Numerics.Elementary_Functions;
package body PP_F_Rounded is
function Plus (Prec : Integer; X,Y : Float) return Float is
begin
return X+Y;
end Plus;
function Minus (Prec : Integer; X,Y : Float) return F... |
8,356 | ada | 19 | pmderodat/ada-toml | tests/api/compare/main.adb | <reponame>pmderodat/ada-toml
with Ada.Text_IO;
with TOML;
procedure Main is
procedure Assert (Predicate : Boolean; Message : String);
-- If Predicate is false, emit the given error Message
procedure Assert_Eq (Left, Right : TOML.TOML_Value; Message : String);
-- Shortcut for Assert (TOML.Equals (Left, ... |
8,357 | ada | 1 | xgqt/gtkdemos | GTK3/ada/helloworld/button_click.adb | <reponame>xgqt/gtkdemos
with Gtk.Button; use Gtk.Button;
with Gtk.Main;
package body button_click is
procedure button_clicked (Self : access Gtk_Button_Record'Class) is
begin
Gtk.Main.Main_Quit;
end button_clicked;
end button_click;
|
8,358 | ada | 0 | yannickmoy/SPARKNaCl | tests/box.adb | with SPARKNaCl; use SPARKNaCl;
with SPARKNaCl.Cryptobox; use SPARKNaCl.Cryptobox;
with SPARKNaCl.Debug; use SPARKNaCl.Debug;
with SPARKNaCl.Stream;
with Ada.Text_IO; use Ada.Text_IO;
procedure Box
is
AlicePK : constant Public_Key :=
Construct ((16#85#, 16#20#, 16#f0#, 16#09#,
... |
8,359 | ada | 4 | reznikmm/jupyter | sources/jupyter/jupyter-start_kernel.ads | -- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with League.Strings;
with Jupyter.Kernels;
procedure Jupyter.Start_Kernel
(Kernel : in out Jupyter.Kernels.Kernel'Class;
File : League.Strings.Universal_String... |
8,360 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/g-altive.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,361 | ada | 6 | bosepchuk/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf51/nrf51_svd-gpiote.ads | <reponame>bosepchuk/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 ... |
8,362 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/model/opengl-model-billboard.ads | package openGL.Model.billboard
--
-- Models a rectangle capable of displaying an image.
--
is
type Item is abstract new Model.item with private;
type Plane is (xy, xz, yz);
--------------
--- Attributes
--
function Width (Self : in Item) return Real;
function Height (Self : in Item) return Rea... |
8,363 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Animate-a-pendulum/Ada/animate-a-pendulum-2.ada | with Ada.Numerics.Generic_Elementary_Functions;
package body Pendulums is
package Math is new Ada.Numerics.Generic_Elementary_Functions (Float_Type);
function New_Pendulum (Length : Float_Type;
Theta0 : Float_Type) return Pendulum is
Result : Pendulum;
begin
Result.Length... |
8,364 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/egl/opengl-surface.adb | <reponame>charlie5/lace<filename>3-mid/opengl/source/platform/egl/opengl-surface.adb
with
opengl.surface_Profile.privvy,
opengl.Display .privvy,
eGL.Binding,
interfaces.c.Strings,
System;
package body opengl.Surface
is
use eGL.Binding;
-- Forge
--
procedure define (Self... |
8,365 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/makeutl.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,366 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/osint-m.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
8,367 | ada | 7 | stcarrez/mat | mat/src/mat-targets-probes.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- mat-targets-probes - Definition and Analysis of process start events
-- Copyright (C) 2014, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
8,368 | ada | 15 | AdaCore/training_material | courses/spark_for_ada_programmers/labs/source/060_contracts/longest_common_prefix.ads | package Longest_Common_Prefix
with SPARK_Mode => On,
Initializes => A
is
type Text is array (Positive range <>) of Integer;
A : Text (1 .. 1000) := (others => 0);
function LCP (X, Y : Positive) return Natural;
end Longest_Common_Prefix;
|
8,369 | ada | 0 | reznikmm/markdown | sources/md/markdown-paragraphs.ads | <reponame>reznikmm/markdown<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Tags;
with League.String_Vectors;
with Markdown.Blocks;
limited with Markdown.Visitors;
package Markdown.Paragraphs i... |
8,370 | ada | 33 | ytomino/drake | source/textio/a-titeco.ads | <reponame>ytomino/drake<filename>source/textio/a-titeco.ads
pragma License (Unrestricted);
-- extended unit
with Ada.Colors;
private with System.Native_Text_IO.Terminal_Colors;
package Ada.Text_IO.Terminal.Colors is
-- Additional terminal-color handling subprograms.
type Color is private;
function To_Color... |
8,371 | ada | 0 | fintatarta/protypo | src/Internals/protypo-parsing.adb | <reponame>fintatarta/protypo<gh_stars>0
pragma Ada_2012;
pragma Warnings (Off, "no entities");
with Ada.Text_Io; use Ada.Text_Io;
with Ada.Exceptions;
with Protypo.Tokens; use Protypo.Tokens;
with Readable_Sequences.Generic_Sequences; use Readable_Sequences;
package... |
8,372 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2012 <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://www.apache.org/licenses/LICENSE-2.0... |
8,373 | ada | 3 | jwarwick/aoc_2020 | day02/src/main.adb | -- AOC 2020, Day 2
with Ada.Text_IO; use Ada.Text_IO;
with Day; use Day;
with Ada.Containers; use Ada.Containers;
procedure main is
passwords : constant Password_Vector.Vector := load_passwords("input.txt");
count : constant Count_Type := count_valid(passwords);
positions : constant Count_Type := count_valid_pos... |
8,374 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/CSV-data-manipulation/Ada/csv-data-manipulation-1.ada | <gh_stars>1-10
package CSV is
type Row(<>) is tagged private;
function Line(S: String; Separator: Character := ',') return Row;
function Next(R: in out Row) return Boolean;
-- if there is still an item in R, Next advances to it and returns True
function Item(R: Row) return String;
-- after calli... |
8,375 | ada | 4 | ddugovic/words | strings_package.adb | with TEXT_IO; use TEXT_IO;
package body STRINGS_PACKAGE is
function MAX(A, B : INTEGER) return INTEGER is
begin
if A >= B then
return A; end if;
return B;
end MAX;
function MIN(A, B : INTEGER) return INTEGER is
begin
if A ... |
8,376 | ada | 0 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt55.adb | -- { dg-do compile }
-- { dg-options "-O" }
package body Opt55 is
function Cond (B : Boolean; If_True, If_False : Date) return Date is
begin
if B then
return If_True;
else
return If_False;
end if;
end;
function F (C : Rec2; B : Boolean) return Date is
... |
8,377 | ada | 33 | ytomino/drake | examples/storagepool.adb | <gh_stars>10-100
with Ada.Unchecked_Deallocate_Subpool;
with Ada.Unchecked_Deallocation;
with Ada.Unchecked_Reallocation;
with System.Storage_Elements.Formatting;
with System.Storage_Pools.Unbounded;
with System.Storage_Pools.Subpools.Unbounded;
procedure storagepool is
use type System.Address;
use type System.Storag... |
8,378 | ada | 4 | davidkristola/vole | kv-avm-symbol_tables.ads | with kv.avm.Registers;
package kv.avm.Symbol_Tables is
Missing_Element_Error : exception;
type Symbol_Table is tagged limited private;
type Symbol_Table_Access is access all Symbol_Table;
procedure Initialize
(Self : in out Symbol_Table);
function Count(Self : Symbol_Table) return Natural;
... |
8,379 | ada | 0 | hergin/ada2fuml | test-resources/CombinedTypesAndVariables.adb | <filename>test-resources/CombinedTypesAndVariables.adb
package body SomeClass is
function someFunction (Self : in SomeClass) return Integer is
begin
return Self.someAttribute;
end someFunction;
procedure someProcedure (Self : in SomeClass) is
begin
null;
end someProcedure;
procedu... |
8,380 | ada | 70 | Lucretia/bare_bones | build/gnat/rts/common/adainclude/s-secsta.adb | -- -*- Mode: Ada -*-
-- Filename : s-secsta.adb
-- Description : Secondary stack
-- Author : <NAME>
-- Created On : Wed Nov 16 17:06:31 2016
-- Licence : See LICENCE in the root directory.
package body System.Secondary_Stack is
procedure SS_Allocate
... |
8,381 | ada | 3 | albinjal/ada_basic | Lab6/sorted_list.ads | <gh_stars>1-10
with Ada.Text_IO;
package Sorted_List is
CANTFIND_ERROR: exception;
type List_Type is private;
function Empty(List: List_Type)
return Boolean;
function Member(List: List_Type; Search: Integer)
return Boolean;
function Find(List: List_Type; Search: Integer)
return Integer;
f... |
8,382 | ada | 0 | sebsgit/textproc | src/tests/tensortests.adb | <reponame>sebsgit/textproc
with AUnit.Assertions; use AUnit.Assertions;
with Ada.Text_IO;
with System;
with System.Address_To_Access_Conversions;
with Tensor; use Tensor;
package body TensorTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases.Registration;
begin
Register_R... |
8,383 | ada | 0 | Fabien-Chouteau/bb_pico_bsp | src/bb_pico_bsp-lvgl_backend.adb | with Ada.Text_IO;
with Interfaces; use Interfaces;
with HAL;
with Lv; use Lv;
with Lv.Color;
with Lv.Hal.Disp; use Lv.Hal.Disp;
with Lv.Hal.Indev; use Lv.Hal.Indev;
with Lv.Indev;
with Lv.Objx;
with Lv.Objx.Img;
with Lv.Vdb;
with BB_Pico_Bsp.LCD;
with BB_Pico_Bsp.Keyboard;
with BB_Pico_Bsp.Touch;
with BBQ10K... |
8,384 | ada | 0 | Black-Photon/Programming-Language-of-the-Month | April/get_rod_absorption.adb | <gh_stars>0
with types;
function get_rod_absorption (a : types.Rod_Array) return types.Percent is
use types;
Sum : Percent;
begin
Sum := 0.0;
for i in (Index) loop
Sum := Sum + a(i);
end loop;
return Sum / 100.0;
end get_rod_absorption; |
8,385 | ada | 1 | skill-lang/skillAdaTestSuite | test/foreign/test_foreign.ads | package Test_Foreign is
end Test_Foreign;
|
8,386 | ada | 5 | ianloic/unladen-swallow | Util/llvm/bindings/ada/transforms/llvm_transforms.ads | -- This file is generated by SWIG. Do *not* modify by hand.
--
package LLVM_Transforms is
end LLVM_Transforms;
|
8,387 | ada | 80 | thindil/steamsky | src/items.adb | -- Copyright 2016-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... |
8,388 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversWL5x/stm32-subghzrf.adb | with STM32_SVD.PWR; use STM32_SVD.PWR;
with Ada.Real_Time; use Ada.Real_Time;
package body STM32.SubGhzRF is
-- procedure SubGhzRF_RegRead (Addr : UInt16; Value : out UInt8)
-- is
-- begin
-- null;
-- end SubGhzRF_RegRead;
Pa_Power_Choice : PaSel_Choice := LP_PA;
GX : UInt8;
procedure NSS_Asser... |
8,389 | ada | 0 | Letractively/ada-asf | src/asf-beans-mappers.ads | <filename>src/asf-beans-mappers.ads
-----------------------------------------------------------------------
-- asf-beans-mappers -- Read XML managed bean declaratiosn
-- Copyright (C) 2010, 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may n... |
8,390 | ada | 1 | ytomino/vampire | source/vampire-r3-register_page.ads | <reponame>ytomino/vampire
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Vampire.R3.Register_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
Base_Page : in Forms.Base_Page;
Village_Id : in Tabula.Villages.Village_Id :=
Ta... |
8,391 | ada | 0 | faelys/natools | src/natools-time_keys.adb | <filename>src/natools-time_keys.adb
------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute thi... |
8,392 | ada | 1 | mullikine/RosettaCodeData | Task/Abstract-type/Ada/abstract-type-1.ada | type Queue is limited interface;
procedure Enqueue (Lounge : in out Queue; Item : in out Element) is abstract;
procedure Dequeue (Lounge : in out Queue; Item : in out Element) is abstract;
|
8,393 | ada | 76 | yannickmoy/SPARKNaCl | stress/diff_car_stress.adb | <reponame>yannickmoy/SPARKNaCl
with SPARKNaCl.Tests;
procedure Diff_Car_Stress
is
begin
SPARKNaCl.Tests.Diff_Car_Stress;
end Diff_Car_Stress;
|
8,394 | ada | 0 | acornagl/Control_flow_graph-wcet | tmp/src/extract_list_files.ads | <reponame>acornagl/Control_flow_graph-wcet<gh_stars>0
with Ada.Directories; use Ada.Directories;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Containers.Indefinite_Vectors; use Ada.Containers;
package Extract_List_Files is
-- Simple vector of Strings
package String_Vector is new Indefinite_V... |
8,395 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_ch11.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/sem_ch11.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,396 | ada | 0 | My-Colaborations/ada-ado | regtests/ado-sequences-tests.adb | <reponame>My-Colaborations/ada-ado
-----------------------------------------------------------------------
-- ado-sequences-tests -- Test sequences factories
-- Copyright (C) 2011, 2012, 2015, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
8,397 | ada | 19 | jquorning/ada-security | src/security-oauth-jwt.ads | <filename>src/security-oauth-jwt.ads
-----------------------------------------------------------------------
-- security-oauth-jwt -- OAuth Java Web Token
-- Copyright (C) 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
8,398 | ada | 12 | jquorning/ada-asf | src/asf-servlets-measures.ads | -----------------------------------------------------------------------
-- asf-servlets-measures -- Performance measurement servlet
-- 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 wit... |
8,399 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/prj-env.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.