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 |
|---|---|---|---|---|---|
3,800 | ada | 8 | flyx/OpenCLAda | src/interface/cl_gl/cl-memory-images-cl_gl.ads | <filename>src/interface/cl_gl/cl-memory-images-cl_gl.ads
--------------------------------------------------------------------------------
-- Copyright (c) 2013, <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that... |
3,801 | ada | 19 | jrcarter/Ada_GUI | tables-names.adb | -- --
-- package Tables.Names Copyright (c) <NAME> --
-- Implementation Luebeck --
-- Spring, 2003 --
-- ... |
3,802 | ada | 4 | MOUDDENEHamza/ENSEEIHT | 1A/S5/PIM/tps/pr2/ensembles_tableau.ads | <filename>1A/S5/PIM/tps/pr2/ensembles_tableau.ads<gh_stars>1-10
-- Spécification du module Ensembles.
generic
Capacite : Integer; -- Nombre maximal d'éléments qu'un ensemble peut contenir.
type T_Element is private; -- Type des éléments de l'ensemble.
package Ensembles_Tableau is
type T_Ensemble is limi... |
3,803 | ada | 79 | Roldak/OpenGLAda | src/gl/implementation/gl-framebuffer.adb | <reponame>Roldak/OpenGLAda<filename>src/gl/implementation/gl-framebuffer.adb
-- part of OpenGLAda, (c) 2017 <NAME>
-- released under the terms of the MIT license, see the file "COPYING"
with GL.API;
with GL.Enums.Getter;
package body GL.Framebuffer is
procedure Set_Clamp_Read_Color (Enabled : Boolean) is
beg... |
3,804 | ada | 1 | sparre/JSA | src/jsa-debugging.ads | <filename>src/jsa-debugging.ads
------------------------------------------------------------------------------
--
-- package Debugging (spec)
--
-- This package is used to log debugging messages.
-- If the program is executed with command line arguments, then the last
-- argument is used as the name Current_Error i... |
3,805 | ada | 4 | assessorgeneral/ConQAT | org.conqat.engine.sourcecode/test-data/org.conqat.engine.sourcecode.shallowparser/ada/widechar.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,806 | ada | 1 | Jellix/open_weather_map_api | src/open_weather_map-client.ads | <reponame>Jellix/open_weather_map_api
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (<EMAIL>)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
... |
3,807 | ada | 0 | ana/pok | libpok/ada/arinc653/apex-module_schedules.ads | <reponame>ana/pok
-- POK header
--
-- The following file is a part of the POK project. Any modification should
-- be made according to the POK licence. You CANNOT use this file or a part
-- of a file for your own project.
--
-- For more information on the POK licence, please see our LICENC... |
3,808 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-titlebar.adb | <filename>ada/original_2008/ada-gui/agar-gui-widget-titlebar.adb
package body agar.gui.widget.titlebar is
package cbinds is
end cbinds;
end agar.gui.widget.titlebar;
|
3,809 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Inverted-index/Ada/inverted-index-5.ada | <gh_stars>1-10
with Gnat.Regpat;
package body Parse_Lines is
procedure Search_For_Pattern(Pattern: Gnat.Regpat.Pattern_Matcher;
Search_In: String;
First, Last: out Positive;
Found: out Boolean) is
use Gnat.Regpat;... |
3,810 | ada | 0 | persan/dds-requestreply | src/dds-request_reply-replier-typed_replier_generic-passive_replier_generic.ads | generic
type Base is abstract tagged limited private;
package DDS.Request_Reply.Replier.Typed_Replier_Generic.Passive_Replier_Generic is
package Listners is
type Ref is limited interface;
type Ref_Access is access all Ref'Class;
procedure Compute_And_Reply
(Self : not null access R... |
3,811 | ada | 0 | thieryw/snake_array_impl | snake_functions.adb | with snake_types,ada.text_io,ada.integer_text_io,ada.float_text_io,display,nt_console, ada.calendar,ada.numerics.discrete_random ;
use ada.text_io,snake_types ;
package body snake_functions is
function get_user_controls_default return snake_types.User_Controls.Map is
user_controls_default: sn... |
3,812 | ada | 0 | Fabien-Chouteau/fsmaker | src/fsmaker-commands-init.ads | <reponame>Fabien-Chouteau/fsmaker
with CLIC.Subcommand;
with AAA.Strings;
package FSmaker.Commands.Init is
subtype Parent is FSmaker.Commands.Command;
type Instance
is new Parent
with private;
overriding
function Name (This : Instance) return CLIC.Subcommand.Identifier
is ("init");
overridin... |
3,813 | ada | 4 | ytomino/gmp-ada | examples/versions.adb | <reponame>ytomino/gmp-ada<gh_stars>1-10
with Ada.Text_IO;
with GMP;
with MPFR;
with MPC;
procedure versions is
begin
Ada.Text_IO.Put_Line ("GMP: " & GMP.Version);
Ada.Text_IO.Put_Line ("MPFR: " & MPFR.Version);
Ada.Text_IO.Put_Line ("MPC: " & MPC.Version);
end versions;
|
3,814 | ada | 19 | jrcarter/Ada_GUI | gnat-sockets-connection_state_machine-expected_sequence.ads | <gh_stars>10-100
-- --
-- package Copyright (c) <NAME> --
-- GNAT.Sockets.Connection_State_Machine. Luebeck --
-- Expected_Sequence Winter, 2013 --
-- Interface ... |
3,815 | ada | 0 | Letractively/ada-util | samples/wget.adb | <reponame>Letractively/ada-util
-----------------------------------------------------------------------
-- wget -- A simple wget command to fetch a page
-- Copyright (C) 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this fi... |
3,816 | ada | 1 | faelys/natools-web | src/natools-web-reload_pages.ads | <gh_stars>1-10
------------------------------------------------------------------------------
-- Copyright (c) 2015-2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any ... |
3,817 | ada | 12 | TUM-EI-RCS/StratoX | software/kernel/crash.ads | with System;
-- @summary Catches all exceptions, logs them to NVRAM and reboots.
package Crash with SPARK_Mode => Off is
pragma Elaborate_Body;
-- XXX! SPARK must be off here, otherwise this function is not being implemented.
-- default exception handler (all exceptions will be catched here)
procedure La... |
3,818 | ada | 0 | Fabien-Chouteau/libriscv | src/libriscv-instructions.ads | <filename>src/libriscv-instructions.ads
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2019, <NAME> --
-- ... |
3,819 | ada | 0 | DrenfongWong/tkm-rpc | specs/ada/server/ike/tkmrpc-operation_handlers-ike.ads | <reponame>DrenfongWong/tkm-rpc
package Tkmrpc.Operation_Handlers.Ike is
end Tkmrpc.Operation_Handlers.Ike;
|
3,820 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/ce/ce3810b.ada | -- CE3810B.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... |
3,821 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/examples/stm32f4-discovery/leds-po/main.adb | <reponame>JCGobbi/Nucleo-STM32G474RE
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- ... |
3,822 | ada | 0 | faelys/natools | src/natools-smaz.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2016, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,823 | ada | 1 | alvaromb/Compilemon | src/decls-d_taula_de_noms.ads | -- DECLS-D_TAULA_DE_NOMS.ads
-- Declaracions de la taula de noms
with Decls.Dgenerals,
Ada.Text_Io;
use Decls.Dgenerals,
Ada.Text_Io;
package Decls.D_Taula_De_Noms is
--pragma pure;
--Excepcions
E_Tids_Plena : exception;
E_Tcar_Plena : exception;
type Taula_De_Noms is l... |
3,824 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/symbols.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,825 | ada | 4 | ytomino/gmp-ada | source/mpfr-generic_fr.adb | <reponame>ytomino/gmp-ada
package body MPFR.Generic_FR is
function To_MP_Float (X : Long_Long_Float) return MP_Float is
begin
return To_MP_Float (X, Precision, Rounding);
end To_MP_Float;
function To_Long_Long_Float (X : MP_Float) return Long_Long_Float is
begin
return To_Long_Long_Float (X, Rounding);
en... |
3,826 | ada | 15 | mgrojo/adalib | ada-strings-utf_encoding-strings.ads | <filename>ada-strings-utf_encoding-strings.ads
-- Standard Ada library specification
-- Copyright (c) 2004-2016 AXE Consultants
-- Copyright (c) 2004, 2005, 2006 Ada-Europe
-- Copyright (c) 2000 The MITRE Corporation, Inc.
-- Copyright (c) 1992, 1993, 1994, 1995 Intermetrics, Inc.
-- SPDX-Licens... |
3,827 | ada | 3 | charlie5/aIDE | applet/aide/source/palettes/attic/aide-palette-of_types_package.ads | with
aIDE.Palette.of_types,
gtk.Widget;
private
with
gtk.Frame,
gtk.Scrolled_Window;
with Gtk.Box;
with Gtk.Button;
with Gtk.Notebook;
package aIDE.Palette.of_types_package
is
type Item is new Palette.item with private;
type View is access all Item'Class;
function to_types_Palette_p... |
3,828 | ada | 286 | auzkok/libagar | ada/original_2008/ada-gui/agar-gui-widget-notebook.ads | with agar.core.tail_queue;
with agar.gui.text;
with agar.gui.widget.box;
package agar.gui.widget.notebook is
use type c.unsigned;
type tab_t;
type tab_access_t is access all tab_t;
pragma convention (c, tab_access_t);
package tab_tail_queue is new agar.core.tail_queue
(entry_type => tab_access_t);
... |
3,829 | ada | 1 | faelys/lithium3 | src/lithium-photo_posts.ads | ------------------------------------------------------------------------------
-- Copyright (c) 2019, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,830 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-vec4.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... |
3,831 | ada | 4 | jquorning/Gauss | source/command_line.adb | --
-- 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.
--
with GNAT.Command_Line;
with Options;
pa... |
3,832 | ada | 7 | stcarrez/resource-embedder | regtests/files/test-ada-3/src/resource.ads | <gh_stars>1-10
with Ada.Streams;
package Resource is
type Content_Access is access constant Ada.Streams.Stream_Element_Array;
end Resource;
|
3,833 | ada | 0 | reznikmm/webidl | source/context/webidl-run.adb | -- SPDX-FileCopyrightText: 2021 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Ada.Wide_Wide_Text_IO;
with League.String_Vectors;
with League.Strings;
with WebIDL.Lexers;
with WebIDL.Parsers;
with WebIDL.Simple_Factories;
procedure WebIDL.Run... |
3,834 | ada | 24 | svn2github/matreshka | tools/aflex/src/parser.ads | <reponame>svn2github/matreshka
package Parser is
procedure build_eof_action;
procedure yyerror(msg: string);
procedure YYParse;
def_rule:integer;
end Parser;
|
3,835 | ada | 4 | faelys/gela-asis | source/asis/spec/annex_e/system-rpc.ads | <reponame>faelys/gela-asis
------------------------------------------------------------------------------
-- A d a r u n - t i m e s p e c i f i c a t i o n --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org ... |
3,836 | ada | 2 | thindil/tashy2 | tests/tcl-commands-test_data-tests.ads | <gh_stars>1-10
-- 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 Tcl.Commands.Test_Data.Tests is
type Test is new GNATtest_Generated.GNATtest_Standard.Tcl.Commands.Test_Da... |
3,837 | ada | 0 | sebsgit/textproc | src/mathutils.ads | <reponame>sebsgit/textproc
with Ada.Numerics.Float_Random;
with Ada.Containers.Vectors; use Ada.Containers;
with Ada.Numerics.Generic_Elementary_Functions;
package MathUtils is
pragma Elaborate_Body(MathUtils);
pragma Assertion_Policy (Pre => Check,
Post => Check,
... |
3,838 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-workspaces/regtests/awa-workspaces-tests.adb | <reponame>fuzzysloth/ada-awa
-----------------------------------------------------------------------
-- awa-workspaces-tests -- Unit tests for workspaces and invitations
-- Copyright (C) 2017 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not ... |
3,839 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c8/c86004b2.ada | -- C86004B2M.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.
-- Unlim... |
3,840 | ada | 81 | My-Colaborations/ada-awa | awa/plugins/awa-images/regtests/awa-images-tests.ads | -----------------------------------------------------------------------
-- awa-images-tests -- Unit tests for images module
-- Copyright (C) 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 Li... |
3,841 | ada | 0 | KHYehor/Parallel-Programming | Lab1/src/data.adb | -----------Package Data, body-----------
with Text_IO, Ada.Integer_Text_IO;
use Text_IO, Ada.Integer_Text_IO;
with Data;
package body Data is
--Multiplication of matrices
function Matrix_Multiplication(A, B: in Matrix) return Matrix is
P: Matrix;
S: Integer;
begin
for k in 1..n loop
... |
3,842 | ada | 0 | hannesb0/rtpl18 | src/lab-code/ravenspark_racecond/account.adb | <reponame>hannesb0/rtpl18
package body Account with SPARK_Mode
is
task body Account_Management is
begin
loop
--Get_Next_Account_Created;
Num_Accounts := Num_Accounts + 1;
end loop;
end Account_Management;
end Account;
|
3,843 | ada | 24 | svn2github/matreshka | source/amf/uml/amf-internals-uml_value_specifications.ads | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,844 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/loop_exit.adb | function Compute(x, y: IN Integer) return Integer is
Result : Integer;
I : Integer;
J : Integer;
begin
Result := 0;
I := X;
Outer:
loop
J := Y;
while J > X loop
Result := Result + 1;
exit Outer when I mod J = 2;
J := J-1;
end loop;
I := I+1;
en... |
3,845 | ada | 8 | reznikmm/jwt | source/jws-to_base_64_url.adb | <reponame>reznikmm/jwt<filename>source/jws-to_base_64_url.adb
-- Copyright (c) 2020 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Base_Codecs;
function JWS.To_Base_64_URL
(Data : League.Stream_Element_Vec... |
3,846 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-drawing.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
-... |
3,847 | ada | 0 | GLADORG/glad-cli | src/commands-create.adb | with Ada.Text_IO;
with Ada.Directories;
with Ada.Containers.Vectors;
with Init_Project;
with Blueprint; use Blueprint;
package body Commands.Create is
package IO renames Ada.Text_IO;
package TT renames CLIC.TTY;
package Dir renames Ada.Directories;
use Ada.Directories;
use Ada.Containers;
-------------
... |
3,848 | ada | 0 | Letractively/ada-awa | awa/src/awa-components-wikis.adb | <gh_stars>0
-----------------------------------------------------------------------
-- awa-components-wikis -- Wiki rendering component
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except i... |
3,849 | ada | 6 | jonashaggstrom/ada-canopen | examples/linux/src/main.adb | pragma Profile (Ravenscar);
with GNAT.Command_Line;
with App;
procedure Main
is
function Run_Remote_Node
return Boolean
is
begin
loop
case GNAT.Command_Line.Getopt ("r") is
when 'r' =>
return True;
when others =>
exit;
end ca... |
3,850 | ada | 1 | fabiojna02/OpenCellular | firmware/coreboot/3rdparty/libgfxinit/common/skylake/hw-gfx-gma-connectors-ddi-buffers.adb | <reponame>fabiojna02/OpenCellular<gh_stars>1-10
--
-- Copyright (C) 2017 secunet Security Networks AG
--
-- 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 2 of the License, or
--... |
3,851 | ada | 0 | fintatarta/eugen | src/Processors/LaTeX/project_processor-processors-latex.ads | <reponame>fintatarta/eugen<filename>src/Processors/LaTeX/project_processor-processors-latex.ads
with EU_Projects.Projects;
with Ada.Strings.Bounded;
with Latex_Writer; use Latex_Writer;
package Project_Processor.Processors.LaTeX is
type Processor_Type is
new Abstract_Processor
with
private;
overr... |
3,852 | ada | 2 | Jack840517/CompilerExplorer | examples/ada/Max_Array.adb | <reponame>Jack840517/CompilerExplorer<gh_stars>1-10
-- This pragma will remove the warning produced by the default
-- CE filename and the procedure name differing,
-- see : https://gcc.gnu.org/onlinedocs/gcc-8.2.0/gnat_rm/Pragma-Source_005fFile_005fName.html#Pragma-Source_005fFile_005fName
-- pragma Source_File_Name (... |
3,853 | ada | 19 | jquorning/ada-security | samples/auth_cb.ads | -----------------------------------------------------------------------
-- auth_cb -- Authentication callback examples
-- Copyright (C) 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... |
3,854 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-calcon.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,855 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/i-leon3-cache.ads | <gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
3,856 | ada | 15 | My-Colaborations/dynamo | src/gen-artifacts-distribs-libs.ads | -----------------------------------------------------------------------
-- gen-artifacts-distribs-libs -- Unix shared library extraction and distribution
-- Copyright (C) 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file ex... |
3,857 | ada | 0 | Fabien-Chouteau/ASFML | include/sf-audio-soundbuffer.adb | with Interfaces.C.Strings;
package body Sf.Audio.SoundBuffer is
use Interfaces.C.Strings;
--//////////////////////////////////////////////////////////
--/ Create a new sound buffer and load it from a file
--/
--/ @param Filename Path of the music file to open
--/
--/ @return A new sfSoundBuffer... |
3,858 | ada | 60 | RREE/ada-util | src/tests/ahven/ahven-framework.adb | <gh_stars>10-100
--
-- Copyright (c) 2007-2011 <NAME> <<EMAIL>>
--
-- Permission to use, copy, modify, and distribute this software for any
-- purpose with or without fee is hereby granted, provided that the above
-- copyright notice and this permission notice appear in all copies.
--
-- THE SOFTWARE IS PROVIDED "AS IS... |
3,859 | ada | 0 | antholuo/Blob_Traffic | Blob_Lib/assimp-5.2.3/assimp/contrib/zlib/contrib/ada/mtest.adb | version https://git-lfs.github.com/spec/v1
oid sha256:41b6f31684770334afdc4375871eb1408542f37a823a073556fdbfdb63753160
size 4467
|
3,860 | ada | 3 | vasil-sd/ada-tlsf | tlsf/src/proof/test/tlsf-proof-test.ads | <filename>tlsf/src/proof/test/tlsf-proof-test.ads
package TLSF.Proof.Test with SPARK_Mode, Ghost, Pure, Preelaborate is
end TLSF.Proof.Test;
|
3,861 | ada | 18 | jquorning/ada-wiki | src/wiki.ads | -----------------------------------------------------------------------
-- wiki -- Ada Wiki Engine
-- Copyright (C) 2015, 2016, 2020, 2021 <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.
... |
3,862 | ada | 0 | python36/0xfa | src/getters/getter-for_loop.ads | <gh_stars>0
with ada.containers.vectors;
with numbers; use numbers;
with strings; use strings;
with env; use env;
package getter.for_loop is
ERROR_NO_CLOSED : exception;
function get return character;
procedure create (start_i, end_i : word; var : environment_t.cursor);
private
end_for_statement : constant ... |
3,863 | ada | 1 | faelys/natools-web | src/natools-web-escapes-filters.ads | <reponame>faelys/natools-web
------------------------------------------------------------------------------
-- Copyright (c) 2015, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this softw... |
3,864 | ada | 0 | Latence-Technologies/Kafka-Ada | src/kafka-consumer.ads | --
-- Provides Kafka functionality to consume data
--
package Kafka.Consumer is
--
-- Redirect the main poll queue to the Kafka Consumer queue. It is not
-- permitted to call Kafka.Poll after directing the main queue with Poll_Set_Consumer
--
-- librdkafka equivalent: rd_kafka_poll_set_consumer
... |
3,865 | ada | 0 | mgrojo/protobuf | testsuite/import_name_clash/test_a.ads | <gh_stars>0
package Test_A is end;
|
3,866 | ada | 1 | io7m/coreland-opengl-ada | opengl-check.adb | with OpenGL.Error;
package body OpenGL.Check is
procedure State_OK
(Message : in String := "")
is
use type Error.Error_t;
Error_Value : constant Error.Error_t := Error.Get_Error;
begin
if Error_Value /= Error.No_Error then
if Message'Length /= 0 then
Raise_Exception (Message & ": ... |
3,867 | ada | 0 | Tim-Tom/project-euler | Ada/src/Problem_04.adb | with Ada.Text_IO;
package body Problem_04 is
package IO renames Ada.Text_IO;
procedure Solve is
begin
for Larger in reverse 100 .. 999 loop
for Smaller in reverse 100 .. Larger loop
declare
word : constant String := Positive'Image(Larger * Smaller);
lowe... |
3,868 | ada | 4 | jquorning/Gauss | source/program.adb | --
-- 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.
--
with GAWS_Log;
with Config_File;
with Web_... |
3,869 | ada | 1 | persan/A-gst | src/gen/gstreamer-gst_low_level-gstreamer_0_10_gst_gstelementfactory_h.ads | pragma Ada_2005;
pragma Style_Checks (Off);
pragma Warnings (Off);
with Interfaces.C; use Interfaces.C;
with glib;
with glib.Values;
with System;
with GStreamer.GST_Low_Level.gstreamer_0_10_gst_gstpluginfeature_h;
with glib;
-- limited with GStreamer.GST_Low_Level.glib_2_0_glib_glist_h;
with System;
limited with GStr... |
3,870 | ada | 8 | alexeymartyanov/benchmark | prime-number/ada/cmd.adb | <filename>prime-number/ada/cmd.adb
with Ada.Text_IO, Ada.Command_Line;
procedure cmd is
primeNumberCount : Integer := 100;
j, number: Integer;
begin
if Ada.Command_Line.Argument_Count = 1 then
primeNumberCount := Integer'Value(Ada.Command_Line.Argument(1));
end if;
number := 0;
while ... |
3,871 | ada | 0 | python36/0xfa | src/getters/getter.ads | <reponame>python36/0xfa
with ada.text_io;
with ada.containers.vectors;
package getter is
ERROR_NO_GETTERS : exception;
subtype pos_count is ada.text_io.positive_count;
-- type record_getter_type;
-- type getter_type is access function return character;
-- type record_getter_type is record
-- ptr : gett... |
3,872 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-textio__samv71.adb | <filename>bb-runtimes/src/s-textio__samv71.adb
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- ... |
3,873 | ada | 1 | charlesdaniels/libagar | ada/gui/agar-surface.adb | ------------------------------------------------------------------------------
-- AGAR GUI LIBRARY --
-- A G A R . S U R F A C E --
-- B o d y --
-- ... |
3,874 | ada | 30 | jscparker/math_packages | ordinary/predictor_2_demo_1.adb | <reponame>jscparker/math_packages
with Predictor_2;
with Text_IO; use Text_IO;
with Sinu_2;
with Ada.Numerics.Generic_Elementary_Functions;
procedure predictor_2_demo_1 is
type Real is digits 15;
package Sinusoid is new Sinu_2 (Real);
use Sinusoid;
package Sin_Integrate is new
Predictor_2 (Real,... |
3,875 | ada | 6 | jonashaggstrom/ada-canopen | examples/stm32f40x/src/aco-drivers-stm32f40x.adb | <gh_stars>1-10
with HAL;
with STM32.GPIO;
with STM32.Device;
with Ada.Interrupts.Names;
with Ada.Unchecked_Conversion;
package body ACO.Drivers.Stm32f40x is
function Convert (D : STM32.CAN.Message_Data)
return ACO.Messages.Data_Array
is
subtype From is STM32.CAN.Message_Data (D'Range)... |
3,876 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/src/s-bbbosu__8349e.adb | <reponame>JCGobbi/Nucleo-STM32G474RE<gh_stars>0
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- ... |
3,877 | ada | 52 | onox/orka | orka/src/gl/implementation/gl-blending.adb | <filename>orka/src/gl/implementation/gl-blending.adb
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2013 <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
... |
3,878 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Determine-if-only-one-instance-is-running/Ada/determine-if-only-one-instance-is-running.ada | <reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO;
procedure Single_Instance is
package IO renames Ada.Text_IO;
Lock_File: IO.File_Type;
Lock_File_Name: String := "single_instance.magic_lock";
begin
begin
IO.Open(File => Lock_File, Mode=> IO.In_File, Name => Lock_File_Name);
IO.Close(... |
3,879 | ada | 1 | LaudateCorpus1/RosettaCodeData | Task/Bitmap-Histogram/Ada/bitmap-histogram-2.ada | <filename>Task/Bitmap-Histogram/Ada/bitmap-histogram-2.ada
function Median (H : Histogram) return Luminance is
From : Luminance := Luminance'First;
To : Luminance := Luminance'Last;
Left : Pixel_Count := H (From);
Right : Pixel_Count := H (To);
begin
while From /= To loop
if Left < Right t... |
3,880 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/cc/cc3016c.ada | -- CC3016C.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... |
3,881 | ada | 24 | svn2github/matreshka | source/league/league-regexps.adb | ------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
3,882 | ada | 30 | jrmarino/AdaBase | src/miscellaneous/spatial_data-well_known_binary.ads | -- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
package Spatial_Data.Well_Known_Binary is
type WKB_Byte is mod 2 ** 8;
type WKB_Chain is array (Positive range <>) of WKB_Byte;
WKB_INVALID : exception;
function Translate_WKB (WKBinary : String)... |
3,883 | ada | 0 | VMika/Des_Ada | Des_Ada/src/p_stephandler.ads | <reponame>VMika/Des_Ada
with P_StructuralTypes;
use P_StructuralTypes;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package P_StepHandler is
type T_StepHandler is abstract tagged private;
type Ptr_Handler is access all T_StepHandler'Class;
procedure Handle (Self : in out T_StepHandl... |
3,884 | ada | 0 | arcadien/sogilis-katalog | jolly_jumper/Ada/src/check_jolly.adb | with Ada.Text_IO; use Ada.Text_IO;
procedure Check_Jolly is
Input_Length : Natural := 100;
Input_String : String (1 .. Input_Length);
begin
Get_Line (Input_String, Input_Length);
Put ("OK");
end Check_Jolly;
|
3,885 | ada | 0 | faelys/natools | tests/natools-chunked_strings-tests-cxa4031.adb | ------------------------------------------------------------------------------
-- Copyright (c) 2011, <NAME> --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- purpose ... |
3,886 | ada | 1 | stcarrez/babel | src/babel-archivers.ads | <filename>src/babel-archivers.ads
-----------------------------------------------------------------------
-- babel-archivers -- File archiver
-- Copyright (C) 2015 Stephane.Carrez
-- Written by Stephane.Carrez (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this f... |
3,887 | ada | 4 | darkestkhan/imago | src/imago-ilut.ads | ------------------------------------------------------------------------------
-- EMAIL: <<EMAIL>> --
-- License: ISC --
-- --
-- ... |
3,888 | ada | 0 | PyllrNL/Dailyprogrammer_Solutions | Ada/challenge_399_easy.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
procedure Challenge_399_Easy is
function Letter_Sum( A : String ) return Integer is
Base : constant Integer := (Character'pos('a') - 1);
Sum : Integer := 0;
begin
for I in A'Range loop
Sum := Sum + Character'pos(A(I)) - Base;
... |
3,889 | ada | 20 | charlie5/lace | 4-high/gel/source/dolly/gel-dolly.adb | with
ada.unchecked_Deallocation;
package body gel.Dolly
is
use Math;
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_Deallocation (Item'Class, View);
begin
if Self = null
then
return;
end if;
Self.destroy;
deallocate (Sel... |
3,890 | ada | 7 | Fabien-Chouteau/Giza | src/giza-gui.adb | <reponame>Fabien-Chouteau/Giza
------------------------------------------------------------------------------
-- --
-- Giza --
-- ... |
3,891 | ada | 18 | jquorning/ada-wiki | src/wiki-filters-collectors.ads | -----------------------------------------------------------------------
-- wiki-filters-collectors -- Wiki word and link collectors
-- Copyright (C) 2016, 2020 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in complian... |
3,892 | ada | 0 | orb-zhuchen/Orb | support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-sets.adb | ------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
3,893 | ada | 0 | xeenta/learning-ada | src/001/greeter.adb | with Ada.Text_IO; use Ada.Text_IO;
package body Greeter is
Hello_Text : constant String := "Hello ";
procedure Greet (S : String) is
begin
Put_Line (Hello_Text & S & "!");
Put_Line (Hi_Text);
end Greet;
end Greeter;
|
3,894 | ada | 0 | JCGobbi/Nucleo-STM32G474RE | bb-runtimes/runtimes/ravenscar-full-stm32g474/gnat/s-powllf.ads | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
3,895 | ada | 24 | svn2github/matreshka | source/xml/sax/xml-sax-writers.ads | <reponame>svn2github/matreshka
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- ... |
3,896 | ada | 488 | ouankou/rose | tests/nonsmoke/functional/CompileTests/experimental_ada_tests/tests/array_pointer_type.ads | package Array_Pointer_Type is
type A;
type PA is access A;
type A is array(1..2) of Boolean;
end Array_Pointer_Type;
|
3,897 | ada | 0 | xeenta/learning-ada | src/002/greetings.adb | <gh_stars>0
with Ada.Text_IO; use Ada.Text_IO;
package body Greetings is
procedure Swear (Greeting : String;
Speaker_Age : Person.Age := Person.Age'First) is
begin
if Speaker_Age >= Person.Adult_Age then
Put_Line ((if Greeting = Hello then Swear_Hello
... |
3,898 | ada | 0 | caqg/linux-home | .emacs.d/elpa/ada-mode-7.0.1/wisi-ada.adb | <filename>.emacs.d/elpa/ada-mode-7.0.1/wisi-ada.adb
-- Abstract :
--
-- see spec.
--
-- Copyright (C) 2017 - 2020 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 F... |
3,899 | ada | 0 | optikos/oasis | source/oasis/program-elements-unconstrained_array_types.ads | <reponame>optikos/oasis<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Type_Definitions;
with Program.Lexical_Elements;
with Program.Elements.Expressions;
with Progr... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.