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 |
|---|---|---|---|---|---|
9,800 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnarl/s-taprop__qnx.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
9,801 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pointer_discr1.adb | -- { dg-do compile }
with Pointer_Discr1_Pkg1;
with Pointer_Discr1_Pkg3;
procedure Pointer_Discr1 is
begin
Pointer_Discr1_Pkg3.Map(Pointer_Discr1_Pkg1.Window(1));
end;
|
9,802 | ada | 0 | JCGobbi/Nucleo-STM32H743ZI | SVD2ada/svd/stm32_svd-rng.ads | <filename>SVD2ada/svd/stm32_svd-rng.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.RNG is
pragma Preelaborate;
---------------
-- Registers --
---------------
-- R... |
9,803 | ada | 1 | skill-lang/skillAdaTestSuite | test/subtypes/test_subtypes-append.adb | package body Test_Subtypes.Append is
File_Name : constant String := "tmp/test-append-subtypes.sf";
procedure Initialize (T : in out Test) is
begin
Set_Name (T, "Test_Subtypes.Append");
Ahven.Framework.Add_Test_Routine (T, Check_Types'Access, "create, writte, 2x append subtypes");
Ahven.Frame... |
9,804 | ada | 7 | 98devin/ada-gba-dev | src/GBA.Input.ads | -- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Memory.IO_Registers;
package GBA.Input is
type Key is
( A_Button
, B_Button
, Select_Button
, Start_Button
, Right_Direction
, Left_Direction
, Up_Direction
, Down_Direction
, Left_Shoulder
, ... |
9,805 | ada | 1 | TamaMcGlinn/ada_raspio | src/raspio-gpio.ads | with x86_64_linux_gnu_bits_stdint_uintn_h;
package Raspio.GPIO is
-- TODO track usages of pins using controlled type, so that trying to
-- create two overlapping pins gives a runtime error
type Pin_Type is limited private;
type Mode_Type is
(Input, Output, Alternative_5, Alternative_4, Alternative... |
9,806 | ada | 16 | stcarrez/ada-enet | demos/utils/demos.ads | <gh_stars>10-100
-----------------------------------------------------------------------
-- demos -- Utility package for the demos
-- Copyright (C) 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complianc... |
9,807 | ada | 0 | Letractively/ada-awa | awa/plugins/awa-images/src/awa-images-services.adb | -----------------------------------------------------------------------
-- awa-images-services -- Image service
-- Copyright (C) 2012, 2013 <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... |
9,808 | ada | 33 | ytomino/drake | examples/bswap.adb | -- Demonstration of the compiler-defined attribute: 'Scalar_Storage_Order
-- The expected output:
-- L: 1000000 0100000 1100000 0010000 1010000 0110000 1110000 0001000
-- B: 0000001 0000010 0000011 0000100 0000101 0000110 0000111 0001000
with Ada.Text_IO;
with System;
procedure bswap is
type Unsigned_7 is mod 2 **... |
9,809 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/prj.ads | <reponame>vidkidz/crossbridge<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,810 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/cc1101/main.adb | <reponame>ekoeppen/STM32_Generic_Ada_Drivers
with Interfaces; use Interfaces;
with STM32GD.Board; use STM32GD.Board;
with STM32GD.GPIO;
with STM32GD.GPIO.Pin;
with Drivers.CC1101;
procedure Main is
package GPIO renames STM32GD.GPIO;
Now : RTC.Date_Time_Type;
Wait_Time : RTC.Second_Delta_Type := 5;
packag... |
9,811 | ada | 0 | BKambic/Chatbox | client.adb | <filename>client.adb
with Ada.Strings;
with GNAT.Sockets; use GNAT.Sockets;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO;
with Ada.Characters.Latin_1; use Ada.Characters.Latin_1;
with Ada.Calendar; use Ada.Calendar;
with Ada.Calendar.Formatting; use Ada.Calendar.Formatting... |
9,812 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/test-bsp/testbsp.adb | <filename>bb-runtimes/examples/test-bsp/testbsp.adb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
9,813 | ada | 10 | LionelDraghi/smk | src/smk-main-analyze_cmd_line.adb | -- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache ... |
9,814 | ada | 0 | Intelligente-sanntidssystemer/Ada-prosjekt | ADA_RC_Car/src/steeringcontrol.ads | with NRF52_DK.IOs;
package SteeringControl is --Servo and Motor controls --
procedure Servocontrol(ServoPin : NRF52_DK.IOs.Pin_Id; Value : NRF52_DK.IOs.Analog_Value); --- Servo--
procedure Direction_Controller; --Left or right write to servo to turn car --
procedure Motor_Controller; --Motor forwa... |
9,815 | ada | 2 | godunko/adawebui | examples/gl_cube/cube.adb | <filename>examples/gl_cube/cube.adb
with Cube_Demo;
procedure Cube is
begin
null;
end Cube;
|
9,816 | ada | 80 | thindil/steamsky | src/crew-inventory.adb | -- Copyright 2017-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... |
9,817 | ada | 4 | carter-e-veldhuizen/RACK | ada/examples/pre-post-conditions/show_type_invariant.ads | procedure Show_Type_Invariant;
-- package Prout is
-- procedure Yolo (A : int; B : int);
-- end Prout;
|
9,818 | ada | 0 | iyan22/AprendeAda | ejercicios6/prueba_interseccion.adb | <filename>ejercicios6/prueba_interseccion.adb
with Ada.Text_Io, Datos;
with Crear_Lista_Vacia, Esc, Ins, Interseccion;
use Datos;
use Ada.Text_Io;
procedure Prueba_Interseccion is
Lis1, Lis2 : Lista; -- variables del programa principal
procedure Pedir_Return is
begin
Put_Line("pulsa retu... |
9,819 | ada | 33 | ytomino/drake | examples/random_sfmt.adb | <filename>examples/random_sfmt.adb<gh_stars>10-100
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT (test.c)
--
-- Copyright (C) 2007 <NAME>, <NAME> and Hiroshima
-- University. All rights reserved.
--
-- The new BSD License is applied to this software, see LICENSE.txt
--
--
-- Ada v... |
9,820 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr2.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/addr2.adb
-- { dg-do run }
with addr2_p; use addr2_p;
procedure addr2 is
begin
Process (B1);
Process (Blk => B1);
Process (B2);
Process (Blk => B2);
end;
|
9,821 | ada | 0 | Letractively/ada-util | regtests/util-beans-ranges-tests.adb | <gh_stars>0
-----------------------------------------------------------------------
-- util-beans-ranges-tests -- Unit tests for bean range definitions
-- Copyright (C) 2011 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file exce... |
9,822 | ada | 0 | thierr26/ada-apsepp | src/_demo/debug_trace/apsepp_demo_dt_scope_debug_user.adb | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Scope_Debug;
package body Apsepp_Demo_DT_Scope_Debug_User is
----------------------------------------------------------------------------
procedure Scope_Debug_User_1 is
use Apsepp.Scope_Debug; -- Makes... |
9,823 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/pixhawk/hil/hil-devices.ads | <gh_stars>10-100
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
-- Module: Software Configuration
--
-- Authors: <NAME> (<EMAIL>)
-- @summary
-- Target-specific types for the devices that are exposed
-- in hil-i2c et. al in Pixhawk.
packag... |
9,824 | ada | 0 | fintatarta/protypo | src/API/protypo-api-engine_values-engine_value_array_wrappers.adb | <gh_stars>0
pragma Ada_2012;
with Ada.Containers;
with Protypo.Api.Engine_Values.Constant_Wrappers;
with Protypo.Api.Engine_Values.Range_Iterators;
with Protypo.Api.Field_Names;
pragma Warnings (Off, "no entities of ""Ada.Text_IO"" are referenced");
with Ada.Text_Io; use Ada.Text_Io;
package body Protypo.Api.Engine_... |
9,825 | ada | 5 | JeremyGrosser/notcursesada | src/notcurses-progress_bar.adb | <gh_stars>1-10
--
-- Copyright 2021 (C) <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: Apache-2.0
--
package body Notcurses.Progress_Bar is
function Create
(Plane : Notcurses_Plane;
Retrograde : Boolean := False)
return Notcurses_Progress_Bar
is
Options : aliased Thin.ncprogb... |
9,826 | ada | 0 | persan/a-cups | src/gen/cups-sys_types_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with CUPS.bits_types_h;
private package CUPS.sys_types_h is
-- Copyright (C) 1991-2016 Free Software Foundation, Inc.
-- This file is part of the GNU C Library.
-- The GNU C Library is free software; you can redistribute it an... |
9,827 | ada | 2 | marcbejerano/ada-tools | CSV/test/testcsv.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure TestCSV is
csv: CSV_File;
begin
Open(csv, "FL_insurance_sample.csv", has_header => true);
Close(csv);
end TestCSV;
|
9,828 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3017c.ada | -- CC3017C.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... |
9,829 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-umldi-uml_styles.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
9,830 | ada | 0 | kisom/rover-mk1 | src/rover.adb | pragma Profile (Ravenscar);
with AVR;
use AVR;
with AVR.Serial, AVR.Wait;
with Hardware, Hardware.Beacon, Hardware.DriveTrain;
with Hardware.PWM;
pragma Unreferenced (Hardware.PWM);
procedure Rover is
ticks : Integer := 0;
procedure Wait_1ms is new Wait.Generic_Wait_Usecs (16_000_000, 1000);
begin
Har... |
9,831 | ada | 33 | ytomino/drake | source/strings/a-strunb.ads | <filename>source/strings/a-strunb.ads
pragma License (Unrestricted);
with Ada.Strings.Maps;
with Ada.Strings.Unbounded_Strings.Functions.Maps;
package Ada.Strings.Unbounded is
pragma Preelaborate;
-- type Unbounded_String is private;
-- pragma Preelaborable_Initialization (Unbounded_String);
subtype Unbounded_... |
9,832 | ada | 4 | davidkristola/vole | avm_suite.adb | <filename>avm_suite.adb
with kv.avm.Test;
with kv.avm.Asm_Tests;
with kv.avm.Comm_Tests;
with kv.avm.Vole_Tests;
package body avm_suite is
function Suite return Access_Test_Suite is
Answer : constant Access_Test_Suite := new Test_Suite;
begin
Answer.Add_Test(new kv.avm.Test.Test_1);
Answer.Add... |
9,833 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/wisitoken-lexer.ads | <gh_stars>0
-- Abstract :
--
-- An abstract lexer interface.
--
-- Copyright (C) 2014 - 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- This file is part of the WisiToken package.
--
-- The WisiToken package is free software; you can redistribute it
-- and/or modify it under the terms of the GNU General Pu... |
9,834 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/symbols-processing-vms-alpha.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,835 | ada | 1 | michalkonecny/polypaver | tools/SPARK2005/preprocessor/src/fp_detect.ads | with Asis;
package FP_Detect is
type FP_Type_Code is (F, LF, SF);
type FP_Type is
record
Precision : Positive;
Name : Asis.Defining_Name;
Is_Standard : Boolean;
Code : FP_Type_Code;
end record;
type FP_Operator_Kind is (Field_Op, Elementary_Fn... |
9,836 | ada | 0 | zackboll/interfaces.cpp | include/interfaces_cpp.strings.ads | -- BSD 2-Clause License
--
-- 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:
--
-- * Redistributions of source code must retain the above copyright notice,
-- thi... |
9,837 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/S-Expressions/Ada/s-expressions-5.ada | <filename>Task/S-Expressions/Ada/s-expressions-5.ada<gh_stars>1-10
with S_Expr.Parser, Ada.Text_IO;
procedure Test_S_Expr is
procedure Put_Line(Indention: Natural; Line: String) is
begin
for I in 1 .. 3*Indention loop
Ada.Text_IO.Put(" ");
end loop;
Ada.Text_IO.Put_Line(Line);
end ... |
9,838 | ada | 0 | positivevaib/nyu-archive | grad/programming-languages/ada-programming-assignment/Matrix_Mult.ads | package Matrix_Mult is
Size: Integer := 10;
type Mat is array(1..Size, 1..Size) of Integer;
procedure Mat_Mult(A: in Mat; B: in Mat; C: out Mat);
end Matrix_Mult;
|
9,839 | ada | 18 | kraileth/ravenadm | src/display-log.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
private
with Ada.Text_IO;
package Display.Log is
-- This supports logging curses operations (for the purpose of troubleshooting)
-- It is activated by setting LOG_RCURSES in the environment
procedure ... |
9,840 | ada | 20 | charlie5/lace | 3-mid/opengl/private/freetype/source/thin/freetype_c-pointer_pointers.ads | <gh_stars>10-100
with
freetype_c.Pointers;
package freetype_c.pointer_Pointers
is
use freetype_c.Pointers;
type FT_UShort_Pointer_Pointer is access all FT_UShort_Pointer;
type FT_Int_Pointer_Pointer is access all FT_Int_Pointer;
type FT_UInt_Pointer_Pointer is access all FT_UI... |
9,841 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Pascals-triangle-Puzzle/Ada/pascals-triangle-puzzle.ada | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
procedure Pyramid_of_Numbers is
B_X, B_Y, B_Z : Integer := 0; -- Unknown variables
type Block_Value is record
Known : Integer := 0;
X, Y, Z : Integer := 0;
end record;
X : constant Block_Value := (0, 1, 0, 0);
Y : constant Block_Value := ... |
9,842 | ada | 1 | selroc/Renaissance-Ada | src/tools/Dependency_Graph_Extractor/src/extraction-node_edge_types.ads | <filename>src/tools/Dependency_Graph_Extractor/src/extraction-node_edge_types.ads
with Extraction.Utilities;
private package Extraction.Node_Edge_Types is
-- Node names.
function Get_Node_Name
(File : VFS.Virtual_File;
Directory_Prefix : VFS.Virtual_File)
return String;
functio... |
9,843 | ada | 80 | thindil/steamsky | tests/ships-movement-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 Ships.Movement.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Ships.Movement
.Test_Data
... |
9,844 | ada | 15 | mgrojo/adalib | system-rpc.ads | <reponame>mgrojo/adalib
-- 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... |
9,845 | ada | 2 | glencornell/ada-socketcan | src/sockets-can_bcm_thin.ads | <reponame>glencornell/ada-socketcan
-- MIT License
--
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- 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 limit... |
9,846 | ada | 1 | greyblue9/binutils-gdb | gdb/testsuite/gdb.ada/fixed_points/pck.ads | <filename>gdb/testsuite/gdb.ada/fixed_points/pck.ads
-- Copyright 2016-2021 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the Licen... |
9,847 | ada | 0 | ytomino/gnat4drake | g-casuti.adb | <gh_stars>0
package body GNAT.Case_Util is
procedure To_Lower (A : in out String) is
begin
for I in A'Range loop
A (I) := To_Lower (A (I));
end loop;
-- Constraint_Error will be propagated if "A" has any multi-byte
-- character.
end To_Lower;
end GNAT.Case_Util;
|
9,848 | ada | 3 | stcarrez/ada-css | src/parser/css-parser-lexer.ads | <reponame>stcarrez/ada-css<filename>src/parser/css-parser-lexer.ads
-- Warning: This lexical scanner is automatically generated by AFLEX.
-- It is useless to modify it. Change the ".Y" & ".L" files instead.
with Ada.Strings.Unbounded;
with CSS.Parser.Parser_Tokens;
package CSS.Parser.Lexer is
use CSS.P... |
9,849 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-valuators-counters.adb |
with
Interfaces.C.Strings,
System;
use type
System.Address;
package body FLTK.Widgets.Valuators.Counters is
procedure counter_set_draw_hook
(W, D : in System.Address);
pragma Import (C, counter_set_draw_hook, "counter_set_draw_hook");
pragma Inline (counter_set_draw_hook);
... |
9,850 | ada | 1 | Fabien-Chouteau/tiled-code-gen | src/tcg-object_groups.adb | ------------------------------------------------------------------------------
-- --
-- tiled-code-gen --
-- --
-- ... |
9,851 | ada | 0 | SSOCsoft/Log_Reporter | src/ini-section_to_map.ads | <gh_stars>0
With
NSO.Types;
-- Section_to_Map takes a section by name, and returns
-- the map of keys to the children by value, converted to string if necessary.
Function INI.Section_to_Map( Object : in Instance;
Section: in String:= ""
) return NSO.Types... |
9,852 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Executable-library/Ada/executable-library-2.ada | with Ada.Text_IO, Parameter, Hailstones;
procedure Hailstone is
-- if Parameter.X > 0, the length of Hailstone(Parameter.X)
-- is computed and written into Parameter.Y
-- if Parameter.X = 0, Hailstone(27) and N <= 100_000 with maximal
-- Hailstone(N) are computed and printed.
procedure Show_Sequence(N... |
9,853 | ada | 0 | annexi-strayline/ASAP-Modular_Hashing | modular_hashing.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- Modular Hash Infrastructure --
-- ... |
9,854 | ada | 25 | My-Colaborations/ada-keystore | tools/fuse/akt-filesystem.adb | <filename>tools/fuse/akt-filesystem.adb
-----------------------------------------------------------------------
-- akt-filesystem -- Fuse filesystem operations
-- Copyright (C) 2019, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
9,855 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt32.adb | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt32.adb
-- { dg-do compile }
-- { dg-options "-O2" }
with Ada.Containers; use Ada.Containers;
with Ada.Containers.Vectors;
function Opt32 return Natural is
package My_Vectors
is new Vectors (Index_Type => Natural, Element_Type => Integer);
use My_Ve... |
9,856 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 2A/S7/SysConc/TP/TP6/lr-main.adb | <reponame>MOUDDENEHamza/ENSEEIHT
-- Time-stamp: <23 oct 2012 10:40 <EMAIL>>
with Ada.Text_IO;
with Ada.Command_Line;
with Ada.Exceptions;
use Ada;
with Gdk.Threads;
with Gtk.Main;
with LR.Affic;
with LR.Tasks;
with LR.Simu;
with LR.Synchro;
procedure LR.Main is
Nb_Lecteurs : Natural;
Nb_Redacteurs : Natural;
... |
9,857 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect7.adb | -- { dg-do compile }
package body Vect7 is
procedure Assign is
v1 : constant v4sf := (-1.0, -2.0, -3.0, -4.0);
v2 : v4sf := v1;
v3 : v4sf;
begin
v3 := vzero;
v3 := vconst;
v3 := v1;
v3 := v2;
v3 := (1.0, -2.0, 3.0, -4.0);
v3 := (1.0, -2.0, 3.0, F);
v2 := vzero;
end;
end... |
9,858 | ada | 0 | jquorning/CELLE | source/symbols.adb | <reponame>jquorning/CELLE
--
-- The author disclaims copyright to this source code. In place of
-- a legal notice, here is a blessing:
--
-- May you do good and not evil.
-- May you find forgiveness for yourself and forgive others.
-- May you share freely, not taking more than you give.
--
package body Sym... |
9,859 | ada | 0 | BeterMixMaster/ADABlackjack | main.adb | <reponame>BeterMixMaster/ADABlackjack
with ada.text_io; use ada.text_io;
with ada.integer_text_io; use ada.integer_text_io;
with tools; use tools;
procedure main is
drawDeck: deck; -- Deck cards are drawn fromt
discardDeck: deck; -- Deck removed cards are placed to
playerHand: deck; -- Player's current hand
dealer... |
9,860 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt69.adb | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt69.adb
-- { dg-do compile }
-- { dg-options "-O" }
with Ada.Text_IO;
procedure Opt69 is
procedure Inner
(A : String := (1 .. 15 => ASCII.NUL);
B : String := (1 .. 5 => ASCII.NUL);
C : String := (1 .. 5 => ASCII.NUL)... |
9,861 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-osinte-solaris.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/s-osinte-solaris.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
9,862 | ada | 20 | charlie5/lace | 3-mid/opengl/source/lean/shader/opengl-program.adb | with
openGL.Tasks,
GL.Pointers,
GL.lean,
ada.Characters.latin_1,
ada.Strings.unbounded,
ada.Text_IO,
Interfaces.C.Strings;
package body openGL.Program
is
use gl.lean,
Interfaces,
ada.Text_IO;
compiling_in_debug_Mode : constant Boolean := True;
type Shader... |
9,863 | ada | 6 | jonashaggstrom/ada-canopen | src/aco-protocols-service_data-servers.adb | <reponame>jonashaggstrom/ada-canopen<gh_stars>1-10
package body ACO.Protocols.Service_Data.Servers is
overriding
procedure Handle_Message
(This : in out Server;
Msg : in ACO.Messages.Message;
Endpoint : in ACO.SDO_Sessions.Endpoint_Type)
is
use ACO.SDO_Commands;
... |
9,864 | ada | 0 | annexi-strayline/ASAP-UUIDs | uuids-version_1-throttled_ts.ads | <reponame>annexi-strayline/ASAP-UUIDs
------------------------------------------------------------------------------
-- --
-- Common UUID Handling Package --
-- - RFC 4122 Implemen... |
9,865 | ada | 0 | cortlandstarrett/mcada | model/mcada/templates/package/t.class_package.ada | -- class package: ${self.name}
-- description: self.description
.if ( "" != domain_types_package_name )
with ${domain_types_package_name};
.end if
package ${root_package.name}.${domain_package.name}.${self.name} is
--************** Object ${self.long_name} Information **************
Object_String : String := "${... |
9,866 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Vehicle_Interface/vehicle_interface.ads | --
-- <NAME>, Australia, July 2015
--
with Real_Type; use Real_Type;
with Swarm_Structures_Base; use Swarm_Structures_Base;
with Vectors_3D; use Vectors_3D;
with Vehicle_Message_Type; use Vehicle_Message_Type;
package Vehicle_Interface is
-----------
-- State --
-----------
funct... |
9,867 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/array23_pkg3.ads | package Array23_Pkg3 is
C0 : Natural := 2;
end Array23_Pkg3;
|
9,868 | ada | 488 | ouankou/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element-associations.ads | <gh_stars>100-1000
package Asis_Adapter.Element.Associations is
procedure Do_Pre_Child_Processing
(Element : in Asis.Element;
State : in out Class);
private
-- For debuggng:
Parent_Name : constant String := Module_Name;
Module_Name : constant String := Parent_Name & "Associations";
end ... |
9,869 | ada | 0 | reznikmm/slimp | source/slim-messages-cont.adb | <reponame>reznikmm/slimp<filename>source/slim-messages-cont.adb<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Slim.Message_Visiters;
package body Slim.Messages.cont is
List : c... |
9,870 | ada | 0 | evgenijaZ/PP-labs | lab13/src/main.adb | with System; use System;
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
procedure Main is
N : Integer := 12;
P : Integer := 6;
H : Integer := N / P;
type GeneralVector is array (Integer range <>) of Integer;
subtype Vector is GeneralVector (1 .... |
9,871 | ada | 0 | oysteinlondal/Inverted-Pendulum | type_lib.ads | package Type_Lib is
type RPM is new Natural range 1000 .. 2000;
type Motor_Direction is (Left, Right);
end Type_Lib; |
9,872 | ada | 2 | SMerrony/dgemua | processor/processor-eagle_fpu_p.adb | -- 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 use, copy, modify, merge, p... |
9,873 | ada | 0 | My-Colaborations/ada-util | regtests/util-processes-tests.adb | <filename>regtests/util-processes-tests.adb
-----------------------------------------------------------------------
-- util-processes-tests - Test for processes
-- Copyright (C) 2011, 2012, 2016, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-... |
9,874 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-duration_observations-collections.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
9,875 | ada | 0 | reznikmm/gela | source/parser/program-nodes-proxy_calls.adb | -- SPDX-FileCopyrightText: 2020-2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Nodes.Proxy_Associations;
package body Program.Nodes.Proxy_Calls is
-----------------
-- Called_Name --
-----------------
overriding funct... |
9,876 | ada | 79 | Cre8or/OpenGLAda | opengl/src/generator/generate.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Command_Line;
with Ada.Containers.Indefinite_Vectors;
with Ada.Directories; use Ada.Directories;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO;
with Specs;
procedure Generate is
Proc... |
9,877 | ada | 0 | My-Colaborations/ada-ado | src/ado-utils-serialize.ads | <filename>src/ado-utils-serialize.ads
-----------------------------------------------------------------------
-- ado-utils-serialize -- Utility operations for JSON/XML serialization
-- Copyright (C) 2016, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License")... |
9,878 | ada | 1 | faelys/natools-web | src/natools-web-acl.adb | <reponame>faelys/natools-web<gh_stars>1-10
------------------------------------------------------------------------------
-- Copyright (c) 2017, <NAME> --
-- --
-- Permission to use, copy, modify, and distrib... |
9,879 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/gnat_cuda.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/gnat_cuda.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,880 | ada | 24 | svn2github/matreshka | tools/ayacc/src/verbose_file.ads | -- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- The primary authors of ayacc were <NAME> and <NAME>.
-- Enhancements were made by <NAME>.
--
-- Send requests for ayacc information to <EMAIL>
-- Send bug reports for ayacc to <EMAIL>
--
-- Redistribution and use in... |
9,881 | ada | 0 | thierr26/ada-apsepp | src/apsepp-characters.ads | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Ada.Characters.Handling; use Ada.Characters.Handling;
package Apsepp.Characters is
subtype ISO_646_Upper_Letter is ISO_646 range 'A' .. 'Z';
end Apsepp.Characters;
|
9,882 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32l0/stm32gd-spi.ads | with STM32_SVD.SPI;
with STM32_SVD; use STM32_SVD;
package STM32GD.SPI is
pragma Preelaborate;
SPI_1 : STM32_SVD.SPI.SPI_Peripheral renames STM32_SVD.SPI.SPI1_Periph;
type SPI_Data_Size is
(Data_Size_8b,
Data_Size_16b);
type SPI_Data_8b is array (Natural range <>) of Byte;
type SPI_Data_... |
9,883 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/uintp.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,884 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_monkeywrap.adb | -------------------------------------------------------------------------------
-- 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... |
9,885 | ada | 0 | KissmyAsthma99/opp | Lab1/data.ads | generic
N: Integer;
package data is
type Vector is private;
type Matrix is private;
function Func1(A,B,C: in Vector; MA,ME: in Matrix) return Vector;
function Func2(MF,MG,MH: in Matrix) return Matrix;
function Func3(O,P: in Vector; MP,MS: in Matrix) return Vector;
function Matrix_Multiplication(A... |
9,886 | ada | 3 | Fabien-Chouteau/AGATE | src/semihosting.ads | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2016, AdaCore --
-- --
-- ... |
9,887 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/vect17.adb | -- { dg-do compile { target i?86-*-* x86_64-*-* } }
-- { dg-options "-O3 -msse2 -fdump-tree-vect-details" }
package body Vect17 is
procedure Add (X, Y : aliased Sarray; R : aliased out Sarray) is
begin
for I in Sarray'Range loop
R(I) := X(I) + Y(I);
end loop;
end;
end Vect17;
-- { dg-f... |
9,888 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/exp_intr.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,889 | ada | 15 | My-Colaborations/dynamo | src/gnat/prj-com.ads | <filename>src/gnat/prj-com.ads
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
9,890 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-except.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,891 | ada | 20 | charlie5/lace | 3-mid/opengl/applet/demo/culler/many_boxes/launch_many_boxes_demo.adb | <reponame>charlie5/lace<filename>3-mid/opengl/applet/demo/culler/many_boxes/launch_many_boxes_demo.adb<gh_stars>10-100
with
openGL.Palette,
openGL.Model.Box.lit_colored_textured,
openGL.Visual,
openGL.Demo;
procedure launch_many_Boxes_Demo
--
-- Exercise the culler with many boxes.
--
is
use o... |
9,892 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-2.2.1/wisitoken-parse-lr-mckenzie_recover.ads | <gh_stars>0
-- Abstract :
--
-- Implement [McKenzie] error recovery, extended to parallel parsers.
--
-- References:
--
-- [McKenzie] McKenzie, <NAME>., Yeatman, Corey, and <NAME>,
-- Lorraine. Error repair in shift reduce parsers. ACM Trans. Prog.
-- Lang. Syst., 17(4):672-689, July 1995. Described in [Grune 20... |
9,893 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada12/s-arit64.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
9,894 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp6/afficher_un_entier.ads | <reponame>MOUDDENEHamza/ENSEEIHT
package Afficher_Un_Entier is
-- Afficher l'entier N sur la sortie standard.
-- Cette procédure s'appuie sur Ada.Integer_Text_IO.Put mais permet d'avoir
-- une procédure avec un seul paramètre.
procedure Afficher (N: in Integer);
end Afficher_Un_Entier;
|
9,895 | ada | 4 | faelys/gela-asis | tools/xml2ayacc/xml_io/xml_io-internals.adb | ------------------------------------------------------------------------------
-- <NAME> A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
9,896 | ada | 0 | My-Colaborations/ada-keystore | regtests/keystore-tests.adb | -----------------------------------------------------------------------
-- keystore-tests -- Tests for akt command
-- Copyright (C) 2019, 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... |
9,897 | ada | 33 | ytomino/drake | source/streams/a-ststio.ads | <filename>source/streams/a-ststio.ads<gh_stars>10-100
pragma License (Unrestricted);
with Ada.IO_Exceptions;
with Ada.IO_Modes;
private with Ada.Finalization;
private with Ada.Streams.Naked_Stream_IO;
package Ada.Streams.Stream_IO is
pragma Preelaborate;
type Stream_Access is access all Root_Stream_Type'Class;
... |
9,898 | ada | 2 | marcbejerano/ada-tools | CSV/src/csv.ads | -- @(#)File: csv.ads
-- @(#)Last changed: Aug 6 2015 10:07:13
-- @(#)Purpose: Character Separated Value (CSV) file support
-- @(#)Author: <NAME> <<EMAIL>>
-- @(#)Copyright: Copyright (C) 2015, <NAME>, All Rights Reserved
-- @(#)Product: None
-- @(#)License: BSD3
--
-... |
9,899 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/i-cstrin.adb | <filename>llvm-gcc-4.2-2.9/gcc/ada/i-cstrin.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.