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 |
|---|---|---|---|---|---|
1,700 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/opengl-terrain.adb | <gh_stars>1-10
with
openGL.Model.Terrain,
openGL.IO,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body openGL.Terrain
is
type Heightmap_view is access all height_Map;
type Heightmap_Grid is array (math.Index range <>,
math.Index range <>) of ... |
1,701 | ada | 33 | ytomino/drake | source/directories/machine-apple-darwin/s-natcre.adb | with System.Address_To_Named_Access_Conversions;
with System.Growth;
with System.Zero_Terminated_Strings;
with C.grp;
with C.pwd;
package body System.Native_Credentials is
use type C.pwd.struct_passwd_ptr;
use type C.grp.struct_group_ptr;
use type C.signed_int;
-- use type C.sys.types.gid_t;
-- use type C.sy... |
1,702 | ada | 0 | AntonMeep/hmac | tests/src/hmac_sha1_streams_tests.ads | with AUnit.Test_Fixtures;
with AUnit.Test_Suites;
package HMAC_SHA1_Streams_Tests is
function Suite return AUnit.Test_Suites.Access_Test_Suite;
private
type Fixture is new AUnit.Test_Fixtures.Test_Fixture with null record;
procedure HMAC_SHA1_RFC2202_Test (Object : in out Fixture);
end HMAC_SHA1_Streams_Test... |
1,703 | ada | 0 | fintatarta/eugen | src/Projects/Backup/eu_projects-identifiers-full.ads | with Ada.Containers.Vectors;
package EU_Projects.Identifiers.Full is
use type Ada.Containers.Count_Type;
type Segment_Index is range 1 .. Integer'Last;
type Full_ID is private;
Empty_Path : constant Full_ID;
function "=" (X, Y : Full_ID) return Boolean;
function "<" (X, Y : Full_ID) return Boolea... |
1,704 | ada | 0 | Fabien-Chouteau/COBS | tests/src/testsuite-encode.adb | with Ada.Unchecked_Deallocation;
with Test_Utils.Abstract_Encoder.COBS_Simple;
with Test_Utils.Abstract_Encoder.COBS_Stream;
with Test_Utils.Abstract_Encoder.COBS_Queue;
with Testsuite.Encode.Basic_Tests;
with Testsuite.Encode.Multiframe_Tests;
package body Testsuite.Encode is
Kind : Encoder_Kind := Encoder_Kind... |
1,705 | ada | 2 | thindil/tashy2 | src/tk/tk-wm.adb | -- Copyright (c) 2021 <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
--
-- Unless required by applicable law or agre... |
1,706 | ada | 5 | jhumphry/auto_counters | src/flyweights/flyweights-untracked_ptrs.adb | <reponame>jhumphry/auto_counters<gh_stars>1-10
-- flyweights-untracked_ptrs.adb
-- A package of generalised references which point to resources inside a
-- Flyweight without tracking or releasing those resources
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for an... |
1,707 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/stm32f429_discovery/framebuffer_ili9341.adb | <filename>software/hal/boards/stm32f429_discovery/framebuffer_ili9341.adb
with Ada.Unchecked_Conversion;
with STM32.Board; use STM32.Board;
with STM32.Device; use STM32.Device;
with STM32.GPIO; use STM32.GPIO;
with STM32.SPI; use STM32.SPI;
with HAL.SPI;
package body Framebuffer... |
1,708 | ada | 0 | twdroeger/ada-awa | awa/plugins/awa-tags/src/model/awa-tags-models.adb | <gh_stars>0
-----------------------------------------------------------------------
-- AWA.Tags.Models -- AWA.Tags.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-body.xhtml
-- Ada Generator: https://... |
1,709 | ada | 7 | kimtg/euler-ada | euler21.adb | with Ada.Text_IO;
procedure Euler21 is
function Dsum(N : Natural) return Natural is
Sum : Natural := 0;
begin
for X in 1 .. N / 2 loop
if N mod X = 0 then
Sum := Sum + X;
end if;
end loop;
return Sum;
end;
function Amicable(N : Natural) return Boolean is
D : Natur... |
1,710 | ada | 15 | My-Colaborations/dynamo | src/gnat/mlib-tgt-specific.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,711 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/lv-objx-btnm.ads | with Lv.Style;
with System;
package Lv.Objx.Btnm is
subtype Instance is Obj_T;
Btnm_Ctrl_Code : constant := 16#80#;
Btnm_Ctrl_Mask : constant := 16#C0#;
Btnm_Width_Mask : constant := 16#07#;
Btnm_Hide_Mask : constant := 16#08#;
Btnm_Repeat_Disable_Mask : const... |
1,712 | ada | 192 | rocher/Ada_Drivers_Library | boards/stm32_common/stm32f429disco/stm32-board.ads | <filename>boards/stm32_common/stm32f429disco/stm32-board.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
1,713 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-graphics-shape.ads | <filename>include/sf-graphics-shape.ads
--//////////////////////////////////////////////////////////
-- SFML - Simple and Fast Multimedia Library
-- Copyright (C) 2007-2015 <NAME> (<EMAIL>)
-- This software is provided 'as-is', without any express or implied warranty.
-- In no event will the authors be held liable for ... |
1,714 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_001e.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,715 | ada | 33 | ytomino/drake | source/tasking/required/s-tpobop.adb | <reponame>ytomino/drake
with Ada.Exception_Identification.From_Here;
with Ada.Exceptions.Finally;
with System.Address_To_Named_Access_Conversions;
with System.Soft_Links;
with System.Synchronous_Objects.Abortable;
with System.Tasks;
package body System.Tasking.Protected_Objects.Operations is
use Ada.Exception_Identi... |
1,716 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization17_pkg.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization17_pkg.ads
package Loop_Optimization17_Pkg is
type vector is array (1..3) of Long_Float;
type Rec is
record
I : Integer;
V1, V2 : Vector;
S : Long_Float;
end record;
for Rec use
record
... |
1,717 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr19.adb | -- { dg-do compile }
procedure Discr19 is
type Arr_Int_T is array (Integer range <>) of Integer;
type Abs_Tag_Rec_T (N : Integer; M : Integer) is abstract tagged record
Arr_Int : Arr_Int_T (1..M);
end record;
type Tag_Rec_T (M : Integer)
is new Abs_Tag_Rec_T (N => 1, M => M) with null record;... |
1,718 | ada | 1 | philipbjorge/Parallel-Elliptic-Partial-Differential-Equation-Solver | multigrid.adb | <gh_stars>1-10
-- <NAME>
-- http://www.philipbjorge.com
-- Copyright (c) 2011 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining
-- a copy of this hardware, software, and associated documentation files
-- (the "Product"), to deal in the Product without restriction, including
-- without ... |
1,719 | ada | 1 | Hathoute/ENSEEIHT | PIM/TP1_Algorithmique/compte_jules.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Compte_Jules is
Objectif: Integer; -- Somme souhaitée sur le compte de Jules
Age: Integer; -- Age de Jules
Solde: Integer; -- Solde du compte de Jules
begin
-- Demander la somme souhaitée
G... |
1,720 | ada | 5 | ianloic/unladen-swallow | Util/llvm/bindings/ada/llvm/llvm.ads | -- This file is generated by SWIG. Do *not* modify by hand.
--
with Interfaces.C.Extensions;
package llvm is
-- LLVMCtxt
--
type LLVMCtxt is new Interfaces.C.Extensions.opaque_structure_def;
type LLVMCtxt_array is
array (Interfaces.C.size_t range <>) of aliased llvm.LLVMCtxt;
type LLVMCtxt_vie... |
1,721 | ada | 0 | JeremyGrosser/usb_embedded | tests/support/usb_testing-udc_stub.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- ... |
1,722 | ada | 3 | charlie5/aIDE | source/types/adam-a_type-array_type.ads | <reponame>charlie5/aIDE
with
AdaM.subtype_Indication,
AdaM.component_Definition,
Ada.Streams;
package AdaM.a_Type.array_type
is
type Item is new a_Type.composite_Type with private;
type View is access all Item'Class;
-- Forge
--
function new_Type (Name : in String := "") retur... |
1,723 | ada | 3 | stcarrez/ada-css | src/css-core-compare.ads | <filename>src/css-core-compare.ads
-----------------------------------------------------------------------
-- css-core-compare -- Comparision on CSS rule references
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
1,724 | ada | 0 | svn2github/matreshka | source/league/matreshka-json_types.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,725 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversWB55x/stm32-gpio.ads | <filename>arch/ARM/STM32/driversWB55x/stm32-gpio.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- ... |
1,726 | ada | 0 | sonneveld/adazmq | examples/src/mtrelay.adb | <reponame>sonneveld/adazmq
-- Multithreaded relay
with Ada.Command_Line;
with Ada.Text_IO;
with GNAT.Formatted_String;
with ZMQ;
procedure MTRelay is
use type GNAT.Formatted_String.Formatted_String;
type Context_Access is access all ZMQ.Context_Type'Class;
task Step_1_Task is
entry Start (Context... |
1,727 | ada | 1 | charlie5/lace-alire | 1-base/math/source/generic/any_math-any_random.adb | with
ada.Numerics.Float_random,
ada.Numerics.Discrete_random;
package body any_Math.any_Random
is
use ada.Numerics;
package Boolean_random is new ada.numerics.discrete_Random (Boolean);
real_Generator : Float_random .Generator;
boolean_Generator : Boolean_random.Generator;
function ra... |
1,728 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/interface2.adb | -- { dg-do run }
procedure interface2 is
package Types is
type Iface is synchronized interface;
type Any_Iface is access all Iface'Class;
--
protected type T_PO (S : Integer) is new Iface with end;
task type T_Task (R : Any_Iface);
--
Obj_1 : aliased T_PO (0);
Obj_2 : T_Task (Obj_1'... |
1,729 | ada | 0 | iyan22/AprendeAda | ejercicios1/prueba_grafico.adb | <filename>ejercicios1/prueba_grafico.adb<gh_stars>0
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
with grafico;
-- <NAME> ;)
procedure prueba_grafico is
n1:integer:=0;
begin
-- caso de prueba 1:
n1:=4;
put("El resultado deberia de ser:");
new_line;
put("*000");
... |
1,730 | ada | 0 | strenkml/EE368 | memsim-master/src/random_enum.adb |
function Random_Enum(value : Natural) return Enum_Type is
first : constant Natural := Enum_Type'Pos(Enum_Type'First);
last : constant Natural := Enum_Type'Pos(Enum_Type'Last);
count : constant Natural := last - first + 1;
rand : constant Natural := value mod count;
begin
return Enum_Type'Val(first + r... |
1,731 | ada | 3 | spr93/whitakers-words | src/support_utils/support_utils-word_support_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... |
1,732 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32f103/stm32_svd-bkp.ads | <reponame>morbos/Ada_Drivers_Library
-- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.BKP is
pragma Preelaborate;
---------------
-- Registers --
-------------... |
1,733 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/errout.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,734 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35503k.ada | -- C35503K.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... |
1,735 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization17_pkg.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/loop_optimization17_pkg.adb
package body Loop_Optimization17_Pkg is
function F (V : Vector) return Vector is begin return V; end;
end Loop_Optimization17_Pkg;
|
1,736 | ada | 0 | gtraines/ada_word_count | awordcount.adb |
-- Pass a filename as a command line parameter
-- Parse and print out stats about the file
-- - Characters
-- - Lines
-- - Words
--
--
with Ada.Command_Line;
with Ada.Integer_Text_IO;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with GNAT.IO_Aux;
with GNAT.Array_Sp... |
1,737 | ada | 0 | strenkml/EE368 | memsim-master/src/random_enum.ads |
-- Select an enumeration value uniformly at random.
generic
type Enum_Type is (<>);
function Random_Enum(value : Natural) return Enum_Type;
|
1,738 | ada | 2 | adithyap/coursework | ProgrammingLanguages/Ada/Concurrency/hw1.adb | with Text_Io;
-- ------------------
procedure hw1 is
-- Package usage declarations
use Text_Io;
package Int_Io is new Integer_Io(Integer);
use Int_Io;
-- Task declarations
task T1 is
entry start;
end T1;
task T2 is
entry start;
end T2;
-- Task definitions
-- -----------------
task body T1 is
beg... |
1,739 | ada | 192 | rocher/Ada_Drivers_Library | components/src/motion/mma8653/mma8653.ads | <gh_stars>100-1000
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017, AdaCore --
-- ... |
1,740 | ada | 0 | fintatarta/eugen | src/Parsers/XML/project_processor-parsers-xml_parsers-sub_parsers.ads | with EU_Projects.Nodes.Partners;
-- with EU_Projects.Identifiers;
-- with EU_Projects.Costs;
with EU_Projects.Nodes.Timed_Nodes.Milestones;
with EU_Projects.Nodes.Action_Nodes.WPs;
with EU_Projects.Nodes.Action_Nodes.Tasks;
with EU_Projects.Nodes.Timed_Nodes.Deliverables;
with EU_Projects.Nodes.Risks;
with DOM.Core.... |
1,741 | ada | 3 | daveshields/AdaEd | demos/screenio.ada |
----------------------------------------------------------------------
--
-- Screen Input Output Package
--
-- written by
--
-- <NAME>
-- <NAME>
--
-- Ada Project
-- Courant Institute
-- New Y... |
1,742 | ada | 0 | strenkml/EE368 | memsim-master/src/memsim.adb | <reponame>strenkml/EE368<gh_stars>0
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Text_IO; use Ada.Text_IO;
with Memory; use Memory;
with Parser;
with Device;
with Benchmark; use Benchmark;
with Benchmark... |
1,743 | ada | 24 | svn2github/matreshka | source/league/matreshka-internals-calendars-formatting.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,744 | ada | 33 | kqr/qweyboard | src/qweyboard/qweyboard-languages-parser.adb | <filename>src/qweyboard/qweyboard-languages-parser.adb
package body Qweyboard.Languages.Parser is
procedure Finalize (State : in out Lexer_State) is
begin
if IO.Is_Open (State.File) then
IO.Close (State.File);
end if;
end Finalize;
procedure Parse (File_Name : String) is
State : ... |
1,745 | ada | 24 | svn2github/matreshka | source/league/league-calendars-iso_8601.ads | <filename>source/league/league-calendars-iso_8601.ads<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,746 | ada | 0 | daemonl/openapi-codegen | snapshot/Ada/server-properties.ada | swagger.dir=web
swagger.web.enable=false
swagger.ui.enable=true
swagger.port=8080
swagger.apps=app
swagger.users=users
swagger.key=<KEY>
app.list=1
app.1.client_id=test-app
app.1.client_secret=test-app-secret
app.1.scope=none
users.list=1,2
users.1.username=admin
users.1.password=<PASSWORD>
users.2.username=test
user... |
1,747 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-valuators-sliders-scrollbars.adb |
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Valuators.Sliders.Scrollbars is
procedure scrollbar_set_draw_hook
(W, D : in System.Address);
pragma Import (C, scrollbar_set_draw_hook, "scrollbar_set_draw_hook");
pragma Inline (scrollbar_... |
1,748 | ada | 19 | jquorning/ada-security | src/security-policies-roles.ads | <filename>src/security-policies-roles.ads
-----------------------------------------------------------------------
-- security-policies-roles -- Role based policies
-- Copyright (C) 2010, 2011, 2012, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
1,749 | ada | 1 | sparre/JSA | src/jsa.ads | -- Root name-space for general, reusable packages from
-- JSA Research & Innovation.
--
-- Licence: ISC
package JSA
with Pure
is
end JSA;
|
1,750 | ada | 0 | skill-lang/adaCommon | src/skill-field_types-constant_types.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ implementation of builtin field types --
-- |___/_|\_\_|_|____| by: <NAME> --
-... |
1,751 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putaim.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-putaim.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,752 | ada | 10 | mgrojo/smk | src/ptrace_binding/x86_64_linux_gnu_asm_ptrace_h.ads | <filename>src/ptrace_binding/x86_64_linux_gnu_asm_ptrace_h.ads<gh_stars>1-10
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
package x86_64_linux_gnu_asm_ptrace_h is
-- SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
-- For
-- this struct defines the way the regist... |
1,753 | ada | 2,201 | yangyangisyou/GildedRose-Refactoring-Kata | Ada/gilded_rose_tests.adb | <filename>Ada/gilded_rose_tests.adb
with Gilded_Rose;
use Gilded_Rose;
with Items;
use Items;
with Ahven;
with Ada.Strings.Unbounded;
package body Gilded_Rose_Tests is
procedure Initialize(T : in out Test) is
begin
Set_Name(T, "Gilded_Rose_Test");
Ahven.Framework.Add_Test_Routine(T, Test_Gilded_Rose'Acc... |
1,754 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-dynpri.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
1,755 | ada | 0 | faelys/natools | src/natools-s_expressions-printers-pretty-config.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2013-2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
1,756 | ada | 60 | RREE/ada-util | src/sys/encoders/util-encoders-hmac-sha1.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- util-encoders-hmac-sha1 -- Compute HMAC-SHA1 authentication code
-- Copyright (C) 2011, 2017, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not u... |
1,757 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/s-soflin.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,758 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/a-intnam__zynq.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
1,759 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c35704c.ada | -- C35704C.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... |
1,760 | ada | 80 | thindil/steamsky | src/crew.ads | -- 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... |
1,761 | ada | 1 | bracke/websitegenerator | src/globals.adb | with Ada.Characters.Handling;
with Ada.Strings.Fixed;
with Ada.Strings;
package body Globals is
Environment_String : String :=
Ada.Characters.Handling.To_Upper (
Ada.Environment_Variables.Value ("OS", "linux"));
Unix_Lineending : constant String
:= String'(1 => ASCII.LF);
Windows_Line... |
1,762 | ada | 0 | rtoal/enhanced-dining-philosophers | ada/buffers.adb | ------------------------------------------------------------------------------
-- buffers.adb
--
-- Implementation of the Buffers package.
------------------------------------------------------------------------------
package body Buffers is
protected body Buffer is
entry Read (I: out Item) when Coun... |
1,763 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-raise_statements.adb | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Raise_Statements is
function Create
(Raise_Token : not null Program.Lexical_Elements
.Lexical_Element_Access;
Raise... |
1,764 | ada | 0 | shintakezou/adaplayground | src/protect2.adb | <filename>src/protect2.adb
--
-- See protect.adb
--
-- This test proves that multiple readers on a protected
-- object are possible when using function: in the example
-- protect.adb the problem was the delay.
--
-- (Hence the name One_A_Time must refer to the writers)
--
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Cal... |
1,765 | ada | 33 | kqr/qweyboard | src/backends/x11/input_backend.adb | <filename>src/backends/x11/input_backend.adb
with Ada.Finalization;
with XLib_H; use XLib_H;
with XInput2_H; use XInput2_H;
with XEvent; use XEvent;
with XTest_H; use XTest_H;
with Interfaces;
with Interfaces.C;
with Interfaces.C.Strings;
with Ada.Containers.Ordered_Maps;
with Ada.Containers.Ordered_Sets;
package body... |
1,766 | ada | 33 | ytomino/drake | source/calendar/a-calari.ads | <gh_stars>10-100
pragma License (Unrestricted);
package Ada.Calendar.Arithmetic is
-- Arithmetic on days:
type Day_Count is range
-366 * (1 + Year_Number'Last - Year_Number'First) ..
+366 * (1 + Year_Number'Last - Year_Number'First);
subtype Leap_Seconds_Count is Integer range -2047 .. 2047;
... |
1,767 | ada | 0 | Lucretia/old_nehe_ada95 | thirdparty/adasdl/thin/adasdl/AdaSDL/stdtest/testpalette.adb | <gh_stars>0
-- ----------------------------------------------------------------- --
-- --
-- This is free software; you can redistribute it and/or --
-- modify it under the terms of the GNU General Public --
-- License as publi... |
1,768 | ada | 0 | lumalisan/EspeblancaYLos7PPs | src/def_monitor.ads | package def_monitor is
protected type Monitor is
entry cadiraLock;
procedure cadiraUnlock;
entry menjarLock;
procedure menjarUnlock;
function ferMenjar return Boolean;
private
contCadires : Integer := 0;
potsMenjar : Boolean := False;
end Monitor;
end def_monitor;
|
1,769 | ada | 0 | GLADORG/template-compiler | src/compiler-parser.adb | pragma Ada_2012;
with Brackelib.Stacks;
with Ada.Characters.Conversions;
package body Compiler.Parser is
type State is
(State_Start, State_Inside_Handlebars, State_Inside_Component_Declaration,
State_Inside_Complex_Comment, State_Inside_Simple_Comment);
package State_Stacks is new Brackelib.Stacks (T => ... |
1,770 | ada | 1 | ScottWLoyd/ada_dynamic_libs | obj/b__test.adb | <filename>obj/b__test.adb<gh_stars>1-10
pragma Ada_95;
pragma Warnings (Off);
pragma Source_File_Name (testmain, Spec_File_Name => "b__test.ads");
pragma Source_File_Name (testmain, Body_File_Name => "b__test.adb");
pragma Suppress (Overflow_Check);
with Ada.Exceptions;
package body testmain is
E103 : Short_Intege... |
1,771 | ada | 5 | reznikmm/GNAT-FSF-builds | sanity-checking/tests/0007-tagged/src/plop.ads | package Plop is
type A is interface;
function Img (This : A) return String is abstract;
type B is new A with null record;
function Img (This : B) return String is ("B");
type C is new A with null record;
function Img (This : C) return String is ("C");
procedure Print (This : A'Class);
end Plop;... |
1,772 | ada | 2 | timo-cmd2/Lovelace | sources/eval_callback.ads | with Envs;
with Types;
package Eval_Callback is
type Eval_Func is access
function (MH : Types.Lovelace_Handle; Env : Envs.Env_Handle) return Types.Lovelace_Handle;
Eval : Eval_Func;
end Eval_Callback;
|
1,773 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Kaprekar-numbers/Ada/kaprekar-numbers.ada | <gh_stars>1-10
with Ada.Text_IO;
with Ada.Strings.Fixed;
procedure Kaprekar2 is
use Ada.Strings.Fixed;
To_Digit : constant String := "0123456789abcdefghijklmnopqrstuvwxyz";
type Int is mod 2 ** 64;
subtype Base_Number is Int range 2 .. 36;
From_Digit : constant array (Character) of Int :=
('0' ... |
1,774 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-basque.adb | <gh_stars>1-10
-- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Basque is
pragma Style_Checks ("-mr");
pragma Warnings (Off, "*variable*is never read and never assigned*");
pragma Warnings (Off, "*mode could be*instead of*");
pragma Warnings (Off, "*formal parameter.*is not... |
1,775 | ada | 5 | docandrew/troodon | include/xcb_xinerama.ads | <filename>include/xcb_xinerama.ads
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with xcb;
with bits_stdint_intn_h;
with bits_stdint_uintn_h;
with xproto;
with System;
package xcb_xinerama is
XCB_XINERAMA_MAJOR_VERSION : constant := 1; -- /usr/include/xcb/xinerama.h:22
XCB_... |
1,776 | ada | 0 | glencornell/ada-object-framework | examples/object_hierarchy/my_objects.ads | with Aof.Core.Objects;
with Widgets;
with Labels;
package My_Objects is
Top : aliased Widgets.Widget;
Form : aliased Widgets.Widget;
Label : aliased Labels.Label;
Row_Column_Layout : aliased Widgets.Widget;
Ok : aliased Widgets.Widget;
Cancel ... |
1,777 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_base_gstbasesrc_h.ads | <reponame>persan/A-gst
pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
limited with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstevent_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstelement_h;
with GStreamer.GST_L... |
1,778 | ada | 30 | jscparker/math_packages | disorderly/disorderly.ads | <reponame>jscparker/math_packages
-------------------------------------------------------------------------------
-- package Disorderly, Linear Random Number Generator
-- Copyright (C) 1995-2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is here... |
1,779 | ada | 33 | ytomino/drake | source/numerics/a-nscefu.ads | <filename>source/numerics/a-nscefu.ads
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Elementary_Functions;
with Ada.Numerics.Short_Complex_Types;
package Ada.Numerics.Short_Complex_Elementary_Functions is
new Generic_Complex_Elementary_Functions (Short_Complex_Types);
pragma Pure (Ada.Numerics.Sho... |
1,780 | ada | 0 | glencornell/ada-object-framework | examples/chained_signals/derived_objects.ads | <gh_stars>0
with Aof.Core.Root_Objects;
with Aof.Core.Objects;
package Derived_Objects is
type Derived_Object is new Aof.Core.Objects.Object with record
Id : Natural;
end record;
type Access_Derived_Object is access all Derived_Object;
procedure My_Slot (This : in Derived_Object);
procedur... |
1,781 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-surface.ads | <reponame>auzkok/libagar<filename>ada/original_2008/ada-gui/agar-gui-surface.ads
with SDL.video;
with SDL;
with agar.core.types;
with agar.core;
with agar.gui.pixelformat;
package agar.gui.surface is
-- types
type surface_t is new SDL.video.surface_t;
type surface_access_t is access all surface_t;
pragma conv... |
1,782 | ada | 52 | onox/orka | orka/src/orka/interface/orka-inputs-joysticks-filtering.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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
-... |
1,783 | ada | 0 | strenkml/EE368 | memsim-master/src/test-split.ads |
package Test.Split is
procedure Run_Tests;
end Test.Split;
|
1,784 | ada | 0 | RREE/Ada_Drivers_Library | examples/shared/serial_ports/src/serial_io-blocking.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2022, AdaCore --
-- ... |
1,785 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array24.adb | -- { dg-do compile }
-- { dg-options "-fdump-tree-optimized" }
procedure Array24 (N : Natural) is
S : String (1 .. N);
pragma Volatile (S);
begin
S := (others => '0');
end;
-- { dg-final { scan-tree-dump-not "builtin_unwind_resume" "optimized" } }
|
1,786 | ada | 52 | onox/orka | orka_transforms/src/x86/generic/orka-transforms-doubles-vectors.ads | <gh_stars>10-100
-- 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/licen... |
1,787 | ada | 33 | ytomino/drake | examples/acats/run_acats.adb | <filename>examples/acats/run_acats.adb
with Ada.Characters.Handling;
with Ada.Command_Line;
with Ada.Containers.Indefinite_Ordered_Sets;
with Ada.Containers.Indefinite_Ordered_Maps;
with Ada.Directories;
with Ada.Environment_Variables;
with Ada.Exceptions;
with Ada.Strings.Equal_Case_Insensitive;
with Ada.Strings.Fixed... |
1,788 | ada | 0 | cortlandstarrett/mcada | example_relationships/src/generic_fifo.ads | <filename>example_relationships/src/generic_fifo.ads
-- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code and its conte... |
1,789 | ada | 0 | simonjwright/VL53L1X | ada/vl53l1x_api_h.ads | <reponame>simonjwright/VL53L1X
pragma Ada_2012;
pragma Style_Checks (Off);
pragma Warnings ("U");
with Interfaces.C; use Interfaces.C;
with sys_ustdint_h;
with vl53l1_platform_h;
package VL53L1X_api_h is
VL53L1X_IMPLEMENTATION_VER_MAJOR : constant := 3; -- ../core/VL53L1X_api.h:78
VL53L1X_IMPLEMENTATION_VER_... |
1,790 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-dma.ads | -- Copyright (c) 2020 Raspberry Pi (Trading) Ltd.
--
-- SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from rp2040.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- DMA with separate read and write masters
pa... |
1,791 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Roots-of-a-function/Ada/roots-of-a-function.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_Io; use Ada.Text_Io;
procedure Roots_Of_Function is
package Real_Io is new Ada.Text_Io.Float_Io(Long_Float);
use Real_Io;
function F(X : Long_Float) return Long_Float is
begin
return (X**3 - 3.0*X*X + 2.0*X);
end F;
Step : constant Long_... |
1,792 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-locale.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,793 | ada | 0 | xuedong/mini-ada | tests/syntax/bad/testfile-params-4.adb | <reponame>xuedong/mini-ada<filename>tests/syntax/bad/testfile-params-4.adb
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure P(:integer) is begin x := 0; end;
begin P(0); end;
|
1,794 | ada | 4 | jfuica/bingada | src/q_csv-q_read_file.ads | <filename>src/q_csv-q_read_file.ads
--*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_csv-q_read_file.ads
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************... |
1,795 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/monitor/net/netproto.adb | ------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
1,796 | ada | 52 | onox/orka | orka_tools/src/orka_package_gltf.ads | <reponame>onox/orka<gh_stars>10-100
-- 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://w... |
1,797 | ada | 4 | faelys/gela-asis | source/asis/xasis/xasis-utils.ads | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- G E L A X A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
1,798 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses_direct_thin.ads | --
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces; use Interfaces;
with Interfaces.C_Streams;
with Notcurses_Thin;
with Interfaces.C.Strings;
with Interfaces.C.Extensions;
with System... |
1,799 | ada | 2 | thindil/tashy2 | tests/tk-wm-test_data-tests.ads | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with Gnattest_Generated;
package Tk.Wm.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tk.Wm.Test_Data
.Test with
null re... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.