id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
8,500 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-comms-lmcp_net_client-service-route_aggregation.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO; -- temporarily
with Ada.Containers.Vectors;
with DOM.Core.Elements;
with Ada.Characters.Handling;
with Route_Aggregator_Message_Conversions;
with UxAS.Messages.Route.RouteRequest; use UxAS.Messages.Route.RouteRequest;
with UxAS.Messages.Route.RoutePlanRequest; ... |
8,501 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbcpsp__arm.ads | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
8,502 | ada | 13 | annexi-strayline/AURA | registrar-registry.ads | <filename>registrar-registry.ads
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Imple... |
8,503 | ada | 1 | leo-brewin/adm-bssn-numerical | support/support.adb | <gh_stars>1-10
package body Support is
function max (a : in Real; b : in Real) return Real is
begin
if a > b
then return a;
else return b;
end if;
end;
function min (a : in Real; b : in Real) return Real is
begin
if a < b
then return a;
else return ... |
8,504 | ada | 0 | byllgrim/iictl | ch_conn.ads | <filename>ch_conn.ads
with Ada.Directories;
package Ch_Conn is
procedure Rejoin_Channels (Irc_Dir : String);
procedure Scan_Server (Srv_Dir : Ada.Directories.Directory_Entry_Type);
procedure Maintain_Channel_Connection
(Srv_Dir : Ada.Directories.Directory_Entry_Type;
Ch_Dir : Ada.Directori... |
8,505 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_36.adb | <reponame>Tim-Tom/project-euler
with Ada.Text_IO;
with Ada.Integer_Text_IO;
package body Problem_36 is
package IO renames Ada.Text_IO;
package I_IO renames Ada.Integer_Text_IO;
function Is_Palindrome(s : String) return Boolean is
left : Integer := s'First;
right : Integer := s'Last;
begin
... |
8,506 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal-gen_bounded_definite_queues.ads | -- Abstract:
--
-- A generic queue, allowing definite non-limited item types.
--
-- Copyright (C) 2004, 2008, 2009, 2011, 2017, 2019 Free Software Foundation All Rights Reserved.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as pu... |
8,507 | ada | 4 | Lucretia/ether | src/ether-forms.adb | -- -*- Mode: Ada -*-
-- Filename : ether-forms.adb
-- Description : Abstraction around the form data returned from the SCGI client (HTTP server).
-- Author : <NAME>
-- Created On : Tue May 1 18:04:04 2012
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Strings.Unbo... |
8,508 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/projet/src/registre.ads | <filename>1A/S5/PIM/projet/src/registre.ads<gh_stars>1-10
-- Spécification du module Registre.
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package registre is
type T_Registre is limited private;
type T_Donnee is private;
type T_Date is private;
type T_Tableau is array(1..2) of Integ... |
8,509 | ada | 32 | persan/AdaYaml | src/implementation/yaml-dom-node_memory.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
package body Yaml.Dom.Node_Memory is
procedure Visit (Object : in out Instance;
Value : not null access Node.Instance;
Previously_Visited : out Boolean) is
begi... |
8,510 | ada | 1 | dshadrin/AProxy | src/format/formatted_output.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- File: --
-- formatted_output.adb ... |
8,511 | ada | 11 | charlie5/aShell | test/tasks/concurrent_pipelines/test_concurrent_pipelines.adb | <reponame>charlie5/aShell
with
Shell.Commands.Safe,
Ada.Text_IO,
Ada.Exceptions;
procedure Test_Concurrent_Pipelines
is
use Ada.Text_IO,
Ada.Exceptions;
task Task_1;
task body Task_1
is
begin
for i in 1 .. 5_000
loop
declare
use Shell,
... |
8,512 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_xof.ads | -------------------------------------------------------------------------------
-- Copyright (c) 2019, <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 s... |
8,513 | ada | 5 | amvb/GUCEF | dependencies/agar/ada-core/agar-core-event.ads | with Agar.Core.Thin;
with System;
package Agar.Core.Event is
subtype Event_Access_t is Thin.Event.Event_Access_t;
subtype Event_Not_Null_Access_t is Thin.Event.Event_Not_Null_Access_t;
subtype Long_Natural is Long_Integer range 0 .. Long_Integer'Last;
procedure Init
(Event : in Event_Not_Null_A... |
8,514 | ada | 52 | onox/orka | orka_simd/src/x86/generic/orka-simd-sse2-doubles-arithmetic.adb | <filename>orka_simd/src/x86/generic/orka-simd-sse2-doubles-arithmetic.adb
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 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... |
8,515 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstpipeline_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbin_h;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstclock_h;
with System;
with glib;
limited with GStreamer.GST_Low_... |
8,516 | ada | 6 | jquorning/ada-el | samples/variables.adb | -----------------------------------------------------------------------
-- el -- Evaluate an EL expression
-- Copyright (C) 2009, 2010 Free Software Foundation, Inc.
-- Written by <NAME> (<EMAIL>)
--
-- This file is part of ASF.
--
-- This program is free software; you can redistribute it and/or
-- modify... |
8,517 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses-plane.adb | --
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings; use Interfaces.C.Strings;
with System;
with Ada.Strings.UTF_Encoding.Wide_Wide_Strings;
with Notcurses.Context;
package body Notcurses.Plane is
function Standard_... |
8,518 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-vaflop.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,519 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/dynamics/impact-d2-world.adb | with impact.d2.Fixture,
impact.d2.Island,
impact.d2.Time_of_impact,
impact.d2.toi_Solver,
impact.d2.Distance,
impact.d2.Broadphase,
ada.unchecked_Deallocation;
package body impact.d2.World
is
use type int32, uint32;
use type impact.d2.Joint.b2JointEdge_view;
type Solid_vie... |
8,520 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c32115a.ada | -- C32115A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
8,521 | ada | 204 | spr93/whitakers-words | src/latin_utils/latin_utils-inflections_package-adverb_record_io.adb | <reponame>spr93/whitakers-words<gh_stars>100-1000
-- 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, jus... |
8,522 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0022.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
8,523 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/stm32l/stm32l5x2/svd/i-stm32.ads | <filename>bb-runtimes/arm/stm32l/stm32l5x2/svd/i-stm32.ads
--
-- Copyright (C) 2021, AdaCore
--
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32L562.svd
with System;
-- STM32L562
package Interfaces.STM32 is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
-------... |
8,524 | ada | 0 | reznikmm/gela | source/oasis/program-elements-package_renaming_declarations.ads | <filename>source/oasis/program-elements-package_renaming_declarations.ads<gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elemen... |
8,525 | ada | 5 | docandrew/troodon | include/stdint_h.ads | pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with bits_types_h;
package stdint_h is
INT8_MIN : constant := (-128); -- /usr/include/stdint.h:116
INT16_MIN : constant := (-32767-1); -- /usr/include/stdint.h:117
INT32_MIN : constant := (-2147483647-1); -- /usr/include/... |
8,526 | ada | 33 | ytomino/drake | source/calendar/machine-w64-mingw32/s-natcal.adb | -- reference:
-- https://blogs.msdn.microsoft.com/oldnewthing/20140307-00/?p=1573
with System.Native_Time;
with System.Storage_Elements;
with C.winbase;
with C.winnt;
package body System.Native_Calendar is
use type System.Native_Time.Nanosecond_Number;
use type Storage_Elements.Storage_Offset;
use type C.win... |
8,527 | ada | 6 | godunko/adagl | sources/wasm/opengl-programs.ads | <filename>sources/wasm/opengl-programs.ads
------------------------------------------------------------------------------
-- --
-- Ada binding for OpenGL/WebGL --
-- ... |
8,528 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/testsuite/ada/acats/tests/gcc/template.ada | with Report; use Report;
procedure Template is
begin
-- Test header
Test ("TEMPLATE", "Template test for GNU Ada test suite");
begin
-- Body of test
-- Call procedure Failed when detecting a failure
Failed ("Pretend this test failed");
end;
-- Display result
Result;
end Tem... |
8,529 | ada | 0 | persan/midnightsun-ctf-LoveLacedLetter | src/hide-file_coder-decode_main.ads | with Hide.Decode_generic;
procedure Hide.File_Coder.Decode_Main is new Hide.Decode_Generic;
|
8,530 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-osinte__dummy.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-osinte__dummy.ads
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS ... |
8,531 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/loop_statement.adb | <filename>tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/loop_statement.adb<gh_stars>100-1000
procedure Loop_Statement is
begin
loop
null;
end loop;
Loop_1 : loop
null;
end loop Loop_1;
end Loop_Statement;
|
8,532 | ada | 2 | charlie5/cBound | tier-2/festival/source/thin/festival.ads | <filename>tier-2/festival/source/thin/festival.ads
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with interfaces.c;
with interfaces.c.strings;
with swig;
with interfaces.C;
package Festival is
-- FILE
--
subtype FILE is swig.opaque_structure;
type FILE_array is array (interface... |
8,533 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc1111a.ada | <gh_stars>1-10
-- CC1111A.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.... |
8,534 | ada | 7 | Lucretia/tamp2 | src/tamp.adb | -- -*- Mode: Ada -*-
-- Filename : tamp.adb
-- Description : A "hello world" style OS kernel written in Ada.
-- Author : <NAME>
-- Created On : Thu Jun 14 11:59:53 2012
-- Licence : See LICENCE in the root directory.
pragma Restrictions (No_Obsolescent_... |
8,535 | ada | 36 | rewriting/tom | examples/ada/sl/unit/run_all.adb | <gh_stars>10-100
with TestBehaviour, TestPosition, TestEnvironment, TestSLModes;
use TestBehaviour, TestPosition, TestEnvironment, TestSLModes;
with Ada.Text_IO;
use Ada.Text_IO;
procedure run_all is
begin
put("TestPosition...");
TestPosition.run_test;
put_line("OK");
put("TestBehaviour...");
TestBehavio... |
8,536 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/set_targ.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,537 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-fixed_plotter.adb | <gh_stars>100-1000
package body agar.gui.widget.fixed_plotter is
package cbinds is
function curve
(plotter : plotter_access_t;
name : cs.chars_ptr;
r : agar.core.types.uint8_t;
g : agar.core.types.uint8_t;
b : agar.core.types.uint8_t;
limit : agar.c... |
8,538 | ada | 4 | davidkristola/vole | kv-avm-registers.ads | with Ada.Finalization;
with Ada.Streams;
with Ada.Strings.Unbounded;
with Interfaces;
with kv.avm.Instructions;
with kv.avm.Tuples;
with kv.avm.Actor_References;
with kv.avm.references;
package kv.avm.Registers is
Unimplemented_Error : exception;
subtype String_Type is Ada.Strings.Unbounded.Unbounded_String;
... |
8,539 | ada | 3 | stcarrez/ada-stemmer | src/lang/stemmer-greek.adb | -- Generated by Snowball 2.2.0 - https://snowballstem.org/
package body Stemmer.Greek 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 modified*");
... |
8,540 | ada | 11 | psyomn/ash | src/response_helpers.adb | -- Copyright 2019 <NAME> (psyomn)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applicable law or agree... |
8,541 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-intman__vxworks.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
8,542 | ada | 0 | zdimension/tdinfo302 | src/tp1.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure tp1 is
-- conversion en majuscule
function Maju (c : Character) return Character is
begin
if c in 'a'..'z' then -- si minuscule
return Character'Val(Character'Pos(c) - 32); -- on décale de 32
else
return c; -- on change ri... |
8,543 | ada | 2 | egustafson/sandbox | Ada/DataStructures/AVLTree/main_old.adb | <filename>Ada/DataStructures/AVLTree/main_old.adb
with Generic_AVL_Tree;
with Ada.Text_IO, Ada.Integer_Text_IO;
use Ada.Text_IO, Ada.Integer_Text_IO;
procedure Main is
procedure Integer_Put( Item: Integer ) is
begin
Put( Item, 2 );
end Integer_Put;
package Int_AVL_Tree is
new Generic_AVL_Tree... |
8,544 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/mlib.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/mlib.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
8,545 | ada | 0 | melwyncarlo/ProjectEuler | problems/020/a020.adb | <gh_stars>0
with Ada.Strings.Fixed;
with Ada.Integer_Text_IO;
-- Copyright 2021 <NAME>
procedure A020 is
use Ada.Strings.Fixed;
use Ada.Integer_Text_IO;
N_Str : array (Integer range 1 .. 500) of Character :=
('1', others => '0');
Products_Array : array (Integer range 1 .. ... |
8,546 | ada | 0 | Tim-Tom/project-euler | Ada/src/ProjectEuler.adb | <gh_stars>0
with Ada.Text_IO;
with Ada.Command_Line;
with Problem_01;
with Problem_02;
with Problem_03;
with Problem_04;
with Problem_05;
with Problem_06;
with Problem_07;
with Problem_08;
with Problem_09;
with Problem_10;
with Problem_11;
with Problem_12;
with Problem_13;
with Problem_14;
with Problem_15;
with Problem... |
8,547 | ada | 30 | jrmarino/AdaBase | testcases/query_select/query_select.adb | with AdaBase;
with Connect;
with CommonText;
with Ada.Text_IO;
with AdaBase.Results.Sets;
procedure Query_Select is
package CON renames Connect;
package TIO renames Ada.Text_IO;
package ARS renames AdaBase.Results.Sets;
package AR renames AdaBase.Results;
package CT renames CommonText;
begin
CON... |
8,548 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/RP/svd/rp2040/rp_svd-tbman.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;
-- Testbench manager. Allows the programmer to... |
8,549 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-cfdlli.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/a-cfdlli.adb<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
8,550 | ada | 1 | michalkonecny/polypaver | examples/SPARK2005/erfriemann/src/riemann.ads | with PolyPaver.Floats;
--# inherit PolyPaver.Exact, PolyPaver.Interval, PolyPaver.Integers, PolyPaver.Floats;
package Riemann is
function erfRiemann(x : Float; n : Integer) return Float;
--# pre PolyPaver.Floats.Is_Range(x, 0.0, 4.0)
--# and PolyPaver.Integers.Is_Range(n, 1, 100);
--# return result =>
--# Po... |
8,551 | ada | 7 | 98devin/ada-gba-dev | src/GBA.Display.Tiles.adb | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with System;
use type System.Address;
package body GBA.Display.Tiles is
function Tile_Block_Address (Ix : Tile_Block_Index) return Address is
begin
return Video_RAM_Address'First + (Address (Ix) * 16#4000#);
end;
function Screen_B... |
8,552 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/MPU6000/mpu6000.ads | <gh_stars>10-100
package MPU6000 with SPARK_Mode is
end MPU6000;
|
8,553 | ada | 0 | wooky/aoc.kt | src/main/ada/2019/aoc-aoc_2019-day08.ads | <gh_stars>0
package AOC.AOC_2019.Day08 is
type Day_08 is new Day.Day with null record;
overriding procedure Init (D : in out Day_08; Root : String);
overriding function Part_1 (D : Day_08) return String;
overriding function Part_2 (D : Day_08) return String;
end AOC.AOC_2019.Day08;
|
8,554 | ada | 1 | io7m/coreland-symbex | symbex-parse.ads | <filename>symbex-parse.ads
with Ada.Containers.Vectors;
with Ada.Strings.Wide_Unbounded;
with Symbex.Lex;
with Stack;
pragma Elaborate_All (Stack);
package Symbex.Parse is
type Tree_t is private;
--
-- Tree status value.
--
type Tree_Status_t is
(Tree_OK,
Tree_Error_Excess_Closing_Parentheses,
... |
8,555 | ada | 15 | mgrojo/adalib | ada-numerics-generic_complex_types.ads | -- Standard Ada library specification
-- Copyright (c) 2003-2018 <NAME> <<EMAIL>>
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-License-... |
8,556 | ada | 0 | Letractively/ada-ado | src/sqlite/ado-statements-sqlite.ads | <reponame>Letractively/ada-ado
-----------------------------------------------------------------------
-- ADO Mysql Database -- MySQL Database connections
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
8,557 | ada | 52 | onox/orka | orka_plugin_atmosphere/src/orka-features-atmosphere.adb | <reponame>onox/orka
-- SPDX-License-Identifier: BSD-3-Clause
--
-- Copyright (c) 2017 <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:
-- 1. Redistributions of source code must... |
8,558 | ada | 20 | HeisenbugLtd/spat | src/app/spat-command_line.adb | <filename>src/app/spat-command_line.adb
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
... |
8,559 | ada | 24 | svn2github/matreshka | source/league/league-strings.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
8,560 | ada | 0 | Letractively/ada-util | src/util-dates.ads | <reponame>Letractively/ada-util<filename>src/util-dates.ads
-----------------------------------------------------------------------
-- util-dates -- Date utilities
-- Copyright (C) 2011, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
8,561 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-holders-uml_holders.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
8,562 | ada | 1 | JeremyGrosser/sensors | src/sgp30.ads | --
-- Copyright (C) 2022 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL.Time; use HAL.Time;
with HAL.I2C; use HAL.I2C;
with HAL; use HAL;
package SGP30 is
Default_I2C_Address : constant I2C_Address := 16#B0#;
type SGP30_Status is (Ok, I2C_Error, Checksum_Error);
type Device
... |
8,563 | ada | 20 | charlie5/lace | 3-mid/impact/source/3d/dynamics/impact-d3-object-rigid.ads | <gh_stars>10-100
with impact.d3.Object,
impact.d3.Shape,
impact.d3.motion_State;
with impact.d3.collision.Proxy;
with impact.d3.Joint;
package impact.d3.Object.rigid
--
--
--
is
type Item is new impact.d3.Object.item with private;
type View is access all Item'Class;
--- rigidFlags
--
... |
8,564 | ada | 0 | ekoeppen/MSP430_Generic_Ada_Drivers | apps/bootloader/memory.adb | package body Memory is
function "+" (Addr : Flash_Memory_Range; Offset : Unsigned_16) return Flash_Memory_Range is
begin
return Flash_Memory_Range (Unsigned_16 (Addr) + Offset);
end "+";
end Memory;
|
8,565 | ada | 0 | hgrodriguez/edc-client | src/edc_client-matrix-double_word.ads | <gh_stars>0
--
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
with HAL;
package Edc_Client.Matrix.Double_Word is
--------------------------------------------------------------------------
-- Shows the
-- least significant byte of the least significant word on the matrix
... |
8,566 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c42006a.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c4/c42006a.ada
-- C42006A.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimi... |
8,567 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/common/tkmrpc-request-ees-esa_acquire-convert.ads | <filename>specs/ada/common/tkmrpc-request-ees-esa_acquire-convert.ads
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Ees.Esa_Acquire.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Esa_Acquire.Request_Type,
Target => Request.Data_Type);
function From_Request is new... |
8,568 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/conv1.adb | <reponame>best08618/asylo
-- { dg-do run }
with System; use System;
with Ada.Text_IO; use Ada.Text_IO;
procedure Conv1 is
type Short is mod 2**16;
type R_L is record
S : Short;
C : Character;
end record;
for R_L'Bit_Order use Low_Order_First;
for R_L'Scalar_Storage_Order use Low_Order_Firs... |
8,569 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/lto19_pkg2.ads | package Lto19_Pkg2 is
function UB return Natural;
end Lto19_Pkg2;
|
8,570 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr29.ads | <reponame>best08618/asylo
package Discr29 is
type Rec1 is record
I1 : Integer;
I2 : Integer;
I3 : Integer;
end record;
type Rec2 is tagged record
I1 : Integer;
I2 : Integer;
end record;
type Rec3 (D : Boolean) is record
case D is
when True => A : Rec1;
... |
8,571 | ada | 0 | xuedong/mini-ada | tests/exec/put.adb | <reponame>xuedong/mini-ada
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
begin
Put('A');
New_Line;
end;
|
8,572 | ada | 1 | persan/spawn-manager | src/spawn_manager-server-main.adb | <reponame>persan/spawn-manager<filename>src/spawn_manager-server-main.adb
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Command_Line;
with GNAT.Exception_Traces;
with GNAT.Traceback.Symbolic;
procedure Spawn_Manager.Server.Main is
Address : Sock_Addr_Type;
Server : Socket_Type;
Channel : Stream_Access;
... |
8,573 | ada | 0 | cortlandstarrett/mcada | example_relationships/src/many_to_many_associative.adb | <filename>example_relationships/src/many_to_many_associative.adb
-- *************************************************************************************
--
-- The recipient is warned that this code should be handled in accordance
-- with the HM Government Security Classification indicated throughout.
--
-- This code a... |
8,574 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/LZW-compression/Ada/lzw-compression-1.ada | package LZW is
MAX_CODE : constant := 4095;
type Codes is new Natural range 0 .. MAX_CODE;
type Compressed_Data is array (Positive range <>) of Codes;
function Compress (Cleartext : in String) return Compressed_Data;
function Decompress (Data : in Compressed_Data) return String;
end LZW;
|
8,575 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/a-exctra.ads | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
8,576 | ada | 0 | skill-lang/adaCommon | src/skill-types-iterators.ads | <reponame>skill-lang/adaCommon
-- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ Iterators for SKilL API --
-- |___/_|\_\_|_|____| by: <NAME> ... |
8,577 | ada | 0 | optikos/oasis | source/units/program-units-vectors.adb | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Ada.Wide_Wide_Characters.Handling;
package body Program.Units.Vectors is
------------
-- Append --
------------
procedure Append
... |
8,578 | ada | 7 | Fabien-Chouteau/Giza | src/giza-widget-number_selection.ads | with Giza.Widget.Frame; use Giza.Widget.Frame;
with Giza.Widget.Button; use Giza.Widget.Button;
with Giza.Widget.Composite; use Giza.Widget.Composite;
with Ada.Real_Time; use Ada.Real_Time;
package Giza.Widget.Number_Selection is
subtype Parent is Frame.Instance;
type Instance is new Parent with private;
sub... |
8,579 | ada | 81 | fuzzysloth/ada-awa | awa/regtests/awa-helpers-selectors-tests.ads | -----------------------------------------------------------------------
-- awa-helpers-selectors-tests -- Unit tests for selector helpers
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except... |
8,580 | ada | 7 | stcarrez/resource-embedder | src/are-installer-copies.ads | <gh_stars>1-10
-----------------------------------------------------------------------
-- are-installer-copies -- Copy based distribution artifact
-- Copyright (C) 2012, 2013, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
8,581 | ada | 30 | jrmarino/AdaBase | src/connections/adabase-connection-base-mysql.adb | <reponame>jrmarino/AdaBase<filename>src/connections/adabase-connection-base-mysql.adb<gh_stars>10-100
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Unchecked_Conversion;
with Ada.Characters.Handling;
package body AdaBase.Connection.Base.MySQL is
... |
8,582 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/thin/freetype_c-ft_charmaprec.ads | package freetype_c.FT_CharMapRec
is
type Item is
record
Face : access FT_FaceRec;
Encoding : aliased FT_Encoding;
Platform_Id : aliased FT_UShort;
Encoding_Id : aliased FT_UShort;
end record;
type Item_array is array (C.Size_t range <>) of aliased FT_Ch... |
8,583 | ada | 0 | strenkml/EE368 | memsim-master/src/histograms.ads |
with Ada.Containers.Ordered_Maps;
use Ada.Containers;
generic
type Key_Type is (<>);
package Histograms is
type Histogram_Type is tagged private;
procedure Reset(hist : in out Histogram_Type);
procedure Increment(hist : in out Histogram_Type;
key : in Key_Type);
procedur... |
8,584 | ada | 52 | onox/orka | orka/src/orka/interface/orka-resources-models.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
8,585 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-pf.ads | <filename>SVD2ada/svd/stm32_svd-pf.ads
pragma Style_Checks (Off);
-- This spec has been automatically generated from STM32H743x.svd
pragma Restrictions (No_Elaboration_Code);
with HAL;
with System;
package STM32_SVD.PF is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- CLI... |
8,586 | ada | 3 | vasil-sd/ada-tlsf | bits/src/extract/bitoperations-extract.ads | <reponame>vasil-sd/ada-tlsf
with BitOperations.Types;
with BitOperations.Shift;
with BitOperations.Mask;
generic
with package Types is new BitOperations.Types (<>);
package BitOperations.Extract with
SPARK_Mode, Pure, Preelaborate is
package Shift is new BitOperations.Shift(Types);
package Mask is new BitOpe... |
8,587 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-scanner_tables.adb |
-- This file is auto generated by uaflex. Don't edit
package body Asis.Gela.Scanner_Tables is
use Asis.Gela.Parser.Tokens;
type Switch_Table is array (State range <>, Character_Class range <>) of State;
type Accepted_Table is array (State range <>) of Token;
Table : constant Switch_Table (0 .. 357, 1 ..... |
8,588 | ada | 6 | afrl-rq/LmcpGen | src/templates/ada/mdm-object.ads | with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
package -<full_series_name_dots>-.Object is
type Object is abstract new AVTAS.LMCP.Object.Object with private;
type Object_Acc is access all Object;
type Object_Any is access all Object'Class;
overriding function getSeriesVersion(this : Object) ret... |
8,589 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-billboard-textured.adb | <filename>3-mid/opengl/source/lean/model/opengl-model-billboard-textured.adb
with
openGL.Primitive.indexed,
openGL.Geometry.textured,
openGL.io,
ada.unchecked_Deallocation;
package body openGL.Model.billboard.textured
is
---------
--- Forge
--
package body Forge
is
function ... |
8,590 | ada | 0 | SKNZ/BoiteMaker | src/svg.adb | <reponame>SKNZ/BoiteMaker<gh_stars>0
with ada.strings.unbounded;
use ada.strings.unbounded;
with point_list;
use point_list;
with point;
use point;
with halfbox_panel;
use halfbox_panel;
with halfbox;
use halfbox;
with logger;
use logger;
with imagemagick;
package body svg is
function get_svg(box : box_parts_t; in... |
8,591 | ada | 33 | ytomino/drake | source/image/required/s-imgboo.adb | <filename>source/image/required/s-imgboo.adb
package body System.Img_Bool is
procedure Image_Boolean (
V : Boolean;
S : in out String;
P : out Natural) is
begin
if V then
pragma Assert (S'Length >= 4);
P := S'First + 3;
S (S'First .. P) := "TRUE";
else
... |
8,592 | ada | 33 | ytomino/drake | source/containers/a-coinho.adb | with Ada.Exceptions.Finally;
with Ada.Unchecked_Conversion;
with Ada.Unchecked_Deallocation;
package body Ada.Containers.Indefinite_Holders is
use type Copy_On_Write.Data_Access;
function Upcast is
new Unchecked_Conversion (Data_Access, Copy_On_Write.Data_Access);
function Downcast is
new Unchecke... |
8,593 | ada | 4 | faelys/gela-asis | source/asis/asis-gela-overloads-types.ads | ------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
8,594 | ada | 1 | hgrodriguez/sh1107 | example_pico/src/demos.adb | --===========================================================================
--
-- This package is the implementation of the demo package showing examples
-- for the SH1107 OLED controller
--
--===========================================================================
--
-- Copyright 2022 (C) <NAME>
--
-- SPDX-Li... |
8,595 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada95/a-nudira.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
8,596 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/User-input-Text/Ada/user-input-text-3.ada | with Ada.Text_IO, Ada.Integer_Text_IO;
procedure User_Input is
I : Integer;
begin
Ada.Text_IO.Put ("Enter a string: ");
declare
S : String := Ada.Text_IO.Get_Line;
begin
Ada.Text_IO.Put_Line (S);
end;
Ada.Text_IO.Put ("Enter an integer: ");
Ada.Integer_Text_IO.Get(I);
Ada.Text_IO.Pu... |
8,597 | ada | 0 | fintatarta/eugen | src/Projects/Backup/eu_projects-identifiers.adb | package body EU_Projects.Identifiers is
-----------
-- To_ID --
-----------
function To_ID
(X : String)
return Identifier
is
begin
if not Is_Valid_Identifier (X) then
raise Bad_Identifier with X;
end if;
return Identifier'(ID => ID_Names.To_Bounded_String (To_... |
8,598 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cd/cda201e.ada | -- CDA201E.ADA
-- Grant of Unlimited Rights
--
-- Under contracts F33600-87-D-0337, F33600-84-D-0280, MDA903-79-C-0687,
-- F08630-91-C-0015, and DCA100-97-D-0025, the U.S. Government obtained
-- unlimited rights in the software and documentation contained herein.
-- Unlimit... |
8,599 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Active-object/Ada/active-object.ada | with Ada.Calendar; use Ada.Calendar;
with Ada.Numerics; use Ada.Numerics;
with Ada.Numerics.Elementary_Functions; use Ada.Numerics.Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_Integrator is
type Func is access function (T... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.