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 |
|---|---|---|---|---|---|
30,600 | ada | 9 | ajnavarro/language-dataset | data/github.com/onox/orka/328954163d9b0502f35c3d1ec8d868a545e8e205/src/tools/orka_info.adb | <reponame>ajnavarro/language-dataset
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <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:... |
30,601 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/dynamic_elab_pkg.ads | package Dynamic_Elab_Pkg is
type R is record
Code : Integer;
Val : Boolean;
end record;
function Get_R return R;
end Dynamic_Elab_Pkg;
|
30,602 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/opengl-texture-coordinates.adb | <gh_stars>10-100
package body openGL.Texture.Coordinates
is
overriding
function to_Coordinates (Self : in xz_Generator; the_Vertices : access Sites) return Coordinates_2D
is
the_Coords : Coordinates_2D (1 .. the_Vertices'Length);
begin
for Each in the_Coords'Range
loop
declare
... |
30,603 | ada | 4 | faelys/gela-asis | contrib/ayacc/src/lexical_analyzer.adb | -- 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... |
30,604 | ada | 30 | Componolit/libsparkcrypto | tests/lsc_internal_test_bignum.adb | -------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2011, <NAME> and <NAME>
-- Copyright (C) 2011, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or ... |
30,605 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-images/regtests/awa-images-modules-tests.adb | -----------------------------------------------------------------------
-- awa-storages-modules-tests -- Unit tests for storage service
-- Copyright (C) 2012, 2013, 2016, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
30,606 | ada | 1 | selroc/Renaissance-Ada | src/libraries/Rewriters_Lib/src/placeholder_relations.adb | with Ada.Text_IO; use Ada.Text_IO;
with Libadalang.Analysis; use Libadalang.Analysis;
with Libadalang.Common; use Libadalang.Common;
with Rejuvenation; use Rejuvenation;
with Rejuvenation.Finder; use Rejuvenation.Finder;
with Rejuvenation.Utils; use Rejuvenation.Utils;
package body Placeholder_Relati... |
30,607 | ada | 0 | antholuo/Blob_Traffic | Blob_Lib/assimp-5.2.3/assimp/contrib/zlib/contrib/ada/zlib-streams.adb | <filename>Blob_Lib/assimp-5.2.3/assimp/contrib/zlib/contrib/ada/zlib-streams.adb
version https://git-lfs.github.com/spec/v1
oid sha256:f45988e2bac76eb25a0dc981f46576e7432c35dde1790bbc2b650f0090b7fa72
size 5996
|
30,608 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c7/c74402b.ada | <reponame>best08618/asylo
-- C74402B.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... |
30,609 | ada | 22 | FardaleM/metalang | out/euler39.adb | <filename>out/euler39.adb
with ada.text_io, ada.Integer_text_IO, Ada.Text_IO.Text_Streams, Ada.Strings.Fixed, Interfaces.C;
use ada.text_io, ada.Integer_text_IO, Ada.Strings, Ada.Strings.Fixed, Interfaces.C;
with Ada.Numerics.Elementary_Functions;
procedure euler39 is
type stringptr is access all char_array;
procedu... |
30,610 | ada | 1 | BaderKashkash/Ada_Drivers_Library | arch/ARM/Nordic/drivers/nrf_common/nrf-gpio.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2020, AdaCore --
-- --
-- ... |
30,611 | ada | 7 | 98devin/ada-gba-dev | src/GBA.Display.Backgrounds.Refs.adb | <reponame>98devin/ada-gba-dev
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
package body GBA.Display.Backgrounds.Refs is
function ID (This : BG_Ref'Class) return BG_ID is
( This.ID );
function Priority (This : BG_Ref'Class) return Display_Priority is
( This.Control.Priority );... |
30,612 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f0/i2c/peripherals.adb | <reponame>ekoeppen/STM32_Generic_Ada_Drivers<gh_stars>1-10
with System;
with STM32_SVD; use STM32_SVD;
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.GPIO; use STM32GD.GPIO;
package body Peripherals is
procedure Init is
begin
RCC.RCC_Periph.... |
30,613 | ada | 1 | io7m/coreland-openal-ada | UNIT_TESTS/init_003.adb | <filename>UNIT_TESTS/init_003.adb
with Test;
with OpenAL.Context;
with OpenAL.Context.Error;
procedure init_003 is
package ALC renames OpenAL.Context;
package ALC_Error renames OpenAL.Context.Error;
Device : ALC.Device_t;
Context : ALC.Context_t;
Current_OK : Boolean;
TC : Test.Context_t;... |
30,614 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c36205l.ada | <reponame>best08618/asylo
-- C36205L.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... |
30,615 | ada | 8 | flyx/OpenCLAda | src/interface/cl-programs.ads | <filename>src/interface/cl-programs.ads
--------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- cop... |
30,616 | ada | 0 | joffreyhuguet/LmcpGen | ada/src/afrl/afrl.ads | package afrl is
end afrl; |
30,617 | ada | 0 | reznikmm/slimp | source/slim-messages-bdac.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Message_Visiters;
package body Slim.Messages.bdac is
List : constant Field_Description_Array :=
((Uint_8_Field, 1), -- Kind
... |
30,618 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-crbtgo.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
30,619 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-unit_utils.ads | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
30,620 | ada | 0 | faelys/natools | generated/natools-static_maps-s_expressions-templates-dates-t.adb | -- Generated at 2015-06-24 18:19:13 +0000 by Natools.Static_Hash_Maps
-- from src/natools-s_expressions-templates-dates-maps.sx
with Natools.Static_Maps.S_Expressions.Templates.Dates.Cmds;
with Natools.Static_Maps.S_Expressions.Templates.Dates.Zones;
function Natools.Static_Maps.S_Expressions.Templates.Dates.T
ret... |
30,621 | ada | 0 | xiashuangxi/coconut | src/account-vector.adb | package body Account.Vector is
procedure Add(Item: in out Account_Stack; C: in Default_Account.Instance) is
begin
Item.Append(C);
end Add;
procedure Delete(Item: in out Account_Stack; C: in Default_Account.Instance) is
begin
Item.Delete(Item.Find_Index(C));
end Delete;
pro... |
30,622 | ada | 0 | leomlr/sudoku_ada-jewl | src/JEWL/jewl-windows.ads | <filename>src/JEWL/jewl-windows.ads
------------------------------------------------------------------------------
-- --
-- J E W L . W I N D O W S --
-- ... |
30,623 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/sinput.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,624 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-messages.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
30,625 | ada | 1 | jweese/Ada_Vent_19 | day_03.adb | with Ada.Containers.Vectors;
with Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.IO_Exceptions;
procedure Day_03 is
type Point is record
X, Y: Integer;
end record;
package Wire_Vec is new Ada.Containers.Vectors(
Index_Type => Natural, Element_Type => Point);
procedure Append_Comma_Separated_... |
30,626 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/task_name.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body task_name is
task body Task_Object is
begin
null;
end Task_Object;
end;
|
30,627 | ada | 18 | jquorning/ada-wiki | src/wiki-streams.ads | -----------------------------------------------------------------------
-- wiki-streams -- Wiki input and output streams
-- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file excep... |
30,628 | ada | 0 | wildeee/safADA | Exemplos ADA/HelloWorld.adb | With Ada.Text_IO; Use Ada.Text_IO;
Procedure HelloWorld is
begin
Put("Programacao em Ada!");
New_Line;
Put_Line("Hello World!!");
end HelloWorld; |
30,629 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/stm32f051x8/stm32gd-board.adb | with STM32GD.Startup;
package body STM32GD.Board is
procedure Init is
begin
null;
end Init;
end STM32GD.Board;
|
30,630 | ada | 1 | charlie5/lace-alire | 1-base/lace/source/events/interface/lace-subject.ads | with
lace.Event,
lace.Observer;
limited
with
lace.Event.Logger;
package lace.Subject
--
-- Provides an interface for an event subject.
--
is
pragma remote_Types;
type Item is limited interface;
type View is access all Item'Class;
type Views is array (Positive range <>) of View;
typ... |
30,631 | ada | 0 | alexcamposruiz/dds-requestreply | src/orig/dds-request_reply-treqtreprequester.ads | <reponame>alexcamposruiz/dds-requestreply
package DDS.Request_Reply.Treqtreprequester is
pragma Elaborate_Body;
end;
|
30,632 | ada | 0 | python36/vibecrypt | file_crypter.ads | with byte_package; use byte_package;
with raiden;
package file_crypter is
subtype key_s is raiden.key_s;
type mode is (encrypt, decrypt);
procedure init_key(key : raiden.key_s);
procedure file_crypt(in_file : byte_io.File_Type; out_file : out byte_io.File_Type; mode_crypt : mode);
end file_crypter;
|
30,633 | ada | 0 | sciencylab/lagrangian-solver | src/numerics-max_int_array.adb | <gh_stars>0
separate (Numerics)
function Max_Int_Array (Item : in Int_Array) return Integer is
Result : Integer := Item (Item'First);
begin
for N of Item loop
Result := Integer'Max (Result, N);
end loop;
return Result;
end Max_Int_Array;
|
30,634 | ada | 33 | ytomino/drake | source/sjlj/s-unwsea.adb | <filename>source/sjlj/s-unwsea.adb
pragma Check_Policy (Trace => Ignore);
with Ada.Unchecked_Conversion;
with System.Address_To_Constant_Access_Conversions;
with System.Storage_Elements;
with System.Unwind.Representation;
with C.unwind_pe;
package body System.Unwind.Searching is
pragma Suppress (All_Checks);
use ... |
30,635 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/old_errors.ads | <reponame>best08618/asylo<gh_stars>1-10
package Old_Errors is
pragma Elaborate_Body;
end Old_Errors;
|
30,636 | ada | 12 | TUM-EI-RCS/StratoX | tests/subnormal-target/src/calc.adb | <filename>tests/subnormal-target/src/calc.adb
package body calc with SPARK_Mode is
function calc (f1, f2: Float) return Float is
begin
return f1 * f2; -- Float overflow check proved, but it throws an exception because of underflow.
end calc;
end calc;
|
30,637 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-pch-lvds.adb | <filename>firmware/coreboot/3rdparty/libgfxinit/common/ironlake/hw-gfx-gma-pch-lvds.adb
--
-- Copyright (C) 2015-2016 secunet Security Networks AG
-- Copyright (C) 2016 <NAME> <<EMAIL>>
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as ... |
30,638 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-elements.ads | <filename>src/asis/asis-elements.ads
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
30,639 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/sequencestrategy.adb | with VisitFailurePackage, VisitablePackage, EnvironmentPackage;
use VisitFailurePackage, VisitablePackage, EnvironmentPackage;
package body SequenceStrategy is
----------------------------------------------------------------------------
-- Object implementation
-----------------------------------------------------... |
30,640 | ada | 6 | afrl-rq/LmcpGen | src/templates/ada/avtas/lmcp/avtas-lmcp-factory.ads | with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
with AVTAS.LMCP.Object; use AVTAS.LMCP.Object;
package AVTAS.LMCP.Factory is
HEADER_SIZE : constant UInt32 := 8;
CHECKSUM_SIZE : constant UInt32 := 4;
SERIESNAME_SIZE : constant UInt32 :=... |
30,641 | ada | 0 | sebsgit/textproc | src/tests/nnclassifiertests.adb | with AUnit.Assertions; use AUnit.Assertions;
with Ada.Containers.Vectors;
with Ada.Text_IO;
with NNClassifier;
with NeuralNet;
with DataBatch;
with MathUtils;
use MathUtils.Float_Vec;
use Ada.Containers;
package body NNClassifierTests is
procedure Register_Tests (T: in out TestCase) is
use AUnit.Test_Cases... |
30,642 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/hw-gfx-dp_aux_ch.ads | --
-- Copyright (C) 2015-2016 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 option) any later version.
--
-- ... |
30,643 | ada | 0 | GLADORG/glad-cli | src/commands.adb | <reponame>GLADORG/glad-cli
with Commands.Generate;
with Commands.Create;
with Commands.Init;
with Commands.Destroy;
with CLIC.TTY;
with CLIC.User_Input;
with Commands.Topics.Issues;
with Commands.Topics.Contribute;
with GNAT.OS_Lib;
package body Commands is
-------------------------
-- Set_Global_Switches --
--... |
30,644 | ada | 1 | BrentSeidel/BBS-Ada | bbs.ads | --
-- Author: <NAME>
-- Version: V01.01
-- Date: 27-Apr-2021
--
-- This package defines a number of types for physical units. These are
-- generally based off of the Float type since in most cases, 6 digits is
-- pretty good for a physical measurement. If you need more precision, go
-- ahead and change it to whatever... |
30,645 | ada | 36 | rewriting/tom | src/tom/library/sl/ada/visitablebuiltinpackage.ads | <filename>src/tom/library/sl/ada/visitablebuiltinpackage.ads
with VisitablePackage, ObjectPack;
use VisitablePackage, ObjectPack;
package VisitableBuiltinPackage is
type VisitableBuiltin is new Visitable and Object with
record
builtin : ObjectPtr := null;
end record;
function toString(vb: VisitableBuiltin)... |
30,646 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-excmac__gcc.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,647 | ada | 13 | annexi-strayline/AURA | configuration-step_3b.adb | <filename>configuration-step_3b.adb
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Im... |
30,648 | ada | 0 | damaki/EVB1000 | src/evb1000-usb.ads | <gh_stars>0
with Ada.Interrupts.Names;
with System;
package EVB1000.USB
with SPARK_Mode => On
is
Driver_Priority : constant System.Interrupt_Priority := System.Interrupt_Priority'First;
-- By default, use lowest interrupt priority.
-- Any interrupt priority value can be used, though.
Rx_Buffer_Siz... |
30,649 | ada | 0 | melwyncarlo/ProjectEuler | problems/036/a036.adb | <filename>problems/036/a036.adb
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A036 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
-- Initial values denoting the numbers 0, 1, 3, 5, 7, and 9.
Sum_Val : Integer := 25;
Decimal : String (1 .. 10);
Binary ... |
30,650 | ada | 1 | zrmyers/VulkanAda | test/dmat/vulkan-math-dmat4x2-test.adb | <reponame>zrmyers/VulkanAda
--------------------------------------------------------------------------------
-- 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
... |
30,651 | ada | 15 | My-Colaborations/dynamo | src/gen-artifacts.adb | <filename>src/gen-artifacts.adb
-----------------------------------------------------------------------
-- gen-artifacts -- Artifacts for Code Generator
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
30,652 | ada | 1 | Jellix/open_weather_map_api | src/open_weather_map-api-query.ads | --------------------------------------------------------------------------------
-- 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 t... |
30,653 | ada | 20 | charlie5/lace | 3-mid/opengl/source/opengl-errors.adb | with
openGL.Tasks,
GL.Binding,
ada.Text_IO;
package body openGL.Errors
is
use GL;
function Current return String
is
use GL.Binding;
check_is_OK : constant Boolean := openGL.Tasks.Check; pragma Unreferenced (check_is_OK);
the_Error : constant GL.GLenum := glGetError;
... |
30,654 | ada | 1 | irion7/aflex-ayacc-mirror | ayacc/src/cli__read_command_line_vax.ada | <gh_stars>1-10
separate (Command_Line_Interface)
procedure Read_Command_Line (Command_Args : out Command_Line_Type) is
procedure Get_Foreign (P : out String);
pragma Interface (External, Get_Foreign);
pragma Import_Valued_Procedure (Get_Foreign,
"LIB$GET_FOREIGN",
... |
30,655 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c83030c.ada | -- C83030C.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... |
30,656 | ada | 1 | tomberek/RaySAR | libraries/zlib/contrib/ada/mtest.adb | <reponame>tomberek/RaySAR
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 <NAME> --
-- ... |
30,657 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-traceb-mastop.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/s-traceb-mastop.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,658 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/radar/030_basic_types/answers/main.adb | with Radar_Internals;
procedure Main is
-- You are in charge of developping a rotating radar for the new T-1000
-- Some of the radar code is already in place, it is just missing the
-- high-level interface to handle incoming objects.
type Object_Status_T is (Out_Of_Range, Tracked, Cleared, Selected);
... |
30,659 | ada | 0 | melwyncarlo/ProjectEuler | problems/023/a023.adb | with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A023 is
use Ada.Integer_Text_IO;
Abundant_Numbers : array (Integer range 1 .. 10000) of Integer :=
(others => 0);
N : Integer := 1;
Count_Val : Integer := 1;
J_Max, K, Count_By_2, Proper_Divisors_Sum : Integ... |
30,660 | ada | 52 | onox/orka | orka_egl/src/egl-objects-displays.ads | <filename>orka_egl/src/egl-objects-displays.ads
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2020 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- ... |
30,661 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_34.ads | package Problem_34 is
procedure Solve;
end Problem_34;
|
30,662 | ada | 79 | Roldak/OpenGLAda | src/glfw/v3/glfw-windows-context.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.API;
with Glfw.Enums;
package body Glfw.Windows.Context is
procedure Make_Current (Window : access Glfw.Windows.Window'Class) is
begin
if not Window.Initialized then
-- null i... |
30,663 | ada | 0 | csb6/libtcod-ada | demo/tutorial/components-destructibles.adb | with Actors, Engines, Libtcod.Color; use Libtcod;
package body Components.Destructibles is
-------------
-- is_dead --
-------------
function is_dead(self : Destructible) return Boolean is (self.hp = 0);
-----------------
-- take_damage --
-----------------
function take_damage(self : in ou... |
30,664 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l4x6/stm32_svd-lcd.ads | -- This spec has been automatically generated from STM32L4x6.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.LCD is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_DUTY_Field is HAL.U... |
30,665 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/support/source/indented_text.ads | <gh_stars>100-1000
-- At the beginning of each line, puts out white space relative to the
-- current indent. Emits Wide text:
package Indented_Text is
--------------------------------------------------------
-- Trace routines emit no output when Trace_On is False. At the moment,
-- Indented_Text.Class outpu... |
30,666 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/trampoline3.adb | -- { dg-do compile { target *-*-linux* } }
-- { dg-options "-gnatws" }
procedure Trampoline3 is
A : Integer;
type FuncPtr is access function (I : Integer) return Integer;
function F (I : Integer) return Integer is
begin
return A + I;
end F;
P : FuncPtr := F'Access;
I : Integer;
begin
I := P(0)... |
30,667 | ada | 24 | svn2github/matreshka | source/amf/ocl/amf-factories-ocl_factories.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
30,668 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-index_constraints.adb | <filename>source/nodes/program-nodes-index_constraints.adb<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Index_Constraints is
function Create
(Left_Bracket_Token : not nu... |
30,669 | ada | 0 | reznikmm/gela | source/library/program-unit_naming.ads | <reponame>reznikmm/gela<filename>source/library/program-unit_naming.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
--
-- This package provides Unit_Naming_Schema interface and its methods.
package Progr... |
30,670 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/osint.adb | <reponame>vidkidz/crossbridge<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,671 | ada | 7 | Fabien-Chouteau/Giza | src/giza-widget-keyboards.ads | <reponame>Fabien-Chouteau/Giza<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Giza --
-- ... |
30,672 | ada | 3 | shalithasuranga/hello-world | hello_world.adb | <filename>hello_world.adb
with Ada.Text_IO;
procedure HelloWorld is
begin
Ada.Text_IO.Put_Line("Hello, world!");
end HelloWorld;
|
30,673 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/debug_a.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
30,674 | ada | 81 | twdroeger/ada-awa | awa/regtests/awa-events-services-tests.ads | -----------------------------------------------------------------------
-- events-tests -- Unit tests for AWA events
-- Copyright (C) 2012, 2019 <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 Lic... |
30,675 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/dynamics/impact-d3-motion_state-default.adb | <reponame>charlie5/lace<gh_stars>10-100
package body impact.d3.motion_State.default
is
function to_motion_State (startTrans, centerOfMassOffset : Transform_3d := impact.d3.Transform.getIdentity) return Item
is
Self : Item;
begin
Self.m_graphicsWorldTrans := startTrans;
Self.m_centerOfMassO... |
30,676 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Pascals-triangle/Ada/pascals-triangle-2.ada | <filename>Task/Pascals-triangle/Ada/pascals-triangle-2.ada
package body Pascal is
function First_Row(Max_Length: Positive) return Row is
R: Row(0 .. Max_Length) := (0 | 1 => 1, others => 0);
begin
return R;
end First_Row;
function Next_Row(R: Row) return Row is
S: Row(R'Range);
begin
... |
30,677 | ada | 45 | alkalinin/raytracer | ada/src/colors.ads | <filename>ada/src/colors.ads
--
-- Raytracer implementation in Ada
-- by <NAME> (github: johnperry-math)
-- 2021
--
-- specification for Colors, both RGB ("Color_Type")
-- and RGBA ("Transparent_Color_Type")
--
-- local packages
with RayTracing_Constants; use RayTracing_Constants;
-- @summary
-- specification for Co... |
30,678 | ada | 0 | RREE/Ada_Drivers_Library | examples/shared/serial_ports/src/serial_io-streaming.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016-2022, AdaCore --
-- --
-- ... |
30,679 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-polygon-lit_colored.ads | <reponame>charlie5/lace-alire<filename>3-mid/opengl/source/lean/model/opengl-model-polygon-lit_colored.ads
with
openGL.Model,
openGL.Font,
openGL.Geometry;
package openGL.Model.polygon.lit_colored
--
-- Models a lit, colored polygon.
--
is
type Item is new Model.polygon.item with private;
type V... |
30,680 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/wmmintrin_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package wmmintrin_h is
-- Copyright (C) 2008-2017 Free Software Foundation, Inc.
-- This file is part of GCC.
-- GCC is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public L... |
30,681 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sinfo-cn.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
30,682 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-versions.ads | <reponame>Fabien-Chouteau/sdlada<gh_stars>1-10
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be h... |
30,683 | ada | 0 | persan/AUnit-addons | tests/src/tc.ads | with AUnit.Test_Cases;
package Tc is
type Test_Case is new AUnit.Test_Cases.Test_Case with null record;
function Name (Test : Test_Case) return AUnit.Message_String;
procedure Register_Tests (Test : in out Test_Case);
end tc;
|
30,684 | ada | 1 | philipbjorge/Parallel-Elliptic-Partial-Differential-Equation-Solver | barrier.adb | <reponame>philipbjorge/Parallel-Elliptic-Partial-Differential-Equation-Solver
-- <NAME>
-- Simple barrier using protected types that
-- waits on a certain number of entrants
package body Barrier is
protected body Barrier_Type is
entry Here when not leave is begin
count := count + 1;
if coun... |
30,685 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/gen_run_wisi_lr_text_rep_parse.ads | <filename>.emacs.d/elpa/wisi-3.1.3/gen_run_wisi_lr_text_rep_parse.ads
-- Abstract :
--
-- Run an Emacs LR text_rep parser as a standalone executable, for debugging.
--
-- See gen_emacs_wisi_*_parse.ads for the Emacs background process.
--
-- Copyright (C) 2018, 2019 Free Software Foundation, Inc.
--
-- This progra... |
30,686 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Function-composition/Ada/function-composition-1.ada | generic
type Argument is private;
package Functions is
type Primitive_Operation is not null
access function (Value : Argument) return Argument;
type Func (<>) is private;
function "*" (Left : Func; Right : Argument) return Argument;
function "*" (Left : Func; Right : Primitive_Operation) return Fun... |
30,687 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85005c.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c85005c.ada
-- C85005C.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... |
30,688 | ada | 0 | skill-lang/adaCommon | src/skill-streams-reader.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ stream to skill tokens --
-- |___/_|\_\_|_|____| by: <NAME>, <NAME> --
-- ... |
30,689 | ada | 0 | Roldak/OpenGLAda | src/glfw/v2/glfw-display-modes.ads | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
package Glfw.Display.Modes is
type Mode is record
Width, Height : Natural;
Red_Bits, Green_Bits, Blue_Bits : Natural;
end record;
type Mode_List is array (Positive range <>) of Mode;
... |
30,690 | ada | 19 | jrcarter/Ada_GUI | parsers-generic_source-keywords.adb | -- --
-- procedure Copyright (c) <NAME> --
-- Parsers.Generic_Source.Keywords Luebeck --
-- Interface Summer, 2005 --
-- ... |
30,691 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-types.ads | <reponame>auzkok/libagar
-- This file only exists because of circular type dependencies in the C
-- library. Types must therefore be collected here, imported and renamed
-- in each package to prevent loops.
with agar.core.tail_queue;
with agar.core.types;
with agar.gui.rect;
with agar.gui.widget.box;
with agar.gui.wid... |
30,692 | ada | 24 | svn2github/matreshka | source/amf/dd/amf-internals-tables-dg_metamodel-links.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
30,693 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-inputs.ads |
private with
Interfaces.C.Strings,
System;
package FLTK.Widgets.Inputs is
type Input is new Widget with private;
type Input_Reference (Data : not null access Input'Class) is limited null record
with Implicit_Dereference => Data;
type Input_Kind is
(Normal_Kind, Float_Kind, In... |
30,694 | ada | 5 | kokkonisd/locstats | tests/data/test.adb | with Ada.Text_IO;
use Ada.Text_IO;
procedure Main is
begin
-- Say hello!
Put_Line("Hello, World!");
end Main;
|
30,695 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-stwise.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
30,696 | ada | 1 | Fabien-Chouteau/tiled-code-gen | src/tcg-collision_objects.adb | <reponame>Fabien-Chouteau/tiled-code-gen<filename>src/tcg-collision_objects.adb<gh_stars>1-10
with Ada.Strings.Fixed;
with TCG.Utils; use TCG.Utils;
with DOM.Core; use DOM.Core;
with DOM.Core.Elements; use DOM.Core.Elements;
with DOM.Core.Nodes; use DOM.Core.Nodes;
package body TCG.Collision_Objects is
... |
30,697 | ada | 0 | persan/midnightsun-ctf-LoveLacedLetter | src/posix.ads | <gh_stars>0
with System.Storage_Elements;
private with Ada.Unchecked_Conversion;
package Posix is
type File;
type File_Status;
type Memory_Map;
-- subtype unsigned_long is Interfaces.C.unsigned_long;
-- subtype unsigned is Interfaces.C.unsigned;
-- subtype int is Interfaces.C.int;
-- subty... |
30,698 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-ref-man-2012.5/progs/arm_texi.adb | with Ada.Exceptions;
with Ada.Strings.Fixed;
package body ARM_Texinfo is
-- Copyright (C) 2003, 2007, 2010 - 2013, 2015, 2017, 2018 <NAME>. All Rights Reserved.
-- E-Mail: <EMAIL>
--
-- This library is free software; you can redistribute it and/or
-- modify it under terms of the GNU General... |
30,699 | ada | 2 | stcarrez/jason | src/jason-tickets-beans.ads | -----------------------------------------------------------------------
-- jason-tickets-beans -- Beans for module tickets
-- Copyright (C) 2016, 2017, 2019 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exc... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.