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 |
|---|---|---|---|---|---|
7,700 | ada | 1 | omarafify1990/Amass | resources/scripts/api/robtex.ads | <reponame>omarafify1990/Amass
-- Copyright 2021 <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 = "Robtex"
type = "api"
function start()
setratelimit(1)
end
function vertical(ctx, domain)
local c... |
7,701 | ada | 1 | OneWingedShark/Risi | src/risi_script-types-implementation-conversions.adb | <filename>src/risi_script-types-implementation-conversions.adb
With
System.Storage_Elements,
Risi_Script.Types.Implementation.Creators,
Risi_Script.Types.Internals,
Ada.Containers,
Ada.Strings.Unbounded,
Ada.Strings.Fixed;
Separate(Risi_Script.Types.Implementation)
Package Body Conversions is
Use Risi_Script.Types... |
7,702 | ada | 0 | xuedong/mini-ada | tests/typing/bad/testfile-type-1.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure P is type t; begin put('a'); end;
|
7,703 | ada | 39 | shinesolutions/swagger-aem | clients/ada/generated/src/client/-clients.adb | -- Adobe Experience Manager (AEM) API
-- Swagger AEM is an OpenAPI specification for Adobe Experience Manager (AEM) API
--
-- The version of the OpenAPI document: 3.5.0_pre.0
-- Contact: <EMAIL>
--
-- NOTE: This package is auto generated by OpenAPI-Generator 5.2.1.
-- https://openapi-generator.tech
-- Do not edi... |
7,704 | ada | 0 | glencornell/ada-object-framework | src/aof-core-generic_properties.adb | -- 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... |
7,705 | ada | 4 | faelys/gela-asis | source/asis/asis-iterator.ads | -------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 14 package Asis.Iterator
-------------------------------------------------------------------------------
---------------------------------------------------... |
7,706 | ada | 0 | hgrodriguez/embedded-dashboard-console | src/evaluate-leds.adb | --
-- Copyright 2021 (C) <NAME>
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body Evaluate.LEDs is
--------------------------------------------------------------------------
-- Check functions for the input received
-- Those functions set the global variables to the received value
-----------... |
7,707 | ada | 81 | fuzzysloth/ada-awa | awa/plugins/awa-changelogs/src/awa-changelogs-modules.adb | <gh_stars>10-100
-----------------------------------------------------------------------
-- awa-changelogs-modules -- Module changelogs
-- Copyright (C) 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance... |
7,708 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/g-sercom.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,709 | ada | 0 | joffreyhuguet/LmcpGen | src/templates/ada/avtas/lmcp/avtas-lmcp-bytebuffers.ads | <reponame>joffreyhuguet/LmcpGen
with System; use System;
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package AVTAS.LMCP.ByteBuffers is
Maximum_Length : constant := UInt32'Last - 1;
subtype Index is UInt32 range 1 .. Maximum_Length;
... |
7,710 | ada | 1 | leo-brewin/adm-bssn-numerical | bssn/code/src/bssnbase-runge.adb | <reponame>leo-brewin/adm-bssn-numerical
with Support; use Support;
package body BSSNBase.Runge is
-- increments in data
delta_gBar_ptr : MetricGridArray_ptr := new MetricGridArray (1..max_num_x, 1..max_num_y, 1..max_num_z);
delta_ABar_ptr : ExtcurvGridArray_ptr := new ExtcurvGridArray (1..max_num_x, 1..m... |
7,711 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-packages.ads | <gh_stars>10-100
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,712 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/csets.adb | <reponame>djamal2727/Main-Bearing-Analytical-Model
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... |
7,713 | ada | 0 | JCGobbi/Nucleo-STM32F334R8 | ADL/devices/stm32-rcc.adb | <reponame>JCGobbi/Nucleo-STM32F334R8
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015, AdaCore --
-- ... |
7,714 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Undefined-values/Ada/undefined-values.ada | pragma Initialize_Scalars;
with Ada.Text_IO; use Ada.Text_IO;
procedure Invalid_Value is
type Color is (Red, Green, Blue);
X : Float;
Y : Color;
begin
if not X'Valid then
Put_Line ("X is not valid");
end if;
X := 1.0;
if X'Valid then
Put_Line ("X is" & Float'Image (X));
end if;
... |
7,715 | ada | 30 | Componolit/libsparkcrypto | src/shared/generic/lsc-internal-ec_signature.adb | -------------------------------------------------------------------------------
-- This file is part of libsparkcrypto.
--
-- Copyright (C) 2012, <NAME>
-- Copyright (C) 2012, secunet Security Networks AG
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modif... |
7,716 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/pack17.adb | -- { dg-do run }
procedure Pack17 is
type Bitmap_T is array (Natural range <>) of Boolean;
pragma Pack (Bitmap_T);
type Uint8 is range 0 .. 2 ** 8 - 1;
for Uint8'Size use 8;
type Record_With_QImode_Variants (D : Boolean) is record
C_Filler : Bitmap_T (1..7);
C_Map : Bitmap_T (1..3);
... |
7,717 | ada | 0 | optikos/oasis | source/nodes/program-nodes-formal_ordinary_fixed_point_definitions.ads | <reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Formal_Ordinary_Fixed_Point_Definitions;
with Program.Element_Visitors;
p... |
7,718 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/decl_ctx_def.ads |
package DECL_CTX_Def is
X : exception;
end;
|
7,719 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/webapi/html/webapi-html-input_elements.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,720 | ada | 0 | reznikmm/gela | source/nodes/program-nodes-function_access_types.ads | <reponame>reznikmm/gela<filename>source/nodes/program-nodes-function_access_types.ads
-- SPDX-FileCopyrightText: 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Parameter_Specifications;
with P... |
7,721 | ada | 13 | annexi-strayline/AURA | registrar-implementation_hashing-collection_orders.adb | ------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- Reference Implementation --
-- ... |
7,722 | ada | 1 | ForYouEyesOnly/Space-Convoy | Sources/Globe_3d/unzip/unzip-decompress.ads | -- UnZip.Decompress
-------------------
-- Private, internal to the UnZip package.
--
-- Created 9 - Mar - 2007
--
-- This package includes the decompression algorithms for methods
-- store, reduce, shrink (LZW), implode and inflate.
-- It contains the packages UnZ_IO, UnZ_Glob, UnZ_Infl, UnZ_Olds, UnZ_Misc
--... |
7,723 | ada | 1 | mullikine/RosettaCodeData | Task/Address-of-a-variable/Ada/address-of-a-variable-3.ada | <gh_stars>1-10
I : Integer;
J : Integer;
for I'Address use J'Address;
|
7,724 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/gnatchop.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,725 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_54.adb | <reponame>Tim-Tom/project-euler<gh_stars>0
with Ada.Text_IO;
package body Problem_54 is
package IO renames Ada.Text_IO;
procedure Solve is
type Faces is (Low_Ace, Two, Three, Four, Five, Six, Seven, Eight, Nine, Ten, Jack, Queen, King, Ace, Out_of_Range);
pragma Unreferenced (Out_of_Range);
typ... |
7,726 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-can.ads | <reponame>TUM-EI-RCS/StratoX<filename>software/hal/hpl/STM32/svd/stm32f427x/stm32_svd-can.ads
-- This spec has been automatically generated from STM32F427x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
with HAL;
package STM32_SVD.CAN is
pragma Preelaborate;
---------------
-... |
7,727 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/a-stuten.adb | <reponame>best08618/asylo<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
7,728 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38005a.ada | -- C38005A.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... |
7,729 | ada | 0 | twdroeger/ada-awa | awa/src/awa-applications.ads | -----------------------------------------------------------------------
-- awa-applications -- Ada Web Application
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2014, 2016, 2017, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use thi... |
7,730 | ada | 4 | stcarrez/ada-lzma | src/lzma-filter.ads | <gh_stars>1-10
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Lzma.Vli;
with System;
with Lzma.Base;
with Ada.Streams;
package Lzma.Filter is
LZMA_FILTERS_MAX : constant := 4; -- /usr/include/lzma/filter.h:26
--*
-- * \file lzma/filter.h
-- * \brief Common filter relat... |
7,731 | ada | 0 | luk9400/nsi | list2/task3/src/main.adb | with Ada.Text_IO;
with Square_Root;
procedure Main is
begin
Ada.Text_IO.Put_Line (Square_Root.Sqrt(2.0, 0.00001)'Image);
end Main;
|
7,732 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | stm32f0/stm32f030x/svd/stm32_svd-interrupts.ads | -- This spec has been automatically generated from STM32F030.svd
-- Definition of the device's interrupts
package STM32_SVD.Interrupts is
----------------
-- Interrupts --
----------------
-- Window Watchdog interrupt
WWDG : constant := 0;
-- PVD and VDDIO2 supply com... |
7,733 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/opt63.adb | <gh_stars>1-10
-- { dg-do compile }
-- { dg-options "-O -gnatws" }
procedure Opt63 is
type T_MOD is mod 2**32;
subtype T_INDEX is T_MOD range 3_000_000_000 .. 4_000_000_000;
type T_ARRAY is array(T_INDEX range <>) of INTEGER;
function Build_Crash(First : T_INDEX; Length : NATURAL) return T_ARRAY is
... |
7,734 | ada | 0 | xeenta/learning-ada | src/005/oriented_test.adb | with Ada.Text_IO; use Ada.Text_IO;
with Oriented; use Oriented;
--with Ada.Unchecked_Deallocation;
procedure Oriented_Test is
Void_Obj : Object;
Obj2 : Object;
Obj_A : Object_Access;
Obj_A2 : Object_Access;
X : aliased Integer;
X_Ref : access Integer;
X1_Ref : access Integ... |
7,735 | ada | 20 | charlie5/lace | 3-mid/impact/source/2d/orbs/collision/impact-d2-orbs-dynamic_tree.adb | <filename>3-mid/impact/source/2d/orbs/collision/impact-d2-orbs-dynamic_tree.adb
with ada.Unchecked_Deallocation,
interfaces.c.Pointers;
-- for debug
package body impact.d2.orbs.dynamic_Tree
is
use type int32;
procedure free is new ada.Unchecked_Deallocation (b2DynamicTreeNodes, b2DynamicTreeNodes_view)... |
7,736 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/arm/smartfusion2/svd/i-sf2-gpio.ads | --
-- Copyright (C) 2017, AdaCore
--
-- This spec has been automatically generated from M2Sxxx.svd
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
-- General-purpose IO peripheral
package Interfaces.SF2.GPIO is
pragma Preelaborate;
pragma No_Elaboration_Code_All;
---------------
-- Register... |
7,737 | ada | 0 | Letractively/ada-util | src/util-properties-factories.adb | <gh_stars>0
-----------------------------------------------------------------------
-- factories -- Factory for property manager implementation
-- Copyright (C) 2001, 2002, 2003, 2006, 2008, 2009, 2010, 2014 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
7,738 | ada | 1 | charlie5/lace-alire | 3-mid/opengl/source/lean/model/opengl-model-grid.ads | <reponame>charlie5/lace-alire
with
openGL.Geometry.colored;
package openGL.Model.grid
--
-- Models a grid.
--
-- TODO: Rename to 'line_Grid'.
is
type Item is new Model.item with private;
type View is access all Item'Class;
---------
--- Forge
--
function new_grid_Model (Color : openGL.Col... |
7,739 | ada | 0 | optikos/oasis | source/nodes/program-nodes-record_aggregates.ads | -- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Record_Component_Associations;
with Program.Elements.Record_Aggregates;
with Program.Element_Visit... |
7,740 | ada | 12 | TUM-EI-RCS/StratoX | software/driver/fs/fat_filesystem-directories-files.adb | <gh_stars>10-100
-- Project: StratoX
-- Department: Real-Time Computer Systems (RCS)
-- Project: StratoX
-- Authors: <NAME> (<EMAIL>)
--
-- XXX! Nothing here is proven thread-safe!
with Ada.Unchecked_Conversion;
with FAT_Filesystem; use FAT_Filesystem;
-- @summary File handling for FAT FS
package body F... |
7,741 | ada | 0 | Fabien-Chouteau/spdx_ada | src/spdx-exceptions.ads | package SPDX.Exceptions is
pragma Style_Checks (Off); -- Genrated code
Version : constant String :="3.10-14-g0fb8a59";
type Id is (
GCC_exception_2_0,
openvpn_openssl_exception,
GPL_3_0_linking_exception,
Fawkes_Runtime_exception,
u... |
7,742 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker.ads | with AAA.Strings;
with Ada.Strings.Unbounded;
with Ada.Containers.Vectors;
package FSmaker is
function Valid_Path_Char (C : Character) return Boolean
is (C in '/' | 'a' .. 'z' | 'A' .. 'Z' | '0' .. '9' |
' ' | '-' | '_' | '.');
function Valid_Target_Path (Str : String) return Boolean
is (Str... |
7,743 | ada | 24 | svn2github/matreshka | source/amf/mof/cmof/amf-internals-cmof_associations.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
7,744 | ada | 26 | damaki/libkeccak | src/common/keccak-generic_parallel_hash.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... |
7,745 | ada | 13 | annexi-strayline/AURA | ada_lexical_parser-next_element.adb | <filename>ada_lexical_parser-next_element.adb
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Re... |
7,746 | ada | 0 | Vovanium/Encodings | examples/add_cr/add_cr.adb | <reponame>Vovanium/Encodings
-- An example of using low-level convertor API (fixed string procedures)
-- Program reads standard input, adds cr before lf, then writes to standard output
with Ada.Streams;
use Ada.Streams;
use type Ada.Streams.Stream_Element_Offset;
with Ada.Text_IO;
use Ada.Text_IO;
with Ada.Text_IO.Te... |
7,747 | ada | 0 | Letractively/ada-security | src/security-policies-urls.adb | <filename>src/security-policies-urls.adb
-----------------------------------------------------------------------
-- security-policies-urls -- URL security policy
-- Copyright (C) 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may ... |
7,748 | ada | 1 | ekoeppen/STM32_Generic_Ada_Drivers | examples/stm32f0/rfm69_moter/sensor/main.adb | with System;
with Ada.Synchronous_Task_Control; use Ada.Synchronous_Task_Control;
with STM32_SVD; use STM32_SVD;
with STM32GD.Board; use STM32GD.Board;
with Packet; use Packet;
with CBOR_Codec;
with RTC_IRQ;
with RTC;
with Peripherals;
with Utils;
procedure Mai... |
7,749 | ada | 0 | csb6/libtcod-ada | src/generated/namegen_h.ads | <reponame>csb6/libtcod-ada
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Strings;
with mersenne_types_h;
with Interfaces.C.Extensions;
with list_h;
package namegen_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributor... |
7,750 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-rbtgbo.adb | <reponame>orb-zhuchen/Orb<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- ... |
7,751 | ada | 33 | ytomino/drake | source/numerics/a-nlcoty.ads | <filename>source/numerics/a-nlcoty.ads
pragma License (Unrestricted);
with Ada.Numerics.Generic_Complex_Types;
package Ada.Numerics.Long_Complex_Types is
new Generic_Complex_Types (Long_Float);
pragma Pure (Ada.Numerics.Long_Complex_Types);
|
7,752 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-mainloop.ads | <reponame>mstewartgallus/linted
-- Copyright 2016 <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 appl... |
7,753 | ada | 0 | databuzzword/ai-api-marketplace | sdk/clients/ada/src/model/-models.adb | <filename>sdk/clients/ada/src/model/-models.adb
-- 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-ge... |
7,754 | ada | 0 | mstewartgallus/linted | src/ada-pulse/src/pulse-introspect.ads | -- Copyright 2016 <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 to in writi... |
7,755 | ada | 25 | thierr26/ada-keystore | tools/akt-commands-password-add.adb | -----------------------------------------------------------------------
-- akt-commands-password-add -- Add a wallet password
-- Copyright (C) 2019 <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 ... |
7,756 | ada | 3 | Fabien-Chouteau/ada-lvlg | src/lv-objx-checkbox.ads | with Lv.Style;
package Lv.Objx.Checkbox is
subtype Instance is Obj_T;
type Style_T is (Style_Bg,
Style_Rel,
Style_Pr,
Style_Tgl_Rel,
Style_Tgl_Pr,
Style_Ina);
-- Create a check box objects
-- @param par... |
7,757 | ada | 1 | OneWingedShark/Risi | src/epl-bracket.adb | <reponame>OneWingedShark/Risi
Function EPL.Bracket( Data : String; Style : Bracket ) return String is
Use Ada.Strings;
Brackets : constant Array( EPL.Types.Bracket , Ada.Strings.Alignment ) of Character :=
( others => (Others => ':') );
--LB
Begin
Return Data; --LB & Data $ RB;
End EPL.Bracket;
|
7,758 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/interface4.adb | -- { dg-do compile }
procedure interface4 is
generic
type I1 is interface;
type I2 is limited interface;
type I3 is interface and I1;
type I4 is limited interface and I2;
package Pack_I is
end Pack_I;
begin
null;
end interface4;
|
7,759 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/test_msg_decode.adb | with ZMQ.Sockets;
with ZMQ.Contexts;
with ZMQ.Messages;
with Ada.Text_IO; use Ada.Text_IO;
with AVTAS.LMCP.Types; use AVTAS.LMCP.Types;
with AVTAS.LMCP.ByteBuffers; use AVTAS.LMCP.ByteBuffers;
with Avtas.Lmcp.Factory;
procedure Test_Msg_Decode is
Ctx : ZMQ.Contexts.Context;
Sub : ZMQ.Sockets.So... |
7,760 | ada | 5 | jhumphry/auto_counters | examples/kvflyweight_example.adb | <filename>examples/kvflyweight_example.adb
-- kvflyweight_example.adb
-- An example of using the KVFlyweight package
-- 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 notice... |
7,761 | ada | 0 | matzke1/rose | src/frontend/Experimental_Ada_ROSE_Connection/parser/asis_adapter/source/asis_adapter-element-declarations.adb | with Asis.Declarations;
with Asis.Elements;
with Asis.Expressions;
with Asis.Set_Get;
package body Asis_Adapter.Element.Declarations is
procedure Do_Pre_Child_Processing
(Element : in Asis.Element;
State : in out Class)
is
Parent_Name : constant String := Module_Name;
Module_Name : consta... |
7,762 | ada | 1 | Aelisya/AdGuard-Home-Filters | AdGuard-Home/Hardallows.adb | <gh_stars>1-10
! Title: Macqael Hardallow
! Description: Filter composed of several Allowed domain unlocked with Adblock Plus Syntax for DNS.
! Version: 4.5
! Homepage: https://github.com/macqael/AdGuard-Home-Filters
! License: https://github.com/macqael/AdGuard-Home-Filters/blob/main/LICENSE
! Last modified: 2021-05-2... |
7,763 | ada | 12 | jquorning/ada-asf | src/asf-views.ads | -----------------------------------------------------------------------
-- asf-views -- Views
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.... |
7,764 | ada | 2 | charlie5/cBound | tier-1/clib/source/thin/clib-lconv.ads | <reponame>charlie5/cBound
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C.Strings;
with Interfaces.C;
with Interfaces.C.Pointers;
with Interfaces.C.Strings;
with System;
package clib.lconv is
-- Item
--
type Item is record
decimal_point : aliased Interfa... |
7,765 | ada | 1 | Fabien-Chouteau/samd51-hal | src/drivers/samd51_clock_setup/sam-clock_setup_120mhz.adb | ------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, AdaCore --
-- --
-- ... |
7,766 | ada | 0 | thierr26/ada-apsepp | src/_test/scenarios/apsepp_shared_instance_test_case.ads | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
with Apsepp.Test_Node_Class.Generic_Assert; use Apsepp.Test_Node_Class;
with Apsepp.Abstract_Test_Case; use Apsepp.Abstract_Test_Case;
package Apsepp_Shared_Instance_Test_Case is
type Apsepp_Shared_Instance_T_C
... |
7,767 | ada | 0 | thierr26/ada-apsepp | src/apsepp-output_class.ads | -- Copyright (C) 2019 <NAME> <<EMAIL>>
-- MIT license. Please refer to the LICENSE file.
package Apsepp.Output_Class is
pragma Pure (Output_Class);
type Output_Interfa is limited interface;
not overriding
procedure Put_Line (Obj : in out Output_Interfa; S : String) is null;
end Apsepp.Output_Class;
|
7,768 | ada | 1 | Vovanium/stm32-ada | source/stm32-f4-syscfg.ads | package STM32.F4.SysCfg is
pragma Pure;
type Memory_Mapping is (
Main_Flash,
System_Flash,
FSMC_Bank_1,
Embedded_SRAM
);
for Memory_Mapping use (
Main_Flash => 2#00#,
System_Flash => 2#01#,
FSMC_Bank_1 => 2#10#,
Embedded_SRAM => 2#11#
);
type Memory_Remap_Register is record
MEM_MODE: Memory_M... |
7,769 | ada | 24 | svn2github/matreshka | source/web/tools/a2js/webapi/html/webapi-html-option_elements.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,770 | ada | 0 | passlab/rexompiler | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/dot_asis_tests/test_units/goto_loop.adb | with Ada.Text_IO;
procedure Goto_Loop is
begin
<<Start>>
Ada.Text_IO.Put_Line ("Goto Loop!");
goto Start;
end Goto_Loop;
|
7,771 | ada | 0 | faelys/natools | tests/natools-s_expressions-cache_tests.adb | <gh_stars>0
------------------------------------------------------------------------------
-- Copyright (c) 2014, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --... |
7,772 | ada | 0 | Roldak/OpenGLAda | src/glfw/v3/glfw-windows-hints.ads | <filename>src/glfw/v3/glfw-windows-hints.ads
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with Glfw.Windows.Context;
package Glfw.Windows.Hints is
procedure Reset_To_Defaults;
--------------------------------------------------------------------... |
7,773 | ada | 4 | albinjal/Ada_Project | Server/server.adb | <reponame>albinjal/Ada_Project<gh_stars>1-10
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Exceptions; use Ada.Exceptions;
with Ada.Text_IO; use Ada.Text_IO;
with TJa.Sockets; use TJa.Sockets;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Server_Assets_Package; use Server_Asset... |
7,774 | ada | 0 | djamal2727/Main-Bearing-Analytical-Model | Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-parame__vxworks.adb | <filename>Validation/pyFrame3DD-master/gcc-master/gcc/ada/libgnat/s-parame__vxworks.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS ... |
7,775 | ada | 0 | bkold/Terminal-Chess | Source/pieces.ads | <filename>Source/pieces.ads
package Pieces is
pragma Pure;
type Owner_Type is (Player_1, Player_2, None) with Size=>2;
type Moved_Signal is (No, Yes) with Size=>2;
type Piece_Name is (Pawn, Knight, Bishop, Rook, Queen, King, Empty) with Size=>4;
type Piece_Type is record
Name : Piece_Name;
Owner : Owner_Type... |
7,776 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-uml-transitions.ads | <filename>source/amf/uml/amf-uml-transitions.ads
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
7,777 | ada | 2 | AdaCore/style_checker | testsuite/tests/NA17-007__Ada_units/gprep_check-ko.adb | procedure All_Source_Text is
beGin
Some_Code;
-- Both branches of the #if have a style violation (extra space before
-- semicolon) that must be reported.
#if Some_Condition then
Do_Something ;
#else
Do_Something_else ;
#end if;
Some_More_Code;
end All_Source_Text;
|
7,778 | ada | 1 | egilhh/Futures-in-Ada | src/executor_service.ads |
package Executor_Service is
type Object is tagged limited private;
type Callable is limited interface;
type Callable_Ptr is access all Callable'Class;
procedure Call(Self : in out Callable) is abstract;
procedure Execute(Self : in out Object; Callback : Callable_Ptr);
private
task type Thread is... |
7,779 | ada | 2 | mgrojo/bingada | src/q_bingo-q_gtk-q_intl.adb | --*****************************************************************************
--*
--* PROJECT: Bingada
--*
--* FILE: q_bingo-q_gtk-q_intl.adb
--*
--* AUTHOR: <NAME>
--*
--*****************************************************************************
with GTKADA.INTL;
with TEXT_IO... |
7,780 | ada | 1 | vidkidz/crossbridge | llvm-gcc-4.2-2.9/gcc/ada/opt.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7,781 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/5zintman.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
7,782 | ada | 0 | AntonMeep/fastpbkdf2_ada | src/fastpbkdf2_h_generic.ads | pragma Ada_2012;
with System.Parameters;
generic
type U8 is mod <>;
type U32 is mod <>;
type SZT is mod <>;
package fastpbkdf2_h_generic with
Pure,
Preelaborate
is
pragma Compile_Time_Error
(U8'Modulus /= 2**8, "'U8' type must be mod 2**8");
pragma Compile_Time_Error
(U32'Modulus /= 2**... |
7,783 | ada | 1 | micahwelf/FLTK-Ada | src/fltk-widgets-groups-text_displays-text_editors.ads | <filename>src/fltk-widgets-groups-text_displays-text_editors.ads
private with
Interfaces.C,
Ada.Containers.Vectors;
package FLTK.Widgets.Groups.Text_Displays.Text_Editors is
type Text_Editor is new Text_Display with private;
type Text_Editor_Reference (Data : not null access Text_Editor'Class) i... |
7,784 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/tp1/comprendre_get_skip_line.adb | with Ada.Text_IO; use Ada.Text_IO;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
-- Objectif : Comprendre le comportement de Get et Skip_Line.
-- Saisir une longueur (valeur et unité) et l'afficher.
procedure Comprendre_Get_Skip_Line is
Valeur: Integer; -- la valeur du longeur
Unite: Character; -- l'... |
7,785 | ada | 0 | PyllrNL/Project_Euler_Solutions | Ada/problem_13/problem_13.adb | <filename>Ada/problem_13/problem_13.adb
package body problem_13 is
function Solution_1( arr : Digit_50_Array ) return Int128 is
Higher, Lower: Int128 := 0;
Str_Len : constant Integer := arr(0)'Length;
begin
for I in arr'range loop
Lower := Lower + Int128'Value(arr(I)(Str_Len... |
7,786 | ada | 1 | alvaromb/Compilemon | lib/aflexnat/dfa.ads | <gh_stars>1-10
-- Copyright (c) 1990 Regents of the University of California.
-- All rights reserved.
--
-- This software was developed by <NAME> of the Arcadia project
-- at the University of California, Irvine.
--
-- Redistribution and use in source and binary forms are permitted
-- provided that the above copyright ... |
7,787 | ada | 0 | Letractively/ada-asf | src/asf-components-core-views.ads | <filename>src/asf-components-core-views.ads
-----------------------------------------------------------------------
-- components-core-views -- ASF View Components
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
7,788 | ada | 80 | enfoTek/tomato.linksys.e2000.nvram-mod | tools-src/gnu/gcc/gcc/ada/s-direio.adb | <reponame>enfoTek/tomato.linksys.e2000.nvram-mod
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- ... |
7,789 | ada | 60 | RREE/ada-util | src/sys/measures/util-measures.ads | <filename>src/sys/measures/util-measures.ads
-----------------------------------------------------------------------
-- measure -- Benchmark tools
-- Copyright (C) 2008, 2009, 2010, 2011, 2012, 2013, 2018 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
7,790 | ada | 19 | jquorning/ada-security | src/security-permissions.ads | -----------------------------------------------------------------------
-- security-permissions -- Definition of permissions
-- Copyright (C) 2010, 2011, 2012, 2016, 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
7,791 | ada | 12 | TUM-EI-RCS/StratoX | software/hal/boards/components/HMC5883L/hmc5883l.ads | -- Project: MART - Modular Airborne Real-Time Testbed
-- System: Emergency Recovery System
-- Authors: <NAME> (Original C-Code)
-- <NAME> (<EMAIL>) (Ada Port)
--
-- Module Description:
-- @summary Top-level driver for the Barometer HMC5883L-01BA03
package HMC5883L with SPARK_Mode is
end HMC5883L;
|
7,792 | ada | 1 | skill-lang/skillAdaTestSuite | test/annotation/test_annotation-read.ads | <gh_stars>1-10
with Ahven.Framework;
with Annotation.Api;
package Test_Annotation.Read is
package Skill renames Annotation.Api;
use Annotation;
use Annotation.Api;
type Test is new Ahven.Framework.Test_Case with null record;
procedure Initialize (T : in out Test);
procedure Check_Annotation;
p... |
7,793 | ada | 0 | Lucretia/old_nehe_ada95 | utils/line_segment.ads | ---------------------------------------------------------------------------------
-- 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.
-------------------------------------------------------------------... |
7,794 | ada | 0 | hgrodriguez/itsybitsy_rp2040_bsp | src/itsybitsy.ads | <reponame>hgrodriguez/itsybitsy_rp2040_bsp
--===========================================================================
--
-- This package represents the definitions for
-- all ports
-- all standard definitions
-- for the ItstyBitsy board
--
--=================================================================... |
7,795 | ada | 0 | optikos/oasis | source/nodes/program-nodes-private_extension_definitions.ads | <filename>source/nodes/program-nodes-private_extension_definitions.ads
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Lexical_Elements;
with Program.Elements.Subtype_Indications;
with P... |
7,796 | ada | 15 | AdaCore/training_material | extern/gnat_sdl/gnat_sdl2/src/sdl_endian_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with SDL_stdinc_h;
package SDL_endian_h is
SDL_LIL_ENDIAN : constant := 1234; -- ..\SDL2_tmp\SDL_endian.h:37
SDL_BIG_ENDIAN : constant := 4321; -- ..\SDL2_tmp\SDL_endian.h:38
-- unsupported macro: SDL_BYTEORDER SDL_LIL_END... |
7,797 | ada | 89 | treggit/sdlada | test/create_window.adb | with Ada.Strings.Unbounded;
with SDL;
with SDL.Timers;
with SDL.Video.Pixel_Formats;
with SDL.Video.Surfaces;
with SDL.Video.Windows;
with SDL.Video.Windows.Makers;
procedure Create_Window is
package US renames Ada.Strings.Unbounded;
function "+" (S : String) return US.Unbounded_String
renames US.To_Unbo... |
7,798 | ada | 3 | ekzemplaro/data_base_language | xml/ada/create/xml_create.adb | <filename>xml/ada/create/xml_create.adb
-- ----------------------------------------------------------------
-- xml_create.adb
--
-- Jan/05/2015
--
-- ----------------------------------------------------------------
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Te... |
7,799 | ada | 2 | morbos/Ada_Drivers_Library | arch/ARM/STM32/svd/stm32l151/stm32_svd-comp.ads | -- This spec has been automatically generated from STM32L151.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.COMP is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CSR_INSEL_Field is HA... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.