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 |
|---|---|---|---|---|---|
300 | ada | 0 | Letractively/ada-util | src/http/curl/util-http-clients-curl.adb | -----------------------------------------------------------------------
-- util-http-clients-curl -- HTTP Clients with CURL
-- Copyright (C) 2012 <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 Li... |
301 | ada | 0 | yannickmoy/spat | src/spat-proof_item.ads | ------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hocevar. See the... |
302 | ada | 0 | damaki/EVB1000 | src/stm32-dma.ads | <gh_stars>0
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- ISR_Register --
-------------... |
303 | ada | 0 | silentTeee/ada_wavefiles_gtk_app | src/wavefiles_gtk-wavefile_manager.adb | -------------------------------------------------------------------------------
--
-- WAVEFILES GTK APPLICATION
--
-- Wavefile Manager
--
-- The MIT License (MIT)
--
-- Copyright (c) 2017 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtainin... |
304 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/pixhawk/hil/hil-devices-nvram.ads | -- Institution: Technische Universitatt Muenchen
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: <NAME> (<EMAIL>)
with FM25v0x;
-- @summary
-- Target-specific types for the NVRAM in Pixhawk.
package HIL.Devices.NVRAM with SPARK_Mo... |
305 | ada | 76 | yannickmoy/SPARKNaCl | stress/sparknacl-tests.adb | <gh_stars>10-100
with SPARKNaCl.PDebug;
with SPARKNaCl.Debug;
with SPARKNaCl.Utils;
with SPARKNaCl.Car;
with Ada.Text_IO; use Ada.Text_IO;
package body SPARKNaCl.Tests
is
GF_2 : constant Normal_GF := (2, others => 0);
P : constant Normal_GF := (0 => 16#FFED#,
15 => 16#7FFF#... |
306 | ada | 0 | balintsoos/LearnAda | zh/zh2/Crossroad.adb | with Ada.Text_IO;
use Ada.Text_IO;
procedure Crossroad is
-- Colors
type colors is (red, redyellow, green, yellow);
-- Lamp
protected Lamp is
procedure Switch;
function Color return colors;
private
currentColor : colors := red;
end Lamp;
protected body Lamp is
procedu... |
307 | ada | 0 | glencornell/ada-object-framework | examples/signals/slots.ads | <filename>examples/signals/slots.ads
package Slots is
procedure Xaa;
procedure Xab;
procedure Xac;
procedure S1a(Value : in Integer);
procedure S1b(Value : in Integer);
procedure S1c(Value : in Integer);
end Slots;
|
308 | ada | 33 | ytomino/drake | source/calendar/a-calnak.adb | package body Ada.Calendar.Naked is
function To_Native_Time (T : Time)
return System.Native_Calendar.Native_Time is
begin
return System.Native_Calendar.To_Native_Time (Duration (T));
end To_Native_Time;
function To_Time (T : System.Native_Calendar.Native_Time) return Time is
begin
retu... |
309 | ada | 1 | faelys/natools-web | src/natools-web-simple_pages.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- Copyright (c) 2014-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any ... |
310 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr14_pkg.adb | <reponame>best08618/asylo
package body Aggr14_Pkg is
function F return A is
begin
if X /= (1, 2, 3) then
raise Program_Error;
end if;
return (1, 1, 1);
end;
procedure Proc is
begin
X := F;
end;
end Aggr14_Pkg;
|
311 | ada | 2 | adithyap/coursework | ProgrammingLanguages/Ada/MergeSort/sort.ads | package Sort is
SIZE : constant Integer := 40;
SubType v_range is Integer Range -500..500;
type m_array is array(1..SIZE) of v_range;
procedure MergeSort(A : in out m_array);
-- Internal functions
procedure MergeSort(A : in out m_array; startIndex : Integer; endIndex : Integer);
proc... |
312 | ada | 0 | Tim-Tom/project-euler | Ada/inc/Problem_51.ads | <gh_stars>0
package Problem_51 is
procedure Solve;
end Problem_51;
|
313 | ada | 4 | reznikmm/adaside | sources/ada_pretty-statements.adb | -- Copyright (c) 2017 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Ada_Pretty.Statements is
--------------
-- Document --
--------------
overriding function Document
(Self : Block_Stat... |
314 | ada | 236 | jquorning/septum | src/common/sp-cache.ads | -------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
315 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/subtypes.ads | package Subtypes is
subtype small is Integer range -10 .. 10;
end Subtypes;
|
316 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/shader/opengl-program-lit.ads | with
openGL.Palette,
openGL.Light;
package openGL.Program.lit
--
-- Models an openGL program which uses lighting.
--
is
type Item is new openGL.Program.item with private;
type View is access all Item'Class;
------------
-- Uniforms
--
overriding
procedure camera_Site_is (Self : in... |
317 | ada | 0 | python36/d0xfa | src/strings.ads | <filename>src/strings.ads
with ada.text_io;
with ada.strings.fixed;
with ada.strings.maps.constants;
with ada.strings.unbounded;
with numbers; use numbers;
package strings is
package natural_io is new ada.text_io.integer_io(natural);
package unb renames ada.strings.unbounded;
package fix renames ada.strings.fix... |
318 | ada | 2 | SMerrony/dgemua | aosvs/paru_32.ads | <reponame>SMerrony/dgemua
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to u... |
319 | ada | 5 | TamaMcGlinn/AdaBots | src/adabots.ads | <filename>src/adabots.ads
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with Ada.Finalization;
with Adabots_Lua_Dispatcher;
package Adabots is
type Turtle is new Ada.Finalization.Limited_Controlled with private;
type Turtle_Inventory_Slot is range 1 .. 16;
type Stack_Count is range 0 .. 64;
type ... |
320 | ada | 192 | rocher/Ada_Drivers_Library | arch/ARM/Nordic/svd/nrf52/nrf_svd-i2s.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... |
321 | ada | 0 | Intelligente-sanntidssystemer/Ada-prosjekt | project2/obj/b__main.adb | <reponame>Intelligente-sanntidssystemer/Ada-prosjekt
pragma Warnings (Off);
pragma Ada_95;
pragma Source_File_Name (ada_main, Spec_File_Name => "b__main.ads");
pragma Source_File_Name (ada_main, Body_File_Name => "b__main.adb");
pragma Suppress (Overflow_Check);
package body ada_main is
E78 : Short_Integer... |
322 | ada | 0 | fintatarta/eugen | src/Parsers/XML/project_processor-parsers-xml_parsers.adb | <gh_stars>0
with DOM.Core.Documents;
with Project_Processor.Parsers.Parser_Tables;
with XML_Utilities;
with XML_Scanners;
with DOM.Core.Nodes;
with EU_Projects.Nodes.Action_Nodes.Tasks;
with EU_Projects.Nodes.Action_Nodes.WPs;
with EU_Projects.Nodes.Timed_Nodes.Milestones;
with Project_Processor.Parsers.XML_Parsers... |
323 | ada | 9 | AntonMeep/parse_args | tests/parse_args-testable.adb | <reponame>AntonMeep/parse_args<gh_stars>1-10
-- parse_args-testable.adb
-- A testable version of the Argument_Parser type
-- Copyright (c) 2016, <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright n... |
324 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/sem_intr.ads | <filename>gcc-gcc-7_3_0-release/gcc/ada/sem_intr.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
325 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sync1.adb | <reponame>best08618/asylo
-- { dg-do compile }
package body sync1 is
protected body Chopstick is
entry Pick_Up when not Busy is
begin
Busy := True;
end Pick_Up;
procedure Put_Down is
begin
Busy := False;
end Put_Down;
end Chopstick;
end sync1;
|
326 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-exception_declarations.adb | <filename>source/nodes/program-nodes-exception_declarations.adb
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Exception_Declarations is
function Create
(Names : not null Pr... |
327 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-coorse.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
328 | ada | 32 | persan/AdaYaml | src/annotation_processor/implementation/yaml-transformator-annotation_processor.adb | -- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Unchecked_Deallocation;
-- we need to explicitly with all annotations because their package
-- initialization adds them to the annotation map.
with Yaml.Transformator.Annotation.Identity;
with Y... |
329 | ada | 4 | docandrew/YOTROC | src/gui.ads | with Gtkada.Builder;
with Gtk.List_Store;
with Gtk.Status_Bar;
with Gtk.Text_Buffer;
with Gtk.Widget;
package gui is
builder : Gtkada.Builder.Gtkada_Builder;
topLevelWindow : Gtk.Widget.Gtk_Widget;
textbuf : Gtk.Text_Buffer.Gtk_Text_Buffer;
statusBar : Gtk.Status_Bar.Gtk_Status_Bar;
--statusBarCon... |
330 | ada | 6 | jklmnn/esp8266-ada-example | src/main.adb | <reponame>jklmnn/esp8266-ada-example
with Componolit.Runtime.Debug;
procedure Main
is
procedure Delay_Ms(Ms : Natural) with
Import,
Convention => C,
External_Name => "delayMicroseconds";
function Message return String;
function Message return String
is
begin
return "Make with... |
331 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/discriminant_specification.ads | package discriminant_specification is
type Buffer(Size : Integer := 100) is
record
Pos : Integer := 0;
Value : String(1 .. Size);
end record;
procedure append_ch(b : in out Buffer; ch : in character);
procedure remove_ch(b : in out Buffer; ch : out character);
function make_buf(si... |
332 | ada | 1 | jhumphry/Ascon_SPARK | src/tests/display_ascon_traces.ads | -- Display_Ascon_Traces
-- A utility to display traces of the encryption process for the test vectors
-- in the demo of the reference implementations
-- Copyright (c) 2016, <NAME> - see LICENSE file for details
with Ascon;
generic
with package Ascon_Package is new Ascon(<>);
procedure Display_Ascon_Traces;
|
333 | ada | 3 | jwarwick/aoc_2020 | day22/src/day.ads | <filename>day22/src/day.ads
-- AOC 2020, Day 22
package Day is
function combat(filename : in String) return Natural;
function recursive_combat(filename : in String) return Natural;
end Day;
|
334 | ada | 0 | sebsgit/textproc | src/opencl/opencl.adb | with Ada.Text_IO;
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with System; use System;
with System.Address_Image;
with System.Address_To_Access_Conversions;
with Ada.Environment_Variables;
with opencl_api_spec;
with dl_loader;
package body opencl is
use opencl_api_spec;
type C_Address_Arra... |
335 | ada | 34 | sergev/vak-opensource | languages/ada/echo.adb | <gh_stars>10-100
--
-- echo [string ...]
--
-- Write arguments to the standard output
--
-- The echo utility writes any specified operands, separated by single blank
-- (`` '') characters and followed by a newline (``\n'') character, to the
-- standard output.
--
with Ada.Command_Line;
with Ada.Text_IO;
use Ada;
proce... |
336 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/a-stwiun.ads | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
337 | ada | 0 | hgrodriguez/spi_two_devices | src/main_slave_pico.adb | <reponame>hgrodriguez/spi_two_devices
--===========================================================================
--
-- This is the main slave program for the Pico for the
-- use cases:
-- 1: Master Pico -> Slave Pico
-- 3: Master ItsyBitsy -> Slave Pico
--
--==================================... |
338 | ada | 0 | honno/code-solutions | university/language-concepts-labs/9/ada/bubble.adb | -- implementation of package Bubble
-- see bubble.ads for a specification
-- which gives a brief overview of the package
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Integer_Text_IO;
use Ada.Integer_Text_IO;
package body Bubble is
protected body State is
procedure Set_All(a, b, c, d : Integer) is
... |
339 | ada | 3 | stcarrez/ada-css | src/css-core-sheets.ads | -----------------------------------------------------------------------
-- css-core-sheets -- CSS stylesheet representation
-- Copyright (C) 2017 <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 Li... |
340 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-mail/src/awa-mail-beans.adb | -----------------------------------------------------------------------
-- awa-mail-beans -- Beans for mail module
-- Copyright (C) 2012, 2020 <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 Licen... |
341 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_app_gstappbuffer_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstbuffer_h;
with glib;
package GStreamer.GST_Low_Level.gstreamer_0_10_gst_app_gstappbuffer_h is
-- unsupported macro: GST_TYPE_APP_BUFFER (gst_app_... |
342 | ada | 0 | mstewartgallus/linted | src/linted-drawer/src/linted-update_reader.ads | <reponame>mstewartgallus/linted
-- Copyright 2016,2017 <NAME>
--
-- 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... |
343 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/sso/p9.adb | -- { dg-do run }
with Init9; use Init9;
with Ada.Numerics; use Ada.Numerics;
with Text_IO; use Text_IO;
with Dump;
procedure P9 is
Local_R1 : R1;
Local_R2 : R2;
begin
Put ("My_R1 :");
Dump (My_R1'Address, R1'Max_Size_In_Storage_Elements);
New_Line;
-- { dg-output "My_R1 : 18 2d 44 54 fb 21 09 40.*... |
344 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl/src/ctype_h.ads | <gh_stars>10-100
pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with umingw_h;
package ctype_h is
-- unsupported macro: isascii __isascii
-- unsupported macro: toascii __toascii
-- unsupported macro: iscsymf __iscsymf
-- unsupported macro: iscsym __iscsym
-- skip... |
345 | ada | 52 | onox/orka | tests/src/test_simd_avx_math.adb | <filename>tests/src/test_simd_avx_math.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 of the License at
--
-- h... |
346 | ada | 0 | My-Colaborations/ada-util | src/sys/streams/util-streams-buffered.adb | <reponame>My-Colaborations/ada-util<gh_stars>0
-----------------------------------------------------------------------
-- util-streams-buffered -- Buffered streams utilities
-- Copyright (C) 2010, 2011, 2013, 2014, 2016, 2017, 2018, 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache Li... |
347 | ada | 15 | AdaCore/training_material | extern/game_support/stm32f4/src/stm32f4-i2c.adb | <filename>extern/game_support/stm32f4/src/stm32f4-i2c.adb
------------------------------------------------------------------------------
-- --
-- Hardware Abstraction Layer for STM32 Targets --
-- ... |
348 | ada | 89 | treggit/sdlada | src/sdl-events.ads | <filename>src/sdl-events.ads
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, <NAME>
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any... |
349 | ada | 0 | reznikmm/gela | source/oasis/program-elements-record_types.ads | <filename>source/oasis/program-elements-record_types.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Definitions;
package... |
350 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt62.adb | -- { dg-do run }
-- { dg-options "-O" }
with Opt62_Pkg; use Opt62_Pkg;
procedure Opt62 is
String5 : String(1..5) := "12345";
D: Der := (Unconstrained_Der with D2 => 5, S2 => String5);
begin
if D.Str1 /= "abcde" then
raise Program_Error;
end if;
end;
|
351 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/s-resfil.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
352 | ada | 0 | Lucretia/old_nehe_ada95 | line_collision/example.adb | ---------------------------------------------------------------------------------
-- Copyright 2004-2005 © <NAME>
--
-- This code is to be used for tutorial purposes only.
-- You may not redistribute this code in any form without my express permission.
-------------------------------------------------------------------... |
353 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/ada_c_demo/source/ada_main.adb | with Ada.Text_IO;
with Ada_Code;
procedure Ada_Main is
package ATI renames Ada.Text_Io;
begin
ATI.Put_Line ("Ada_Main: Calling Ada_Proc");
Ada_Code.Ada_Proc;
ATI.Put_Line ("Ada_Main: Returned from Ada_Proc");
end Ada_Main;
|
354 | ada | 52 | onox/orka | orka/src/gl/interface/gl-objects-samplers.ads | <reponame>onox/orka
-- 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/li... |
355 | ada | 33 | ytomino/drake | source/pools/s-spsuun.adb | package body System.Storage_Pools.Subpools.Unbounded is
type Unbounded_Subpool_Access is access all Unbounded_Subpool;
-- implementation
overriding function Create_Subpool (
Pool : in out Unbounded_Pool_With_Subpools)
return not null Subpool_Handle
is
Subpool : constant not null Unboun... |
356 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-line-colored.adb | <filename>3-mid/opengl/source/lean/model/opengl-model-line-colored.adb
with
openGL.Primitive.indexed;
package body openGL.Model.line.colored
is
---------
--- Forge
--
function to_line_Model (Color : in openGL.Color;
End_1,
End_2 : in Vector_3 := ... |
357 | ada | 88 | VVCAS-Sean/OpenUxAS | src/ada/src/comms/uxas-comms-transport-receiver.adb | package body UxAS.Comms.Transport.Receiver is
------------------------------
-- Add_Subscription_Address --
------------------------------
procedure Add_Subscription_Address
(This : in out Transport_Receiver_Base;
Address : String;
Result : out Boolean)
is
Target : constant S... |
358 | ada | 1 | ytomino/vampire | source/vampire-r3-user_page.adb | <filename>source/vampire-r3-user_page.adb
-- The Village of Vampire by YT, このソースコードはNYSLです
with Ada.Strings.Unbounded;
procedure Vampire.R3.User_Page (
Output : not null access Ada.Streams.Root_Stream_Type'Class;
Form : in Forms.Root_Form_Type'Class;
Template : in String;
Summaries : in Tabula.Villages.Lists.Summar... |
359 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-iterator.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- ... |
360 | ada | 30 | jscparker/math_packages | polynomial/clenshaw/chebychev_quadrature.adb | <filename>polynomial/clenshaw/chebychev_quadrature.adb
-----------------------------------------------------------------------
-- package body Chebychev_Quadrature. Coefficients for Chebychev-Gaussian quadrature.
-- Copyright (C) 2018 <NAME>
--
-- Permission to use, copy, modify, and/or distribute this software for an... |
361 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/aggr20.ads | <reponame>best08618/asylo
with Aggr20_Pkg; use Aggr20_Pkg;
with System;
package Aggr20 is
type Rec1 is record
Address : System.Address;
end record;
Nil_Rec1 : constant Rec1 := (Address => Default_Nil_Address);
type Rec2 is record
Callback : Rec1;
end record;
Nil_Rec2 : constant Rec2 :... |
362 | ada | 6 | HeisenbugLtd/si_units | src/si_units-binary.adb | <filename>src/si_units-binary.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,
-- ... |
363 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array1.ads | with SYSTEM;
WITH array2; use array2;
package array1 is
procedure Foo (R : RIC_TYPE);
procedure Start_Timer (Q : SYSTEM.ADDRESS);
end array1;
|
364 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/nordic/nrf52/nrf52840/svd/i-nrf52-rtc.ads | --
-- Copyright (C) 2019, AdaCore
--
-- 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 mu... |
365 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/160_genericity/generic_list.ads | <gh_stars>10-100
generic
-- generic parameters for:
-- List element
-- Maximum size of list
-- Subprogram to compare list elements
package Generic_List is
type List_T is tagged private;
-- Need a subprogram to add items to the list
-- procedure Add (This : in out List_T;
-- ... |
366 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/gnatmain.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
367 | ada | 60 | Letractively/ada-util | testutil/ahven/ahven-slist.ads | <reponame>Letractively/ada-util
--
-- Copyright (c) 2008-2009 <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS ... |
368 | ada | 13 | Fabien-Chouteau/GESTE | tests/src/layer_priority.adb | <filename>tests/src/layer_priority.adb
with GESTE;
with GESTE.Sprite;
with GESTE.Tile_Bank;
with Ada.Text_IO;
with Console_Char_Screen;
with Ada.Exceptions;
procedure Layer_Priority is
use type GESTE.Pix_Point;
package Console_Screen is new Console_Char_Screen
(Width => 9,
Height => 9,
... |
369 | ada | 4 | jfuica/bingada | src/q_bingo_help.adb | --*****************************************************************************
--*
--* PROJECT: BingAda
--*
--* FILE: q_bingo_help.adb
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
with Gtk.About_Dialog;
with Gtk.Dialog;... |
370 | ada | 0 | iyan22/AprendeAda | 4inline/imprimir_tablero.adb | with Ada.Text_Io; use Ada.Text_Io;
with Ada.Integer_Text_Io; use Ada.Integer_Text_Io;
with Nt_Console; use Nt_console;
with conecta4; use conecta4;
procedure imprimir_tablero (Tablero: in T_Tablero) is
-- Solo para poder imprimir
package P_Celda_IO is new Enumeration_IO(T_Celda); use P_Celda_IO;
begin... |
371 | ada | 0 | Jellix/elan520 | elan520-cpu_registers.ads | <filename>elan520-cpu_registers.ads
------------------------------------------------------------------------
-- Copyright (C) 2004-2020 by <<EMAIL>> --
-- --
-- This work is free. You can redistribute it and/or modify it under --
-- ... |
372 | ada | 2 | stcarrez/jason | src/jason-tickets-modules.adb | -----------------------------------------------------------------------
-- jason-tickets-modules -- Module tickets
-- Copyright (C) 2016, 2017, 2019 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in c... |
373 | ada | 3 | stcarrez/ada-css | src/parser/css-parser-parser.adb |
with CSS.Parser.Parser_Goto;
with CSS.Parser.Parser_Tokens;
with CSS.Parser.Parser_Shift_Reduce;
with CSS.Parser.Lexer_io;
with CSS.Parser.Lexer;
with CSS.Parser.Lexer_dfa;
with CSS.Core.Selectors;
with CSS.Core.Styles;
with CSS.Core.Medias;
with Ada.Text_IO;
package body CSS.Parser.Parser is
use Ada;
use CSS.P... |
374 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/old/tlsf-mem_blocks.adb | 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;
package body TLSF.Mem_Blocks is
subtype Free_Block_Header is Block_Header (Free);
subtype Occupied_Block_Header is Block_Header (Occupied);
Block_Heade... |
375 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/atomic7_pkg1.ads | with Atomic7_Pkg2; use Atomic7_Pkg2;
package Atomic7_Pkg1 is
I : Integer := Stamp;
pragma Atomic (I);
J : Integer := Stamp;
end Atomic7_Pkg1;
|
376 | ada | 8 | pvrego/adaino | project/src/avr-timers-clock.ads | <gh_stars>1-10
with AVR.TIMERS;
-- with AVR.INTERRUPTS;
-- =============================================================================
-- Package AVR.TIMERS.CLOCK
--
-- Implements the clock functions. This timer is used for handling the clock:
-- - TIMER1_COMPA (16 bits timer)
-- ===================================... |
377 | ada | 263 | jfouquart/synth | src/unix.adb | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with GNAT.OS_Lib;
with Ada.Text_IO;
with Parameters;
with System;
package body Unix is
package OSL renames GNAT.OS_Lib;
package TIO renames Ada.Text_IO;
package PM renames Parameters;
--------------... |
378 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/null_aggr_bug.ads | -- { dg-do compile }
package Null_Aggr_Bug is
type Rec1 is null record;
type Rec2 is tagged null record;
type Rec3 is new Rec2 with null record;
X1 : Rec1 := (null record);
Y1 : Rec1 := (others => <>);
X2 : Rec2 := (null record);
Y2 : Rec2 := (others => <>);
X3 : Rec3 :=... |
379 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32gd-usart-peripheral.adb | <filename>stm32f1/stm32gd-usart-peripheral.adb<gh_stars>1-10
with STM32_SVD.RCC; use STM32_SVD.RCC;
with STM32_SVD.USART; use STM32_SVD.USART;
package body STM32GD.USART.Peripheral is
type USART_Periph_Access is access all USART_Peripheral;
function USART_Periph return USART_Periph_Access is
begin
ret... |
380 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_25.adb | <reponame>Tim-Tom/project-euler<filename>Ada/src/Problem_25.adb<gh_stars>0
with Ada.Text_IO;
with BigInteger; use BigInteger;
package body Problem_25 is
package IO renames Ada.Text_IO;
procedure Solve is
term : Positive := 3;
n : BigInt := BigInteger.Create(2);
n_1 : BigInt := BigInteger.Creat... |
381 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/benchmark_i64.ads | <reponame>skill-lang/skillAdaTestSuite<gh_stars>1-10
with Ada.Streams.Stream_IO;
with Interfaces;
package Benchmark_I64 is
package ASS_IO renames Ada.Streams.Stream_IO;
subtype Long is Long_Integer;
procedure Write (N : Long; File_Name : String);
procedure Read (N : Long; File_Name : String);
end Bench... |
382 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-cobove.adb | <reponame>orb-zhuchen/Orb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
383 | ada | 1 | alexbarker/Nuclear_Submarine_Control_System | Trident/src/main.adb | <filename>Trident/src/main.adb
-- SET10112 2018-9 TR2 001 - Formal Approaches to Software Engineering
-- Trident - Submarine Coursework
-- Version 0.3.1
-- <NAME>
-- 40333139
-- Last Updated on 19th April 2019
-- main.adb
with Trident; use Trident;
with Ada.Text_IO; use Ada.Text_IO;
procedure Main is
begin
Put_Lin... |
384 | ada | 0 | btmalone/alog | aunit/aunit-reporter-text.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
385 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr21.adb | -- { dg-do compile }
-- { dg-options "-gnatws -O3" }
with Discr21_Pkg; use Discr21_Pkg;
package body Discr21 is
type Index is new Natural range 0 .. 100;
type Arr is array (Index range <> ) of Position;
type Rec(Size : Index := 1) is record
A : Arr(1 .. Size);
end record;
Data : Rec;
function To_... |
386 | ada | 0 | hgrodriguez/edc-client | src/edc_client-matrix-word.ads | <reponame>hgrodriguez/edc-client<gh_stars>0
--===========================================================================
--
-- This package is the interface to the Matrix Word part of the EDC Client
-- As a client of this package, you can chose, if you want to display
-- bytes independently or a word or a combinati... |
387 | ada | 18 | jquorning/ada-wiki | src/wiki-attributes.ads | <filename>src/wiki-attributes.ads
-----------------------------------------------------------------------
-- wiki-attributes -- Wiki document attributes
-- Copyright (C) 2015, 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... |
388 | ada | 30 | jrmarino/AdaBase | src/miscellaneous/commontext.ads | <filename>src/miscellaneous/commontext.ads
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with Ada.Strings.UTF_Encoding;
with Ada.Strings.Unbounded;
package CommonText is
package SU renames Ada.Strings.Unbounded;
subtype Text is SU.Unbounded_String... |
389 | ada | 0 | skill-lang/adaCommon | src/skill-iterators-type_hierarchy_iterator.ads | -- ___ _ ___ _ _ --
-- / __| |/ (_) | | Common SKilL implementation --
-- \__ \ ' <| | | |__ iterator over types --
-- |___/_|\_\_|_|____| by: <NAME> --
-... |
390 | ada | 4 | faelys/gela-asis | .build/ada/asis-gela-elements-expr.ads | <reponame>faelys/gela-asis<filename>.build/ada/asis-gela-elements-expr.ads
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, <NAME>
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitte... |
391 | ada | 0 | fintatarta/eugen | src/Command_Line/line_parsers-receivers-enumeration_receivers.ads | --
-- This package provides handlers for enumerative types. Since the
-- type is not fixed in advance, the package needs to be generic.
--
generic
type Value_Type is (<>);
package Line_Parsers.Receivers.Enumeration_Receivers is
type Receiver_Type is new Abstract_Parameter_Handler with private;
function Is_S... |
392 | ada | 0 | faelys/natools | src/natools-s_expressions-generic_caches.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2013-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
393 | ada | 15 | AdaCore/training_material | courses/fundamentals_of_ada/labs/prompts/140_access_types/main.adb | <reponame>AdaCore/training_material<gh_stars>10-100
with Ada.Text_IO; use Ada.Text_IO;
with Datastore; use Datastore;
procedure Main is
function Get
(Prompt : String)
return String is
begin
Put (" " & Prompt & "> ");
return Get_Line;
end Get;
Index : Integer;
begin
loop
... |
394 | ada | 192 | rocher/Ada_Drivers_Library | boards/MicroBit/src/microbit-spi.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018, AdaCore --
-- --
-- ... |
395 | ada | 0 | Asier98/AdaCar | src/main.adb | <reponame>Asier98/AdaCar
with AdaCar; use AdaCar;
with AdaCar.Alarmas;
with AdaCar.Entrada_Salida;
with AdaCar.Sensor_Proximidad;
with AdaCar.Seguimiento_Sensor;
with AdaCar.Motores;
with AdaCar.Organizador_Movimiento;
with AdaCar.Parametros;
procedure Main is
begin
-- Insert code here.
null;
end Main;
|
396 | ada | 0 | bracke/Meaning | source/RASCAL-Memory.adb | <filename>source/RASCAL-Memory.adb
--------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
397 | ada | 33 | ytomino/drake | source/s-once.adb | with System.Storage_Barriers;
with System.Synchronous_Control;
package body System.Once is
pragma Suppress (All_Checks);
Yet : constant := 0;
Start : constant := 1;
Done : constant := 2;
function atomic_load (
ptr : not null access constant Flag;
memorder : Integer := Storage_Barriers.ATOMI... |
398 | ada | 0 | svn2github/matreshka | source/xml/dom/matreshka-dom_documents.adb | <filename>source/xml/dom/matreshka-dom_documents.adb
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
399 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/uxas-common-configuration_manager.adb | -- see C:\AFRL_mentorship\OpenUxAS\src\Utilities\UxAS_ConfigurationManager.cpp
with String_Utils; use String_Utils;
with Ada.Strings.Fixed;
with Input_Sources.Strings;
with Input_Sources.File;
with DOM.Readers;
with DOM.Core.Documents;
with DOM.Core.Nodes;
with Sax.Encodings;
with DOM.Core.Elements;
with UxAS.Comm... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.