text stringlengths 4 1.04M |
|---|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
pragma Priority_Specific_Dispatching(FIFO_Within_Priorities, 2, 30); --high priority tasks
pragma Priority_Specific_Dispatching(Round_Robin_Within_Priorities, 1, 1); --low priority tasks
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Real_Time; use Ada.Real_Time;
procedure mixedscheduling is
package Dura... |
-- convert UCD/extracted/DerivedGeneralCategory.txt
-- bin/ucd_generalcategory $UCD/extracted/DerivedGeneralCategory.txt > ../source/strings/a-ucgeca.ads
with Ada.Command_Line; use Ada.Command_Line;
with Ada.Containers.Doubly_Linked_Lists;
with Ada.Integer_Text_IO; use Ada.Integer_Text_IO;
with Ada.Strings; use Ada.Str... |
pragma License (Unrestricted);
-- implementation unit
with Ada.Interrupts;
package System.Interrupt_Handlers is
-- pragma Interrupt_Handler is required to Attach_Handler, CXC3001.
procedure Register_Interrupt_Handler (
Code_Address : Address);
procedure Register_Interrupt_Handler (
Handler : Ad... |
with
physics.Object,
physics.Model,
physics.Shape,
bullet_C;
private
with
lace.Any;
package bullet_Physics.Object
--
-- Provides glue between a physics object and a Bullet3D object.
--
is
type Item is limited new physics.Object.item with private;
type View is access all Item'Class;
... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package Racionalisok is
type Racionalis is private;
function Szamlalo ( R: Racionalis ) return Integer;
function Nevezo ( R: Racionalis ) return Positive;
function "/" ( Szamlalo: Integer; Nevezo: Positive ) return Racionalis;
function "/" ( X, Y: Racionalis ) return Racionalis;
func... |
-----------------------------------------------------------------------
-- package body Gauss_Quadrature_61. Gaussian quadrature.
-- Copyright (C) 2018 Jonathan S. Parker
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpose with or without fee is hereby granted, provided that the a... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with Ada.Long_Integer_Text_IO;
-- Copyright 2021 Melwyn Francis Carlo
procedure A043 is
use Ada.Long_Integer_Text_IO;
Main_Num : String (1 .. 10) := "0123456789";
Temp_Char : String (1 .. 1);
Pandigital_Num_List : array (Integer range 1 .. 100) of Long_Integer :=
(others => 0);
Sum : Lo... |
with Ada.Unchecked_Conversion;
package Tkmrpc.Request.Cfg.Tkm_Reset.Convert is
function To_Request is new Ada.Unchecked_Conversion (
Source => Tkm_Reset.Request_Type,
Target => Request.Data_Type);
function From_Request is new Ada.Unchecked_Conversion (
Source => Request.Data_Type,
Targe... |
-- C93003A.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... |
with impact.d2.orbs.Solid,
impact.d2.orbs.Contact.circle,
impact.d2.orbs.world_Callbacks,
ada.unchecked_Deallocation;
with impact.d2.orbs.Shape;
package body impact.d2.orbs.Contact
is
use type int32;
procedure free (Self : in out View)
is
procedure deallocate is new ada.unchecked_De... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Copyright 2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
local url = require("url")
local json = require("json")
name = "Arquivo"
type = "archive"
function start()
set_rate_limit(5)
end
function vertical(ctx, domain)
... |
-------------------------------------------------------------------------------
-- Copyright (c) 2019, Daniel King
-- 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... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with
gel.hinge_Joint,
gel. any_Joint,
gel.World,
ada.Tags,
ada.unchecked_Deallocation,
ada.unchecked_Conversion;
package body gel.Sprite
is
use ada.Tags,
linear_Algebra_3D;
procedure log (Message : in String)
-- renames ada.text_IO.put_Line;
is null;... |
with Ada.Command_Line;
with Ada.Text_IO; use Ada.Text_IO;
with STRINGS_PACKAGE; use STRINGS_PACKAGE;
with CONFIG; use CONFIG;
with WORD_PARAMETERS; use WORD_PARAMETERS;
with DEVELOPER_PARAMETERS; use DEVELOPER_PARAMETERS;
with WORD_PACKAGE; use WORD_PACKAGE;
with PARSE;
procedure MEAN... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, Fabien Chouteau --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
package body Program.Nodes.Constrained_Array_Types is
function Create
(Array_Token : not null Program.Lexical_Elements
.Lexical_El... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- Babel.Base.Models -- Babel.Base.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with League.Text_Codecs;
with Slim.Message_Visiters;
package body Slim.Messages.vers is
----------
-- Read --
----------
... |
-----------------------------------------------------------------------
-- net-protos -- Network protocols
-- Copyright (C) 2016, 2017 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except ... |
-- This spec has been automatically generated from STM32F7x9.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.I2C is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR1_DNF_Field is HAL.U... |
-----------------------------------------------------------------------
-- security-random-tests - Tests for random package
-- Copyright (C) 2017, 2018 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use ... |
with Ada.Text_IO, Ada.Integer_Text_IO;
package body Knights_Tour is
type Pair is array(1..2) of Integer;
type Pair_Array is array (Positive range <>) of Pair;
Pairs: constant Pair_Array (1..8)
:= ((-2,1),(-1,2),(1,2),(2,1),(2,-1),(1,-2),(-1,-2),(-2,-1));
-- places for the night to go (relative to t... |
package Giza.Hershey_Fonts.Scripts is
Font : constant Giza.Font.Ref_Const;
private
Glyph_0 : aliased constant Glyph :=
(Number_Of_Vectors => 0,
Width => 16,
Height => 0,
Y_Offset => 0,
X_Offset => -8,
Vects => (others => (Raise_Pen)));
Glyph_1 : aliased constant Glyph :=
... |
package Vulkan.Low_Level is
end Vulkan.Low_Level;
|
--------------------------------------------------------
-- E n c o d i n g s --
-- --
-- Tools for convertion strings between Unicode and --
-- national/vendor character sets. --
-- - - - - - - - - -... |
package Problem_07 is
procedure Solve;
end Problem_07;
|
package body Lists.dynamic is
overriding
function List_Constant_Reference (Container : aliased in List; Index : Index_Type) return Constant_Reference_Type is
CVR : ACV.Constant_Reference_Type := Container.vec.Constant_Reference(Index);
R : Constant_Reference_Type(CVR.Element);
begin
... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
-- The Beer-Ware License (revision 42)
--
-- Jacob Sparre Andersen <jacob@jacob-sparre.dk> wrote this. As long as you
-- retain this notice you can do whatever you want with this stuff. If we meet
-- some day, and you think this stuff is worth it, you can buy me a beer in
-- return.
--
-- Jacob Sparre Andersen
p... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Saying_Hello is
begin
Put ("What is your name? ");
declare
Name : String := Get_Line;
begin
Put ("Hello, ");
Put (Name);
Put (", nice to meet you!");
end;
end Saying_Hello; |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with
Ahven,
float_Math.Geometry.d2;
with Ada.Text_IO; use Ada.Text_IO;
package body math_Tests.Geometry_2d
is
use Ahven,
float_Math;
function almost_Equal (Left, Right : in Real) return Boolean
is
Tolerance : constant := 0.000_001;
begin
return abs (Left - Right) <= Tolera... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="... |
pragma License (Unrestricted);
-- implementation unit required by compiler
package System.Wid_WChar is
pragma Pure;
-- required for Wide_Character'Width by compiler (s-widwch.ads)
function Width_Wide_Character (Lo, Hi : Wide_Character) return Natural;
-- required for Wide_Wide_Character'Width by compil... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
package body impact.d2.Joint.mouse
is
procedure dummy is begin null; end dummy;
-- #include <Box2D/Dynamics/Joints/b2MouseJoint.h>
-- #include <Box2D/Dynamics/b2Body.h>
-- #include <Box2D/Dynamics/b2TimeStep.h>
--
-- // p = attached point, m = mouse point
-- // C = p - m
-- // Cdot = v
-- // = v + c... |
-- { dg-do compile }
-- { dg-options "-fdump-tree-gimple" }
with Atomic6_Pkg; use Atomic6_Pkg;
procedure Atomic6_3 is
function F (I : Integer) return Integer is
begin
return I;
end;
function F2 return Integer is
begin
return Integer(Counter1);
end;
function F3 return Integer is
begin
re... |
with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams;
with Ada.Strings.Maps; use Ada.Strings.Maps;
with Ada.Command_Line; use Ada.Command_Line;
procedure Rot_13 is
From_Sequence : Character_Sequence := "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";
Result_Sequence : Character_Sequence := "nopqrs... |
-- Auto generated file. Don't edit
-- Read copyright and license at the end of this file
package body Encodings.Maps.CP_1256 is
Forward : Forward_Map (Character'Val(16#80#) .. Character'Last) :=
(Wide_Character'Val(16#20AC#),
Wide_Character'Val( 16#67E#),
Wide_Character'Val(16#201A#),
Wi... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
with TOML;
procedure Main is
Table1 : constant TOML.TOML_Value := TOML.Create_Table;
Table2 : constant TOML.TOML_Value := TOML.Create_Table;
Table3 : constant TOML.TOML_Value := TOML.Create_Table;
Arr : constant TOML.TOML_Value :=... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
------------------------------------------------------------------------------
-- --
-- P G A D A . U T I L S --
-- --
-- ... |
package Memory.RAM is
type RAM_Type is new Memory_Type with private;
type RAM_Pointer is access all RAM_Type'Class;
function Create_RAM(latency : Time_Type := 1;
burst : Time_Type := 0;
word_size : Positive := 8;
word_coun... |
with PragmARC.Matching.Character_Regular_Expression;
separate (Lined.Program.Process)
procedure Substitute (Command : in String; Current : in out Natural; Last : out Natural; Printing : out Boolean) is
procedure Replace (Replacement : in String; Multi : in Boolean; Start : in Natural; Stop : in Natural; Current : i... |
-- SipHash
-- an Ada implementation of the algorithm described in
-- "SipHash: a fast short-input PRF"
-- by Jean-Philippe Aumasson and Daniel J. Bernstein
-- Copyright (c) 2015, James Humphry - see LICENSE file for details
with System;
package body SipHash with
SPARK_Mode,
Refined_State => (Initial_Hash_State => In... |
-- Ada regular expression library
-- (c) Kristian Klomsten Skordal 2020 <kristian.skordal@wafflemail.net>
-- Report bugs and issues on <https://github.com/skordal/ada-regex>
with AUnit.Run;
with AUnit.Reporter.Text;
with Regex_Test_Suite;
with Utilities_Test_Suite;
procedure Regex_Test is
procedure Regex_Test_... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2022, AdaCore --
-- --
-- Redis... |
package body GL.Text.UTF8 is
type Byte is mod 2**8;
subtype Surrogate_Halves is UTF8_Code_Point range 16#D800# .. 16#DFFF#;
procedure Read (Buffer : String; Position : in out Positive;
Result : out UTF8_Code_Point) is
Cur : Byte := Character'Pos (Buffer (Position));
Additional_B... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding --
-- --
-- ... |
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- http://gela.ada-ru.org --
-- ... |
package body agar.gui.widget.fixed is
package cbinds is
procedure put
(fixed : fixed_access_t;
child : child_access_t;
x : c.int;
y : c.int);
pragma import (c, put, "AG_FixedPut");
procedure size
(fixed : fixed_access_t;
child : child_access_t;
... |
procedure Entry_Point is
X : constant Integer := 11;
begin
-- Failure
pragma Assert (X < 10);
-- Success
pragma Assert (X > 0);
end Entry_Point;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- This unit provides an abstract type to decode COBS byte per byte. It can
-- stream data because the full input frame is not required to start decoding.
--
-- To use this decoder, declare a tagged type that inherit from this one and
-- implement a Flush procedure that will receive the encoded data from the
-- en... |
-- Copyright 2012-2020 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
-- This package is intended to set up and tear down the test environment.
-- Once created by GNATtest, this package will never be overwritten
-- automatically. Contents of this package can be modified in any way
-- except for sections surrounded by a 'read only' marker.
package body Tcl.Info.Test_Data is
proc... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 Zane Myers
--
-- 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 witho... |
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE boost_serialization>
<boost_serialization signature="serialization::archive" version="15">
<syndb class_id="0" tracking_level="0" version="0">
<userIPLatency>-1</userIPLatency>
<userIPName></userIPName>
<cdfg class_id="1" tracking_level="1" version="... |
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with swig;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_glx_get_pixel_mapfv_reply_t is
-- Item
--
type Item is record
response_type : aliased Interfaces.Unsigned_8;
pad0 : aliased Inte... |
------------------------------------------------------------------------------
-- --
-- Giza --
-- --
-- ... |
-- Copyright 2017-2021 Jeff Foley. All rights reserved.
-- Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
name = "SiteDossier"
type = "scrape"
function start()
set_rate_limit(4)
end
function vertical(ctx, domain)
local num = 1
while(true) do
local ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
--
-- Copyright (C) 2017 Nico Huber <nico.h@gmx.de>
--
-- 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
-- (at your option) any later version.
--
-- This pr... |
generic
type Element_Type is private;
type List_Type is array (Integer range <>) of Element_Type;
with function Compare (Left : Element_Type; Right : Element_Type) return Boolean;
with function To_String (E : Element_Type) return String;
package Sort_Generics is
procedure Sort_Generic (List : in ou... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Definitions; use Definitions;
with Ada.Integer_Text_IO;
with Ada.Directories;
with Ada.Text_IO;
with HelperText;
with Unix;
package body Configure is
package INT renames Ada.Integer_Text_IO;
package D... |
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
protected type Light is new Device with
overriding procedure Set_Name (Name... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
with Ada.Execution_Time,
Ada.Integer_Text_IO,
Ada.Real_Time,
Ada.Strings.Fixed,
Ada.Text_IO;
with Utils,
Coordinates_2D;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
package My_Coordinates is new Coordinates_2D (Integer);
use My_C... |
------------------------------------------------------------------------------
-- 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 --
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... |
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2021 Zane Myers
--
-- 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 witho... |
------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+spat@heisenbug.eu)
--
-- This work is free. You can redistribute it and/or modify it under the
-- terms of the Do What The Fuck You Want To Public License, Version 2,
-- as published by Sam Hoc... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with AUnit.Assertions; use AUnit.Assertions;
package body Day1.Test is
procedure Test_Part1 (T : in out AUnit.Test_Cases.Test_Case'Class) is
pragma Unreferenced (T);
begin
Assert (fuel_required(12) = 2, "Wrong fuel 12 => 2");
Assert (fuel_required(14) = 2, "Wrong fuel 14 => 2");
Assert (... |
-- Copyright 2011-2016 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 3 of the License, or
-- (at your option) any later version.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2018, AdaCore --
-- --
-- ... |
-- WORDS, a Latin dictionary, by Colonel William Whitaker (USAF, Retired)
--
-- Copyright William A. Whitaker (1936–2010)
--
-- This is a free program, which means it is proper to copy it and pass
-- it on to your friends. Consider it a developmental item for which
-- there is no charge. However, just for form, it is C... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.