id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
3,700 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf52/nrf_svd-uarte.ads | -- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA
--
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without modification,
-- are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice, t... |
3,701 | ada | 80 | thindil/steamsky | src/ui/help-ui.adb | -- Copyright (c) 2020-2021 <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 published by
-- the Free Software Foundation, either version 3 of the License, or
-- (at your option) any later version.
--
-- This program is... |
3,702 | ada | 18 | jquorning/ada-wiki | src/wiki-strings.ads | <filename>src/wiki-strings.ads
-----------------------------------------------------------------------
-- wiki-strings -- Wiki string types and operations
-- Copyright (C) 2016, 2017, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use... |
3,703 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a07a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a07a.ada
-- C54A07A.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... |
3,704 | ada | 0 | reznikmm/gela | tools/generator/meta-writes.ads | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Meta.Classes;
with Meta.Read;
package Meta.Writes is
procedure Write_Elements (Vector : Meta.Read.Class_Vectors.Vector);
procedure Write_Elements_... |
3,705 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/light/opengl-light.adb | <gh_stars>10-100
package body openGL.Light
is
function is_On (Self : in Item) return Boolean
is
begin
return Self.On;
end is_On;
procedure is_On (Self : in out Item; Now : in Boolean := True)
is
begin
Self.On := Now;
end is_On;
function Site (Self : in Item) return openGL.... |
3,706 | ada | 202 | bunyk/pss | test/testdirs/testdir1/subdir1/someada.adb | just a line
context-2
context-1
line with match - abc
context+1
context+2
bloop
groop
line matching 'abc' again
derm
germ
blah
1
2
3
|
3,707 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/old/tlsf-mem_blocks.ads | with System.Storage_Elements;
with TLSF.Config;
with TLSF.Bitmaps;
with TLSF.Mem_Block_Size;
use TLSF.Config;
use TLSF.Bitmaps;
use TLSF.Mem_Block_Size;
private package TLSF.Mem_Blocks is
type Block_Status is (Free,
Occupied,
Absent)
with Size => 2;
-- Free... |
3,708 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL_image/sdl_image.ads | <filename>thirdparty/adasdl/thin/adasdl/AdaSDL_image/sdl_image.ads<gh_stars>0
-- ----------------------------------------------------------------- --
-- AdaSDL_image --
-- Binding to SDL image lib --
-- Copyrigh... |
3,709 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/gfxtest/hw-gfx-gma-gfx_test.adb | with Ada.Numerics.Discrete_Random;
with Ada.Unchecked_Conversion;
with Ada.Command_Line;
with Interfaces.C;
with HW.Time;
with HW.Debug;
with HW.PCI.Dev;
with HW.MMIO_Range;
with HW.GFX.GMA;
with HW.GFX.GMA.Config;
with HW.GFX.GMA.Display_Probing;
package body HW.GFX.GMA.GFX_Test
is
pragma Disable_Atomic_Synchroni... |
3,710 | ada | 0 | jquorning/CELLE | source/auxiliary.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.
--
with Ada.Text_IO;
package Auxiliary is
... |
3,711 | ada | 80 | thindil/steamsky | tests/statistics-test_data-tests.adb | <gh_stars>10-100
-- This package has been generated automatically by GNATtest.
-- You are allowed to add your code to the bodies of test routines.
-- Such changes will be kept during further regeneration of this file.
-- All code placed outside of test routine bodies will be lost. The
-- code intended to set up an... |
3,712 | ada | 1 | ytomino/vampire | source/tabula-users-load.ads | <gh_stars>1-10
-- The Village of Vampire by YT, このソースコードはNYSLです
procedure Tabula.Users.Load (
Name : in String;
Info : in out User_Info);
|
3,713 | ada | 0 | faelys/natools | tests/natools-s_expressions-printers-pretty-tests.adb | <filename>tests/natools-s_expressions-printers-pretty-tests.adb
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy... |
3,714 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders-kdf-pbkdf2.adb | -----------------------------------------------------------------------
-- util-encoders-kdf-pbkdf2 -- Password-Based Key Derivation Function 2, RFC 8018.
-- Copyright (C) 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... |
3,715 | ada | 0 | fuzzysloth/ada-awa | awa/src/awa-users-modules.ads | <reponame>fuzzysloth/ada-awa
-----------------------------------------------------------------------
-- awa-users-module -- User management module
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
3,716 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-type-6.adb | <reponame>xuedong/mini-ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
type T;
procedure P is begin New_Line; end;
type T is record A: Integer; end record;
begin
New_Line;
end;
|
3,717 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Extend-your-language/Ada/extend-your-language.ada | <filename>Task/Extend-your-language/Ada/extend-your-language.ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_If_2 is
type Two_Bool is range 0 .. 3;
function If_2(Cond_1, Cond_2: Boolean) return Two_Bool is
(Two_Bool(2*Boolean'Pos(Cond_1)) + Two_Bool(Boolean'Pos(Cond_2)));
begin
for N in 10 .. 2... |
3,718 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c55b11a.ada | <gh_stars>1-10
-- C55B11A.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.... |
3,719 | ada | 7 | Irvise/Ada_Scheme_Example | src/scheme_test.adb | <reponame>Irvise/Ada_Scheme_Example<filename>src/scheme_test.adb
package body Scheme_Test is
function Hello_Ada(Num : Int) return Int is
Len : Int;
begin
Len := Num;
Len := Len + 1;
Put_Line ("Hello Scheme, from Ada.");
Put_Line ("The number passed is: " & Num'Image);
-- Can we call Scheme ... |
3,720 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3704c.ada | -- CE3704C.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... |
3,721 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 2A/S7/SysConc/TP/TP6/lr-tasks.ads | -- Time-stamp: <01 oct 2012 15:37 <EMAIL>>
-- Tâches clients : lecteurs, rédacteurs
package LR.Tasks is
MAXPROCS : constant Integer := 30;
subtype Proc_Id is Positive range 1..MAXPROCS;
task type Lecteur is
entry Init(MonId: Proc_Id);
end Lecteur;
task type Redacteur is
entry... |
3,722 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/old/hal-gpio.ads | <gh_stars>10-100
with stm32.gpio;
with Bit_Types; use Bit_Types;
package HAL.GPIO
with SPARK_Mode
is
pragma Preelaborate;
type GPIO_Port_Type is (A, B, C, D, E, F);
subtype GPIO_Pin_Type is Integer range 1 .. 16;
type GPIO_Point_Type is record
Port : GPIO_Port_Type;
Pin : GPIO_Pin_Type;
... |
3,723 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-menu.ads | with agar.gui.widget.button;
with agar.gui.widget.toolbar;
with agar.gui.window;
with agar.core.event;
with agar.core.slist;
with agar.core.timeout;
package agar.gui.widget.menu is
use type c.unsigned;
-- forward declarations
type item_t;
type item_access_t is access all item_t;
pragma convention (c, item... |
3,724 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo-elaborators.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,725 | ada | 1 | michalkonecny/polypaver | tools/SPARK2005/examples/erfRiemann/tutorial-steps/01-noSPARK/riemann.ads | <filename>tools/SPARK2005/examples/erfRiemann/tutorial-steps/01-noSPARK/riemann.ads
package Riemann is
-- An approximation of the function erf(x)*pi/2, which is equal
-- to the integral \int_0^x(e^(-t^2))dt. This integral does not
-- have a closed algebraic solution. This function uses a simple
-- Riema... |
3,726 | ada | 0 | mgrojo/protobuf | source/compiler/compiler-context.adb | <filename>source/compiler/compiler-context.adb
-- MIT License
--
-- Copyright (c) 2020 <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 restriction, including without... |
3,727 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/itypes.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,728 | ada | 8 | qunying/AdaTutor | adatutor/test.ada | with Hello, Add;
procedure Test is
begin
Hello;
Add;
end Test;
|
3,729 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/limited_with.ads | <reponame>best08618/asylo
limited with Pack1;
package limited_with is
procedure Print_2 (Obj : access Pack1.Nested.Rec_Typ);
end limited_with;
|
3,730 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/bindo.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
3,731 | ada | 3 | pyjarrett/archaic_terminal | src/common/trendy_terminal-lines.adb | <reponame>pyjarrett/archaic_terminal<filename>src/common/trendy_terminal-lines.adb
-------------------------------------------------------------------------------
-- Copyright 2021, The Trendy Terminal Developers (see AUTHORS file)
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
3,732 | ada | 1 | annexi-strayline/ASAP-JSON | json.ads | <filename>json.ads
------------------------------------------------------------------------------
-- --
-- JSON Parser/Constructor --
-- ... |
3,733 | ada | 1 | Fabien-Chouteau/samd51-hal | src/svd/sam_svd-ramecc.ads | 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.RAMECC is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- Interrupt Enable Clear
type RAMECC_... |
3,734 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstmarshal_h.ads | <reponame>persan/A-gst<gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
-- limited -- with GStreamer.GST_Low_Level.glib_2_0_gobject_gclosure_h;
with glib;
with glib;
with glib.Values;
with System;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_... |
3,735 | ada | 0 | bracke/Meaning | source/RASCAL-ConfiX.ads | <reponame>bracke/Meaning
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
3,736 | ada | 1 | brucegua/moocos | tools/scitools/sample/mahjongg/showbrd.adb | WITH Text_Io; USE Text_Io;
PROCEDURE ShowBrd IS
--------------------------------------------------------------------
--| Program : ShowBrd
Version : Constant STRING := "0.2";
--------------------------------------------------------------------
--| Abstract : Read... |
3,737 | ada | 0 | daemonl/openapi-codegen | snapshot/Ada/server-skeleton-spec.ada | -- Swagger Petstore
-- This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.
--
-- OpenAPI spec vers... |
3,738 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aliased_prefix_accessibility.adb | -- { dg-do run }
with Tagged_Type_Pkg; use Tagged_Type_Pkg;
with Ada.Text_IO; use Ada.Text_IO;
procedure Aliased_Prefix_Accessibility is
T_Obj : aliased TT;
T_Obj_Acc : access TT'Class := T_Obj'Access;
type Nested_TT is limited record
TT_Comp : aliased TT;
end record;
... |
3,739 | ada | 5 | HeisenbugLtd/flac-ada | sources/flac-headers-stream_info.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- 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 H... |
3,740 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr16.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr16.adb<gh_stars>1-10
-- { dg-do compile }
with Discr16_G;
with Discr16_Cont; use Discr16_Cont;
procedure Discr16 is
generic
type T is (<>);
function MAX_ADD_G(X : T; I : INTEGER) return T;
function MAX_ADD_G(X : T; I : INT... |
3,741 | ada | 26 | damaki/libkeccak | tests/unit_tests/keccakf_tests.adb | -------------------------------------------------------------------------------
-- Copyright (c) 2016, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source... |
3,742 | ada | 20 | charlie5/lace | 1-base/lace/source/environ/lace-environ-os_commands.ads | with
lace.Environ.Paths;
package lace.Environ.OS_Commands
--
-- Allows running of operating system commands.
--
is
function Path_to (Command : in String) return Paths.Folder;
procedure run_OS (command_Line : in String;
Input : in String := "");
--
-- Discards any outpu... |
3,743 | ada | 0 | strenkml/EE368 | memsim-master/src/hdl_generator.ads |
with Memory; use Memory;
-- Package for generating HDL.
package HDL_Generator is
-- Generate HDL.
-- This function returns a string containing VHDL.
function Generate(mem : Memory_Pointer;
name : String;
addr_bits : Positive) return String;
end HDL... |
3,744 | ada | 0 | Tim-Tom/scratch | random-art/ada/src/RandomArt.adb | <filename>random-art/ada/src/RandomArt.adb
with Ada.Sequential_IO;
with Expressions; use Expressions;
procedure RandomArt is
type Byte is mod 256;
for Byte'Size use 8;
package Byte_IO is new Ada.Sequential_IO(Byte);
Scale : constant := 150;
Size : constant := 2*Scale + 1;
procedure GreyScale(node : n... |
3,745 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/function_declaration.adb | <reponame>ouankou/rose
function Function_Declaration return Integer is
begin
return 0;
end Function_Declaration;
|
3,746 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_19/problem_19.adb | package body problem_19 is
function Solution_1 return Integer is
Start_Year : constant Integer := 1901;
End_Year : constant Integer := 2000;
Sundays : Integer := 0;
Offset : constant array (Natural range 0 .. 11) of Natural := (
0, 3, 2, 5, 0, 3, 5, 1, 4, 6, 2, 4
... |
3,747 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/weak2.adb | -- { dg-do compile }
package body Weak2 is
function F return Integer is
begin
return Var;
end;
end Weak2;
|
3,748 | ada | 0 | joewing/arbitrary | arbitrary-trig.ads | <filename>arbitrary-trig.ads
--------------------------------------------------------------------------
-- Arbitrary Precision Math Library: Trigonometric Functions
-- <NAME> 20020320 <> 20020327
--------------------------------------------------------------------------
package Arbitrary.Trig is
function Sin(a : Ar... |
3,749 | ada | 7 | stcarrez/resource-embedder | regtests/expect/ada/bundle.ads | <reponame>stcarrez/resource-embedder<gh_stars>1-10
-- Advanced Resource Embedder 1.2.0
with Ada.Streams;
package Bundle is
type Content_Access is access constant Ada.Streams.Stream_Element_Array;
-- Returns the data stream with the given name or null.
function Get_Content (Name : String) return
Conte... |
3,750 | ada | 2 | reznikmm/webdriver | source/webdriver-remote-sessions.adb | <filename>source/webdriver-remote-sessions.adb
-- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.JSON.Values;
with League.String_Vectors;
separate (WebDriver.Remote)
package body Sessions ... |
3,751 | ada | 0 | cocolab8/cocktail | reuse/ada/stringmd.adb | -- $Id: StringM.mi,v 1.5 1993/08/18 15:06:51 grosch rel $
-- $Log: StringM.mi,v $
-- Ich, <NAME>, Informatiker, Sept. 1994
with StringM, Strings, Text_Io;
use StringM, Strings, Text_Io;
procedure StringMD is
procedure do_it is
s : tString;
r : tStringRef;
begin
Put ("enter strings, one per line, - termin... |
3,752 | ada | 1 | MatrixMike/AdaDemo1 | st/src/button.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
3,753 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35a07d.ada | -- C35A07D.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... |
3,754 | ada | 0 | fintatarta/pulsada | test/src/pulsada_test-main.adb | with Pulse_Simple_H; use Pulse_Simple_H;
with Pulse_Sample_H; use Pulse_Sample_H;
with Pulse_Def_H; use Pulse_Def_H;
with Interfaces.C.Strings; use Interfaces.C.Strings, Interfaces.C;
with Ada.Text_IO; use Ada.Text_IO;
procedure Pulsada_Test.Main is
pragma Linker_Options ("-lpulse");
pragma Linker_Option... |
3,755 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | examples/nrf24_sender/main.adb | with MSP430_SVD; use MSP430_SVD;
with MSPGD.Board; use MSPGD.Board;
with MSPGD.GPIO; use MSPGD.GPIO;
with MSPGD.GPIO.Pin;
with Drivers.Text_IO;
with Drivers.NRF24;
procedure Main is
pragma Preelaborate;
package CE is new MSPGD.GPIO.Pin (Port => 2, Pin => 0, Direction => Output);
package IRQ is new MSPGD.GPI... |
3,756 | ada | 204 | spr93/whitakers-words | src/latin_utils/latin_utils-inflections_package-propack_record_io.adb | -- 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). Permission i... |
3,757 | ada | 7 | Fabien-Chouteau/coffee-clock | src/lcd_graphic_backend.ads | -------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
3,758 | ada | 0 | reznikmm/gela | source/oasis/program-elements-infix_operators.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Expressions;
with Program.Elements.Operator_Symbols;
package Program.Elements.Infix_Operators is
pragma Pure (Program.Elements.Infix_Operators);... |
3,759 | ada | 5 | jhumphry/auto_counters | tests/auto_counters_suite-refcounted_flyweights_tests.adb | <gh_stars>1-10
-- Auto_Counters_Suite.Refcounted_Flyweights_Tests
-- Unit tests for Auto_Counters Refcounted Flyweights packages
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ada.Containers, Ada.Finalization;
with AUnit.Assertions;
with Basic_Refcounted_Flyweights;
with Protected_Refcounted_Flyw... |
3,760 | ada | 6 | yannickmoy/SPARKZumo | src/drivers/zumo_motors.ads | <filename>src/drivers/zumo_motors.ads
pragma SPARK_Mode;
with Types; use Types;
-- @summary
-- Control for the robot's motors
--
-- @description
-- This package exposes on interface to control the robot's motors
--
package Zumo_Motors is
-- True if the package has been init'd
Initd : Boolean := False;
... |
3,761 | ada | 15 | My-Colaborations/dynamo | src/gnat/sinfo.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,762 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-segment_line.adb | <reponame>charlie5/lace-alire<filename>3-mid/opengl/source/lean/model/opengl-model-segment_line.adb<gh_stars>1-10
with
openGL.Primitive.indexed,
openGL.Primitive,
ada.unchecked_Deallocation;
package body openGL.Model.segment_line
is
function to_segment_line_Model (Color : in openGL.Color) return I... |
3,763 | ada | 7 | stcarrez/atlas | src/model/atlas-reviews-models.adb | <gh_stars>1-10
-----------------------------------------------------------------------
-- Atlas.Reviews.Models -- Atlas.Reviews.Models
-----------------------------------------------------------------------
-- File generated by Dynamo DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generat... |
3,764 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-zchuni.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,765 | ada | 7 | 98devin/ada-gba-dev | src/GBA.Handles.Backgrounds.ads | <reponame>98devin/ada-gba-dev
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Display.Backgrounds;
use GBA.Display.Backgrounds;
with Interfaces;
use Interfaces;
package GBA.Handles.Backgrounds is
type BG_Ref is interface;
function Kind (BG : BG_Ref) return BG_Kind is abstr... |
3,766 | ada | 0 | ytomino/gnat4drake | s-taprop.ads | pragma License (Unrestricted);
with System.Tasking;
package System.Task_Primitives.Operations is
pragma Preelaborate;
procedure Abort_Task (T : System.Tasking.Task_Id);
end System.Task_Primitives.Operations;
|
3,767 | ada | 0 | Black-Photon/Programming-Language-of-the-Month | April/rod_control.ads | with types;
package rod_control is
procedure callback (Control_Rods : in out types.Rod_Array; Temperature : types.Kilojoule; Output : types.Kilojoule);
private
Last_Temp : types.Kilojoule := 0.000;
end rod_control; |
3,768 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/client/tkmrpc-clients-ike.adb | <filename>specs/ada/client/tkmrpc-clients-ike.adb<gh_stars>0
with Tkmrpc.Transport.Client;
with Tkmrpc.Request.Ike.Tkm_Version.Convert;
with Tkmrpc.Request.Ike.Tkm_Limits.Convert;
with Tkmrpc.Request.Ike.Tkm_Reset.Convert;
with Tkmrpc.Request.Ike.Nc_Reset.Convert;
with Tkmrpc.Request.Ike.Nc_Create.Convert;
with Tkmrpc.... |
3,769 | ada | 14 | Fabien-Chouteau/usb_embedded | src/usb-device-hid.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- --
-- ... |
3,770 | ada | 33 | ytomino/drake | source/directories/machine-apple-darwin/a-dirinf.adb | <filename>source/directories/machine-apple-darwin/a-dirinf.adb
with Ada.Calendar.Naked;
with Ada.Exception_Identification.From_Here;
with Ada.Unchecked_Conversion;
with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Native_Credentials;
with System.Zero_Terminated_Strings;
with C.errno;
with... |
3,771 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-ststop.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
3,772 | ada | 20 | charlie5/lace | 1-base/lace/source/strings/lace-strings-fixed.ads | <filename>1-base/lace/source/strings/lace-strings-fixed.ads
-- Preconditions in this unit are meant for analysis only, not for run-time
-- checking, so that the expected exceptions are raised. This is enforced by
-- setting the corresponding assertion policy to Ignore.
pragma Assertion_Policy (Pre => Ignore);
with... |
3,773 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_69.ads | <reponame>Tim-Tom/project-euler
package Problem_69 is
-- Euler's Totient function, φ(n) [sometimes called the phi function], is used to determine the
-- number of numbers less than n which are relatively prime to n. For example, as 1, 2, 4, 5, 7,
-- and 8, are all less than nine and relatively prime to nine, φ... |
3,774 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c61008a.ada | -- C61008A.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... |
3,775 | ada | 1 | faelys/natools-web | generated/natools-static_maps-web-fallback_render-commands.ads | <reponame>faelys/natools-web<gh_stars>1-10
package Natools.Static_Maps.Web.Fallback_Render.Commands is
pragma Pure;
function Hash (S : String) return Natural;
end Natools.Static_Maps.Web.Fallback_Render.Commands;
|
3,776 | ada | 7 | stcarrez/resource-embedder | src/are-installer-merges.adb | -----------------------------------------------------------------------
-- are-installer-merges -- Web file merge
-- Copyright (C) 2020, 2021 <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 Licens... |
3,777 | ada | 2 | JailbreakFox/LightWeightRepository | ZeroMQ/filecode/examples/Ada/zmq-examples-server.adb | with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.Messages;
with Ada.Text_IO; use Ada.Text_IO;
procedure ZMQ.examples.Server is
ctx : ZMQ.Contexts.Context;
s : ZMQ.Sockets.Socket;
resultset_string : constant String := "OK";
begin
-- Initialise 0MQ context, requesting a single application thread
-- a... |
3,778 | ada | 24 | svn2github/matreshka | tools/ayacc/src/lexical_analyzer.ads | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Send bug reports for ayacc to <EMAIL>
--
-- Redistribution and use in... |
3,779 | ada | 0 | thierr26/ada-apsepp | src/_test/helpers/apsepp-test_node_class-runner_sequential-w_slave_nodes.adb | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Exceptions,
Ada.Unchecked_Deallocation,
Apsepp.Generic_Shared_Instance.Access_Setter,
Apsepp.Test_Node_Class.Private_Test_Reporter;
package body Apsepp.Test_Node_Class.Runner_Sequential.W_Slave_Nodes is
... |
3,780 | ada | 0 | KLOC-Karsten/ada_projects | nucleo_f446re/blinky/src/blinky.adb |
-- Copyright (c) 2021, <NAME> (<EMAIL>)
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- 1. Redistributions of source code must retain the above copyright notice,
-- this list o... |
3,781 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnarl/s-btstch.ads | <reponame>JCGobbi/Nucleo-STM32G474RE<filename>bb-runtimes/runtimes/ravenscar-full-stm32g474/gnarl/s-btstch.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) CO... |
3,782 | ada | 52 | onox/orka | orka/src/orka/interface/orka-rendering-programs-uniforms.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 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
-... |
3,783 | ada | 60 | RREE/ada-util | regtests/util-log-tests.adb | -----------------------------------------------------------------------
-- log.tests -- Unit tests for loggers
-- Copyright (C) 2009, 2010, 2011, 2013, 2015, 2018, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in... |
3,784 | ada | 20 | charlie5/lace | 3-mid/opengl/private/gl/source/gl-pointers.ads | <reponame>charlie5/lace<filename>3-mid/opengl/private/gl/source/gl-pointers.ads<gh_stars>10-100
with
GL.lean,
Interfaces.C.Strings,
System;
package GL.Pointers
--
-- Provides pointer conversions.
--
is
use Interfaces;
function to_GLvoid_access (From : in system.Address) return access GL... |
3,785 | ada | 4 | davidkristola/vole | vole_lex_io.adb |
package body vole_lex_io is
-- gets input and stuffs it into 'buf'. number of characters read, or YY_NULL,
-- is returned in 'result'.
procedure YY_INPUT(buf: out unbounded_character_array; result: out integer; max_size: in integer) is
c : character;
i : integer := 1;
loc : integer := buf'first;
begin
... |
3,786 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1308a.ada | -- CC1308A.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... |
3,787 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/bootloader/flash.adb | <gh_stars>1-10
with System.Machine_Code; use System.Machine_Code;
with STM32_SVD.Flash; use STM32_SVD.Flash;
with STM32_SVD; use STM32_SVD;
with System;
package body Flash is
procedure Init is
begin
null;
end Init;
procedure Unlock is
begin
Flash_Periph.KEYR := 16#4567_0123#;
Flash_P... |
3,788 | ada | 13 | annexi-strayline/AURA | ui_primitives.ads | <reponame>annexi-strayline/AURA
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implem... |
3,789 | ada | 0 | kochab/simulatedannealing-ada | ImgAnnealing/src/raii.adb | with Ada.Text_IO;
package body RAII is
overriding procedure Finalize (This : in out Controlled_File) is
begin
if Ada.Text_IO.Is_Open (This.File) then
Ada.Text_IO.Close (This.File);
end if;
end Finalize;
end RAII;
|
3,790 | ada | 80 | thindil/steamsky | tests/game-test_data-tests-attributes_container.ads | package Game.Test_Data.Tests.Attributes_Container is
end Game.Test_Data.Tests.Attributes_Container;
|
3,791 | ada | 0 | Ada-bindings-project/a-lmsensors | tests/src/sensors-tests-main.adb | with Ada.Text_IO; use Ada.Text_IO;
with Sensors.Images;
procedure Sensors.Tests.Main is
use Sensors.Images;
S : constant Sensors.Instance := Get_Instance;
begin
Put_Line (Sensors.Version);
for chip of S.Detected_Chips loop
Put_Line (Image (chip));
-- for Sensor of Chip loop
-- null;
... |
3,792 | ada | 3 | EticaAI/HXL-Data-Science-file-formats | tests/hdplisp/other-inspirations/ada-extra.adb | -- TODO: maybe add examples of Ada with contracts
-- @see https://learn.adacore.com/ |
3,793 | ada | 0 | alire-project/sdlada | src/sdl-libraries.adb | --------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2018 <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising from the ... |
3,794 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.0.1/wisitoken-lexer-re2c.adb | <filename>.emacs.d/elpa/wisi-3.0.1/wisitoken-lexer-re2c.adb
-- Abstract:
--
-- see spec.
--
-- Copyright (C) 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the... |
3,795 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/math/s-lidosq.ads | -----------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,796 | ada | 79 | Roldak/OpenGLAda | src/images/gl-images.adb | <filename>src/images/gl-images.adb<gh_stars>10-100
with Ada.Calendar;
with Ada.Streams.Stream_IO;
with Ada.Unchecked_Deallocation;
with GID;
with GL.Types;
with GL.Objects.Textures.Targets;
package body GL.Images is
generic
type Component is mod <>;
Num_Components : Types.Int;
Width, Height : Ty... |
3,797 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming8_pkg3.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/renaming8_pkg3.adb<gh_stars>1-10
package body Renaming8_Pkg3 is
function Last_Index return Integer is
begin
return 16;
end;
end Renaming8_Pkg3;
|
3,798 | ada | 0 | AntonioRamosNieto/TFG-STM32F429 | STM32F4/ToyOBDH/src/storage.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, Universidad Politécnica de Madrid --
-- --
-- ... |
3,799 | ada | 0 | Letractively/ada-util | src/util-properties-bundles.ads | <filename>src/util-properties-bundles.ads<gh_stars>0
-----------------------------------------------------------------------
-- properties-bundles -- Generic name/value property management
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed unde... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.