id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
1,100 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/discr_test.adb | -- { dg-do compile }
procedure Discr_Test is
procedure P is begin null; end P;
task type Tsk1 is
entry rvT;
end Tsk1;
task body Tsk1 is
begin
accept rvT;
end Tsk1;
task type Tsk2 (pS : not null access procedure) is
entry rvT;
end Tsk2;
task body Tsk2 is
tskT : Tsk1;
begin
a... |
1,101 | ada | 1 | faelys/natools-web | src/natools-web-fallback_render.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
1,102 | ada | 1 | skill-lang/skillAdaTestSuite | benchmark/benchmark_number.adb | <filename>benchmark/benchmark_number.adb
with Ada.Unchecked_Deallocation;
with Number.Api;
package body Benchmark_Number is
package Skill renames Number.Api;
use Number;
use Skill;
type State_Type is access Skill_State;
State : State_Type;
procedure Create (N : Integer; File_Name : String) is
... |
1,103 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/sam/samg55/svd/i-sam-pmc.ads | --
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from ATSAMG55J19.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- Power Management Controller
package Interfaces.SAM.PMC is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Regist... |
1,104 | ada | 1 | skill-lang/skillAdaTestSuite | unused/benchmark/benchmark_s_graph_2.adb | with Ada.Numerics.Discrete_Random;
with Ada.Streams.Stream_IO;
with Ada.Text_IO;
with Ada.Unchecked_Deallocation;
with Hashing;
with Ada.Containers.Vectors;
package body Benchmark_S_Graph_2 is
package Skill renames Graph_2.Api;
use Graph_2;
use Skill;
type State_Type is access Skill_State;
State : Sta... |
1,105 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-billboard-colored_textured.adb | <filename>3-mid/opengl/source/lean/model/opengl-model-billboard-colored_textured.adb
with
openGL.Primitive.indexed,
openGL.IO;
package body openGL.Model.billboard.colored_textured
is
type Geometry_view is access all Geometry.colored_textured.item'Class;
---------
--- Forge
--
function new_B... |
1,106 | ada | 11 | moriarity9211/Amass | resources/scripts/cert/facebookct.ads | <filename>resources/scripts/cert/facebookct.ads<gh_stars>10-100
-- Copyright 2017 <NAME>. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local json = require("json")
name = "FacebookCT"
type = "cert"
function start()
setratelimit(20)
end
fu... |
1,107 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/exp_prag.adb | <filename>gcc-gcc-7_3_0-release/gcc/ada/exp_prag.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,108 | ada | 0 | persan/dds-requestreply | tests/simpleOO/src/dds-request_reply-tests-simple-server-main.adb | <gh_stars>0
with DDS.Request_Reply.Tests.Simple.String_Replier;
with DDS.Request_Reply.Tests.Simple.Octets_Replier;
procedure DDS.Request_Reply.Tests.Simple.Server.Main is
Listner : aliased Ref;
Octets_Replier : Simple.Octets_Replier.Ref_Access := Simple.Octets_Replier.Create
(Participant => Parti... |
1,109 | ada | 20 | charlie5/lace | 3-mid/physics/interface/source/physics-shape.ads | package physics.Shape
--
-- Models a physical shape.
--
is
type Item is limited interface;
type View is access all Item'Class;
procedure define (Self : in out Item) is abstract;
procedure free (Self : in out View);
procedure Scale_is (Self : in out Item; Now : in math.Vector_3) is abstract;
p... |
1,110 | ada | 33 | kqr/qweyboard | src/qweyboard/qweyboard-emulation.ads | <gh_stars>10-100
with Configuration;
with Ada.Real_Time;
private with Unicode_Strings;
private with Qweyboard.Languages;
private with Logging;
private with Output_Backend;
package Qweyboard.Emulation is
package RT renames Ada.Real_Time;
use type RT.Time, RT.Time_Span;
task type Timer_Task;
protected Soft... |
1,111 | ada | 12 | TUM-EI-RCS/StratoX | runtime/ravenscar-sfp-stm32f427/common/s-memmov.adb | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,112 | ada | 2 | skordal/ada-regex | tests/utilities_test_cases.adb | <gh_stars>1-10
-- Ada regular expression library
-- (c) <NAME> 2020 <<EMAIL>>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Assertions;
use AUnit.Assertions;
with Regex.Utilities.Sorted_Sets;
package body Utilities_Test_Cases is
package Integer_Sets is new Regex.Utilities.Sort... |
1,113 | ada | 15 | My-Colaborations/dynamo | src/asis/asis-exceptions.ads | ------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT INTERFACE COMPONENTS --
-- --
-- ... |
1,114 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | boards/stm32l0_rfm69_sensor/rfm69hcw/stm32gd-board_variant.ads | package STM32GD.Board_Variant is
TX_PA_Boost : constant Boolean := True;
Output_Power_dBm : constant Integer := 13;
end STM32GD.Board_Variant;
|
1,115 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-clauses.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,116 | ada | 52 | onox/orka | orka/src/orka/interface/orka-rendering-buffers-mapped-unsynchronized.ads | -- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
1,117 | ada | 24 | svn2github/matreshka | source/league/ucd/matreshka-internals-unicode-ucd-core_0000.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,118 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/par-prag.adb | <filename>tools-src/gnu/gcc/gcc/ada/par-prag.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,119 | ada | 4 | jfuica/bingada | src/q_gen_shuffle.ads | <filename>src/q_gen_shuffle.ads
generic
type Element_Type is private;
C_Max_Number : Positive;
package Q_Gen_Shuffle is
type Array_Type is array (Positive range 1 .. C_Max_Number) of Element_Type;
procedure P_Shuffle (List : in out Array_Type);
end Q_Gen_Shuffle;
|
1,120 | ada | 1 | theunifai/unifai-sdk | clients/ada/src/model/-models.ads | <gh_stars>1-10
-- FastAPI
-- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
--
-- The version of the OpenAPI document: 0.1.0
--
--
-- NOTE: This package is auto generated by OpenAPI-Generator 4.0.0.
-- https://openapi-generator.tech
-- Do not edit the ... |
1,121 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/string_comparison.adb | <gh_stars>1-10
-- { dg-do compile }
with Ada.Text_IO; use Ada.Text_IO;
procedure String_Comparison is
package Bool_IO is new Enumeration_IO (Boolean);
use Bool_IO;
begin
Put (Boolean'Image (True) = "True");
end;
|
1,122 | ada | 0 | ytomino/gnat4drake | g-regpat.adb | package body GNAT.Regpat is
function Compile (Expression : String; Flags : Regexp_Flags := No_Flags)
return Pattern_Matcher is
begin
raise Program_Error; -- unimplemented
return Compile (Expression, Flags);
end Compile;
function Match (
Self : Pattern_Matcher;
Data : String;... |
1,123 | ada | 12 | My-Colaborations/ada-asf | src/asf-components-widgets-factory.adb | -----------------------------------------------------------------------
-- widgets-factory -- Factory for widget Components
-- Copyright (C) 2013, 2015, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
1,124 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-ssvety.ads | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-ssvety.ads<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
1,125 | ada | 24 | svn2github/matreshka | source/amf/mof/amf-internals-elements.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
1,126 | ada | 0 | simonjwright/VL53L1X | demo/vl53l1x_demo-hardware.ads | with STM32.Device;
with STM32.GPIO;
with STM32.I2C;
with Ravenscar_Time;
with VL53L1X;
package VL53L1X_Demo.Hardware is
Sensor_Port : STM32.I2C.I2C_Port renames STM32.Device.I2C_1;
-- These are my two VL53L1X devices, named for their supplier.
-- Only the Polulu breakout has XSHUT exported (disables the
... |
1,127 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/s-spsufi.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,128 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/a-comlin.adb | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
1,129 | ada | 0 | My-Colaborations/ada-util | regtests/util-serialize-io-json-tests.adb | <filename>regtests/util-serialize-io-json-tests.adb
-----------------------------------------------------------------------
-- serialize-io-json-tests -- Unit tests for JSON parser
-- Copyright (C) 2011, 2016, 2017, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the... |
1,130 | ada | 0 | breezage/Hacktoberfest-1 | scripts/HelloWorld.adb | -- LANGUAGE: Ada
-- AUTHOR: <NAME>
-- GITHUB: https://github.com/Nairu
with Ada.Text_IO; use Ada.Text_IO;
procedure HelloWorld is
begin
Put_Line ("Hello World!");
end HelloWorld; |
1,131 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Library/matrices_3d.ads | <reponame>ForYouEyesOnly/Space-Convoy
with Matrices;
pragma Elaborate_All (Matrices);
package Matrices_3D is new Matrices (3);
|
1,132 | ada | 0 | astroumd/ATP | README.ads | <reponame>astroumd/ATP
-*- Text -*-
See https://pdc-svpaap1.umd.edu/policies/apt_forms.html
for the CVTemplate.docx.
I had issues with this, perhaps MS-Word/LibreOffice, perhaps my
inability to work with WYSIWYG programs:
For example, in II I would try and add an item in II.A.3 and it
doesn't get the indent, but the... |
1,133 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overriding_ops.ads | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/overriding_ops.ads
with overriding_ops_p; use overriding_ops_p;
package overriding_ops is
task type Light_Programmer is new Device with
overriding entry Set_Name (Name : Name_Type);
end Light_Programmer;
-- Object that represents a light
protecte... |
1,134 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-range_attribute_references.ads | <gh_stars>0
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Attribute_References;
with Program.Elements.Range_Attribute_References;
with Program.Element_Visitors;
package Program.Nodes.Range_Attri... |
1,135 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-counters/src/awa-counters-modules.adb | <reponame>fuzzysloth/ada-awa<filename>awa/plugins/awa-counters/src/awa-counters-modules.adb
-----------------------------------------------------------------------
-- awa-counters-modules -- Module counters
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version ... |
1,136 | ada | 1 | Fabien-Chouteau/sdlada | src/sdl-inputs-joysticks.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 damages
-- arising from the... |
1,137 | ada | 0 | caqg/linux-home | .emacs.d/elpa/wisi-3.1.3/sal-gen_bounded_definite_vectors-gen_refs.adb | -- Abstract :
--
-- See spec.
--
-- Copyright (C) 2019 Free Software Foundation, Inc.
--
-- This library is free software; you can redistribute it and/or modify it
-- under terms of the GNU General Public License as published by the Free
-- Software Foundation; either version 3, or (at your option) any lat... |
1,138 | ada | 0 | mstewartgallus/linted | src/ada-xkb/src/xkb-keysyms.ads | <gh_stars>0
-- Copyright 2015 <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 applicable law or agreed... |
1,139 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f1/stm32f103xx/svd/stm32_svd-usb.ads | -- This spec has been automatically generated from STM32F103.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.USB is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype EP0R_EA_Field is STM32_SVD.UInt4... |
1,140 | ada | 33 | ytomino/drake | source/environment/a-clarpa.ads | <gh_stars>10-100
pragma License (Unrestricted);
-- implementation unit
private package Ada.Command_Line.Argument_Parsing is
-- Command line parser only for one argument.
pragma Preelaborate;
type State_Type is record
Posixly_Correct : Boolean := False; -- stop parsing after argument
Not_Option :... |
1,141 | ada | 0 | e3l6/SSMDev | demo/adainclude/last_chance_handler.adb | <filename>demo/adainclude/last_chance_handler.adb
package body Last_Chance_Handler is
-------------------------
-- Last_Chance_Handler --
-------------------------
procedure Last_Chance_Handler (Msg : System.Address; Line : Integer) is
pragma Unreferenced (Msg, Line);
procedure OS_Exit (Statu... |
1,142 | ada | 7 | jquorning/trendy_test | src/trendy_test-reports.adb | <filename>src/trendy_test-reports.adb
with Ada.Calendar;
with Ada.Strings.Unbounded;
with Ada.Strings.Unbounded.Text_IO;
with Ada.Text_IO;
with Ada.Command_Line;
package body Trendy_Test.Reports is
procedure Print_Basic_Report (Results : Test_Report_Vectors.Vector) is
use Ada.Text_IO;
use Ada.Stri... |
1,143 | ada | 20 | charlie5/lace | 3-mid/opengl/source/platform/glx/private/opengl-surface-privvy.adb | <reponame>charlie5/lace
package body openGL.Surface.privvy
is
function to_GLX (Self : in Surface.item'Class) return glx.Drawable
is
begin
return Self.glx_Surface;
end to_GLX;
end openGL.Surface.privvy;
|
1,144 | ada | 1 | leo-brewin/adm-bssn-numerical | bssn/code/src/bssnbase-constraints.ads | package BSSNBase.Constraints is
function get_detg (i, j, k : Integer) return Real;
function get_detg (point : GridPoint) return Real;
function get_trABar (i, j, k : Integer) return Real;
function get_trABar (point : GridPoint) return Real;
procedure set_constraints (point : GridPoint); -- set the con... |
1,145 | ada | 24 | svn2github/matreshka | source/amf/mof/cmof/amf-internals-cmof_packages.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
1,146 | ada | 0 | My-Colaborations/ada-ado | src/ado-queries-loaders.ads | <reponame>My-Colaborations/ada-ado
-----------------------------------------------------------------------
-- ado-queries-loaders -- Loader for Database Queries
-- Copyright (C) 2011, 2012, 2017, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you... |
1,147 | ada | 0 | fintatarta/eugen | src/Projects/eu_projects-nodes-action_nodes-wps.ads | <reponame>fintatarta/eugen<filename>src/Projects/eu_projects-nodes-action_nodes-wps.ads
with Ada.Containers.Vectors;
with Ada.Iterator_Interfaces;
with EU_Projects.Nodes.Action_Nodes;
with EU_Projects.Nodes.Timed_Nodes.Deliverables;
with EU_Projects.Nodes.Action_Nodes.Tasks;
with EU_Projects.Nodes.Partners;
with EU_Pr... |
1,148 | ada | 0 | thierr26/gnatdoc_test | src/my_package.adb | <filename>src/my_package.adb
package body My_Package is
----------------------------------------------------------------------------
function My_Function (A : Arr) return Boolean
is (for all Z in A'Range => A(Z) = A(A'First));
----------------------------------------------------------------------------... |
1,149 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/driversL5/stm32-sau.adb | package body STM32.SAU is
type RLAR_Overlay
(As_32Bit : Boolean := False)
is record
case As_32Bit is
when False =>
Val : HAL.UInt32;
when True =>
Reg : SAU_RLAR_Register;
end case;
end record
with Unchecked_Union, Size => 32;
procedure Add_Re... |
1,150 | ada | 76 | yannickmoy/SPARKNaCl | src/sparknacl-core.adb | <reponame>yannickmoy/SPARKNaCl<gh_stars>10-100
package body SPARKNaCl.Core
with SPARK_Mode => On
is
pragma Warnings (GNATProve, Off, "pragma * ignored (not yet supported)");
--===============================
-- Local subprogram declarations
-- and renamings
--===============================
func... |
1,151 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-arrspl.ads | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
1,152 | ada | 12 | TUM-EI-RCS/StratoX | tests/subnormal-target/src/crash.ads | with System;
package Crash is
procedure Last_Chance_Handler
(Source_Location : System.Address; Line : Integer);
pragma Export (C, Last_Chance_Handler,
"__gnat_last_chance_handler");
end Crash;
|
1,153 | ada | 24 | fjudith/sql-benchmark | tools/src/tool-main.adb | -----------------------------------------------------------------------
-- tool-main -- Main tool program
-- Copyright (C) 2018 <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 License.
-- You may... |
1,154 | ada | 0 | RREE/ada-util | src/base/properties/util-properties.adb | -----------------------------------------------------------------------
-- util-properties -- Generic name/value property management
-- Copyright (C) 2001 - 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compli... |
1,155 | ada | 2 | thindil/tashy2 | src/tk/tk-bind.ads | <gh_stars>1-10
-- Copyright (c) 2021 <NAME> <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the License at
--
-- http://www.apache.org/licenses/LICENSE-2.0
--
-- Unless required by applica... |
1,156 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c67005d.ada | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c6/c67005d.ada<gh_stars>1-10
-- C67005D.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 ... |
1,157 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-ivec3.ads | --------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without r... |
1,158 | ada | 0 | bracke/Meaning | source/RASCAL-Module.adb | --------------------------------------------------------------------------------
-- --
-- Copyright (C) 2004, RISC OS Ada Library (RASCAL) developers. --
-- ... |
1,159 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-root_types.ads | -- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Root_Types;
with Program.Element_Visitors;
package Program.Nodes.Root_Types is
pragma Preelaborate;
type Root_Type is
new Program.Nodes... |
1,160 | ada | 32 | robdaemon/AdaYaml | src/interface/yaml-transformator.ads | <filename>src/interface/yaml-transformator.ads
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Finalization;
package Yaml.Transformator is
type Instance is abstract tagged limited private;
type Pointer is access Instance'Class;
proced... |
1,161 | ada | 6 | jonashaggstrom/ada-canopen | src/aco.ads | <reponame>jonashaggstrom/ada-canopen
package ACO is
pragma Pure;
end ACO;
|
1,162 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-type-3.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure P is type t; type t; begin put('a'); end;
|
1,163 | ada | 1 | jorge-real/TTS | examples/use_cpu.ads | package Use_CPU is
procedure Work (Amount_MS : in Natural)
with Inline;
-- Amount of time in ms, truncated to tens of ms
end Use_CPU;
|
1,164 | ada | 0 | cocolab8/cocktail | rex/lib/scandrv.adb | <filename>rex/lib/scandrv.adb
-- $Id: scandrv.adb,v 1.2 1997/05/27 21:44:35 grosch rel $
$@ with @, Text_Io, Position, Strings;
$@ use @, Text_Io, Position, Strings;
$@ procedure @Drv is
package Int_Io is new Text_Io.Integer_IO (Integer); use Int_Io;
Token : Integer := 1;
Word : tString;
Debug : Boole... |
1,165 | ada | 14 | JeremyGrosser/usb_embedded | src/usb-device-midi.ads | <reponame>JeremyGrosser/usb_embedded<gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2018-2021, AdaCore --
-- ... |
1,166 | ada | 3 | charlie5/aIDE | source/adam-parameter.ads | <filename>source/adam-parameter.ads
with
AdaM.Any,
AdaM.a_Type,
ada.Streams;
package AdaM.Parameter
is
type Item is new Any.Item with private;
-- View
--
type View is access all Item'Class;
procedure View_write (Stream : not null access Ada.Streams.Root_Stream_Type'Class;
... |
1,167 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/sem_mech.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
1,168 | ada | 52 | onox/orka | tests/src/test_simd_avx_swizzle.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
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
1,169 | ada | 0 | jhumphry/Ada_BinToAsc | src/tests/bintoasc_suite-base32_tests.adb | -- BinToAsc_Suite.Base32_Tests
-- Unit tests for BinToAsc
-- Copyright (c) 2015, <NAME> - see LICENSE file for details
with AUnit.Assertions;
with System.Storage_Elements;
with Ada.Assertions;
with String_To_Storage_Array;
with BinToAsc.Base32;
package body BinToAsc_Suite.Base32_Tests is
use AUnit.Assertions;... |
1,170 | ada | 3 | jwarwick/aoc_2020 | day22/src/day.adb | -- AoC 2020, Day 22
with Ada.Text_IO;
with Ada.Containers.Vectors;
with Ada.Containers.Hashed_Sets;
use Ada.Containers;
with Ada.Strings.Hash;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package body Day is
package TIO renames Ada.Text_IO;
package Deck_Vectors is new Ada.Containers.Vectors
(Index_T... |
1,171 | ada | 12 | TUM-EI-RCS/StratoX | software/driver/px4io-protocol.ads | --***************************************************************************
--
-- Copyright (c)2_0122_014 PX4 Development Team. 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. Red... |
1,172 | ada | 79 | Cre8or/OpenGLAda | tests/src/shared/gl_test-display_backend.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Text_IO;
with Glfw.Windows.Context;
with Glfw.Windows.Hints;
with Glfw.Input.Keys;
with Glfw.Errors;
package body GL_Test.Display_Backend is
type Test_Window is new Glfw.Windows.Window with null... |
1,173 | ada | 1 | faelys/natools-web | tests/common-pages.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
1,174 | ada | 0 | AntonMeep/sha1 | src/sha1.adb | pragma Ada_2012;
with Ada.Unchecked_Conversion;
with GNAT.Byte_Swapping;
with System;
package body SHA1 with
SPARK_Mode => On
is
function Initialize return Context is
((State => <>, Count => 0, Buffer => (others => 0)));
procedure Initialize (Ctx : out Context) is
begin
Ctx := Initialize;
e... |
1,175 | ada | 6 | gerr135/ada_gems | mixins/src/oop_mixin.adb | <gh_stars>1-10
with Ada.Text_IO; use Ada.Text_IO;
package body oop_mixin is
overriding
procedure simple(Self : Derived) is
begin
Put_Line(" oop:simple");
end;
overriding
procedure compound(Self : Derived) is
begin
Put_Line(" oop:compound, calling Derived.simple")... |
1,176 | ada | 1 | reinertk/cpros | src/cpros_exceptions.ads | <filename>src/cpros_exceptions.ads
package cpros_exceptions is
cfe0 : exception;
end cpros_exceptions;
|
1,177 | ada | 0 | GLADORG/template-compiler | src/encoding.ads |
package Encoding is
function Encode (Text : String) return Wide_Wide_String;
private
end Encoding; |
1,178 | ada | 32 | robdaemon/AdaYaml | src/interface/yaml-inspect.ads | <reponame>robdaemon/AdaYaml<filename>src/interface/yaml-inspect.ads<gh_stars>10-100
-- part of AdaYaml, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "copying.txt"
generic
with procedure Start_Emitting is <>;
with procedure Finish_Emitting is <>;
with procedure Start_Parsed_In... |
1,179 | ada | 1 | djgoku/RosettaCodeData | Task/Set/Ada/set.ada | <gh_stars>1-10
with Ada.Text_IO, Ada.Containers.Ordered_Sets;
procedure Set_Demo is
package CS is new Ada.Containers.Ordered_Sets(Character); use CS;
package IO renames Ada.Text_IO;
-- helper functions for string to something conversion, and vice versa
function To_Set(S: String) return Set is
... |
1,180 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-context.adb | -- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Strings.Fixed;
with Interfaces.C.Strings;
with GL.API;
with GL.Enums.Getter;
with GL.Errors;
package body GL.Context is
function Major_Version return Int is
Result : aliased Int;
begin... |
1,181 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_parallel_sponge.adb | <reponame>damaki/libkeccak
-------------------------------------------------------------------------------
-- 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:
-- ... |
1,182 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/concat1_pkg.adb | package body Concat1_Pkg is
function Ident (I : Integer) return Integer is begin return I; end;
end Concat1_Pkg;
|
1,183 | ada | 1 | mullikine/RosettaCodeData | Task/Roman-numerals-Decode/Ada/roman-numerals-decode.ada | Pragma Ada_2012;
Pragma Assertion_Policy( Check );
With
Unchecked_Conversion,
Ada.Text_IO;
Procedure Test_Roman_Numerals is
-- We create an enumeration of valid characters, note that they are
-- character-literals, this is so that we can use literal-strings,
-- and that their size is that of Integer.
... |
1,184 | ada | 1 | irion7/aflex-ayacc-mirror | aflex/src/vaxvms/command_lineb.ada | <filename>aflex/src/vaxvms/command_lineb.ada<gh_stars>1-10
-- TITLE command line interface
-- AUTHOR: <NAME>
-- DESCRIPTION command line interface body for use with VAX/VMS
-- NOTES this file is system dependent
with Tstring;
with Handle_Foreign_Command;
package body Command_Line_Interface is
subtype Argument_Numb... |
1,185 | ada | 0 | strenkml/EE368 | memsim-master/src/lexer.adb |
with Ada.Characters.Latin_1;
use Ada.Characters;
package body Lexer is
procedure Open(lexer : out Lexer_Type;
file_name : in String) is
begin
Character_IO.Open(File => lexer.file,
Mode => Character_IO.In_File,
Name => file_name);
... |
1,186 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c97201d.ada | <filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c9/c97201d.ada
-- C97201D.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... |
1,187 | ada | 20 | charlie5/lace | 1-base/math/source/generic/pure/geometry/trigonometry/cached_rotation.adb | package body cached_Rotation
is
use ada.Numerics,
float_elementary_Functions;
the_Cache : array (0 .. slot_Count - 1) of aliased Matrix_2x2_type;
Pi_x_2 : constant := Pi * 2.0;
last_slot_Index : constant Float_type := Float_type (slot_Count - 1);
index_Factor : cons... |
1,188 | ada | 1 | ytomino/vampire | source/tabula-users-user_info_io.ads | <filename>source/tabula-users-user_info_io.ads
-- The Village of Vampire by YT, このソースコードはNYSLです
with Serialization;
package Tabula.Users.User_Info_IO is
Yaml_Type : constant String := "vampire-user";
procedure IO (
Serializer : not null access Serialization.Serializer;
Value : in out User_Info);
package Pa... |
1,189 | ada | 3 | charlie5/aIDE | attic/asis/find_entities/adam-assist-query-find_entities-element_processing.adb | <reponame>charlie5/aIDE
with
Asis.Iterator,
AdaM.Assist.Query.find_Entities.Actuals_for_traversing;
package body AdaM.Assist.Query.find_Entities.element_Processing
is
procedure Recursive_Construct_Processing is new
Asis.Iterator.Traverse_Element
(State_Information => AdaM.Assist.Query.find... |
1,190 | ada | 33 | ytomino/drake | source/interfaces/i-cwiwst.ads | pragma License (Unrestricted);
-- extended unit
with Interfaces.C.Generic_Strings;
with Interfaces.C.WChar_Pointers;
package Interfaces.C.Wide_WStrings is
new Generic_Strings (
Character_Type => Wide_Character,
String_Type => Wide_String,
Element => wchar_t,
Element_Array => wchar_array,
... |
1,191 | ada | 0 | reznikmm/markdown | sources/driver/custom_writers.adb | <reponame>reznikmm/markdown<gh_stars>0
-- SPDX-FileCopyrightText: 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
----------------------------------------------------------------
with Ada.Strings.Unbounded;
with Ada.Characters.Wide_Wide_Latin_1;
with Ada.Integer_Text_IO;
package body Custom_Writers is
... |
1,192 | ada | 0 | Tim-W-James/Ada-Reference-Code | Sources/practice.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure practice is
begin
null;
end practice;
|
1,193 | ada | 0 | My-Colaborations/ada-ado | src/ado-configs.adb | -----------------------------------------------------------------------
-- ado-configs -- Database connection configuration
-- Copyright (C) 2010, 2011, 2012, 2013, 2015, 2016, 2017, 2018, 2019 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
1,194 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/gl/gl-buffer-general.adb | -------------------------------------------------------------------------
-- GL.Geometry - GL vertex buffer Object
--
-- Copyright (c) <NAME> 2007
-- AUSTRALIA
-- Permission granted to use this software, without any warranty,
-- for any purpose, provided this copyright note remains attached
-- and unmodifi... |
1,195 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Set-consolidation/Ada/set-consolidation-1.ada | generic
type Element is (<>);
with function Image(E: Element) return String;
package Set_Cons is
type Set is private;
-- constructor and manipulation functions for type Set
function "+"(E: Element) return Set;
function "+"(Left, Right: Element) return Set;
function "+"(Left: Set; Right: Element) ... |
1,196 | ada | 28 | onox/json-ada | tests/src/test_streams.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
--
-- http://www.apache.org/licenses/LICENSE-2.0
-... |
1,197 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_attribute1.ads | <reponame>best08618/asylo<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/specs/size_attribute1.ads
-- { dg-do compile }
with Size_Attribute1_Pkg1;
package Size_Attribute1 is
function Num return Natural;
pragma Import (Ada, Num);
type A is array (Natural range <>) of Integer;
type T is
record
... |
1,198 | ada | 2 | thindil/tashy2 | tests/tk-image-bitmap-bitmap_options_test_data-bitmap_options_tests.ads | -- This package has been generated automatically by GNATtest.
-- Do not edit any part of it, see GNATtest documentation for more details.
-- begin read only
with GNATtest_Generated;
package Tk.Image.Bitmap.Bitmap_Options_Test_Data.Bitmap_Options_Tests is
type Test_Bitmap_Options is new GNATtest_Generated.GNATt... |
1,199 | ada | 0 | glencornell/ada-object-framework | src/aof-core-properties.ads | -- Copyright (C) 2020 <NAME> <<EMAIL>>
--
-- This program is free software: you can redistribute it and/or
-- modify it under the terms of the GNU General Public License as
-- published by the Free Software Foundation, either version 3 of the
-- License, or (at your option) any later version.
--
-- This program... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.