content stringlengths 23 1.05M |
|---|
with Ada.Text_IO; use Ada.Text_IO;
with Sf.System.Thread; use Sf, Sf.System, Sf.System.Thread;
with Sf.System.Sleep; use Sf.System.Sleep;
with Thread_Func;
procedure Main is
Thread : sfThread_Ptr;
TFunc : sfThreadFunc_Ptr := Thread_Func'Access;
UData : String := "Hello";
begin
Thread := Create... |
pragma Ada_2012;
package body Line_Arrays.Regexp_Classifiers is
---------
-- Add --
---------
procedure Add (To : in out Classifier_Type;
Regexp : String;
Callback : Callback_Type)
is
Matcher : constant Gnat.Regpat.Pattern_Matcher := Gnat.Regpat.Compile... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
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 Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
procedure Test_ByteBuffers is
Byte_Input : constant Byte := 42;
String_Input : constant String := "... |
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2022, AdaCore --
-- --
-- Redis... |
--------------------------------------------------------------------------------------------------------------------
-- Copyright (c) 2013-2020, Luke A. Guest
--
-- This software is provided 'as-is', without any express or implied
-- warranty. In no event will the authors be held liable for any damages
-- arising ... |
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
<Diagramm>
<AdditionalSQLCode>
<SQLCode>
<AdditionalSQLCodePostChanging></AdditionalSQLCodePostChanging>
<AdditionalSQLCodePostReducing></AdditionalSQLCodePostReducing>
<AdditionalSQLCodePreChanging></AdditionalSQLCodePreChanging>
<AdditionalSQLCodePreEx... |
-- This spec has been automatically generated from cm7.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
-- Data Watchpoint Trace
package Cortex_M_SVD.DWT is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../../License.txt
with CommonText;
with AdaBase.Connection.Base;
with AdaBase.Interfaces.Statement;
with AdaBase.Logger.Facility;
with AdaBase.Results.Sets;
with AdaBase.Results.Field;
with AdaBase.Results.Converters;
with AdaBas... |
-----------------------------------------------------------------------
-- awa-users-filters -- Specific filters for authentication and key verification
-- Copyright (C) 2011, 2012, 2015, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version ... |
with Ada.Calendar.Formatting;
with System.Long_Long_Integer_Types;
package body Ada.Calendar.Arithmetic is
use type System.Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Long_Long_Unsigned is
System.Long_Long_Integer_Types.Long_Long_Unsigned;
procedure Addition (Left : Time; Right : Day_Count; Res... |
package Volatile11_Pkg is
procedure Bit_Test(Input : in Integer;
Output1 : out Boolean; Output2 : out Boolean;
Output3 : out Boolean; Output4 : out Boolean;
Output5 : out Boolean; Output6 : out Boolean;
Output7 : out Boolean; Ou... |
package body Square_Root with SPARK_Mode is
function Sqrt (X: Float; Tolerance: Float) return Float is
A: Float := X;
begin
while abs(X - A ** 2) > X * Tolerance loop
A := (X/A + A) / 2.0;
pragma Loop_Invariant ((if X < 1.0 then (A >= X and A < 1.0)));
pragma Loop_Invaria... |
package body Scheme_Test is
function Hello_Ada(Num : Int) return Int is
Len : Int;
begin
Len := Num;
Len := Len + 1;
Put_Line ("Hello Scheme, from Ada.");
Put_Line ("The number passed is: " & Num'Image);
-- Can we call Scheme directly here?
Len := Hello_Scheme("How is the weather in your... |
-------------------------------------------------------------------------------
-- Copyright (c) 2016, 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 of s... |
with Ada.Calendar;
package Fmt.Time_Argument is
function To_Argument (X : Ada.Calendar.Time) return Argument_Type'Class
with Inline;
function "&" (Args : Arguments; X : Ada.Calendar.Time) return Arguments
with Inline;
private
type Time_Argument_Type is new Placeholder_Argument_Type with recor... |
with Ada.Streams.Stream_IO.Naked;
with System.Form_Parameters;
package body Ada.Storage_Mapped_IO is
use type Streams.Stream_Element_Offset;
use type Streams.Stream_IO.File_Mode;
use type System.Address;
use type System.Native_IO.File_Mode;
function Pack_For_Map (Form : String) return Boolean;
functi... |
package body External is
procedure SleepForSomeTime (maxSleep: Natural) is
gen: RAF.Generator;
fraction: Float;
begin
RAF.Reset(gen);
fraction := 1.0 / Float(maxSleep);
delay Duration(fraction * RAF.Random(gen));
end SleepForSomeTime;
end External;
|
with Ada.Text_IO; use Ada.Text_IO;
procedure Line_By_Line is
File : File_Type;
begin
Open (File => File,
Mode => In_File,
Name => "line_by_line.adb");
While not End_Of_File (File) Loop
Put_Line (Get_Line (File));
end loop;
Close (File);
end Line_By_Line;
|
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
package body Zstandard.Functions.Streaming_Decompression is
------------------
-- Initialize --
------------------
procedure Initialize
(mechanism : out Decompressor;
input_stream ... |
with Interfaces.C;
with termbox_h; use termbox_h;
package Termbox is
subtype Termbox_Constant is Integer;
subtype Return_Value is Integer;
type Cell is record
ch: aliased Character;
fg: aliased Integer;
bg: aliased Integer;
end record;
type Event is record
c_type : alias... |
-- Auto_Counters_Suite.Unique_Ptrs_Tests
-- Unit tests for Auto_Counters Unique_Ptrs package
-- Copyright (c) 2016, James Humphry - see LICENSE file for details
with AUnit.Assertions;
with Unique_Ptrs;
package body Auto_Counters_Suite.Unique_Ptrs_Tests is
use AUnit.Assertions;
Resources_Released : Natural :... |
-----------------------------------------------------------------------
-- ado-sql -- Basic SQL Generation
-- Copyright (C) 2010, 2011, 2012, 2015, 2019 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 Lv.Color;
with Lv.Style;
package Lv.Objx.Gauge is
subtype Instance is Obj_T;
-- Create a gauge objects
-- @param par pointer to an object, it will be the parent of the new gauge
-- @param copy pointer to a gauge object, if not NULL then the new object will be copied from it
-- @return pointer... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Adventofcode.Day_16.Main is
begin
Put_Line ("Day-16");
end Adventofcode.Day_16.Main;
|
--------------------------------------------------------------------------------
-- Copyright (C) 2020 by Heisenbug Ltd. (gh+owm@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 Ho... |
-- This file is generated by SWIG. Please do *not* modify by hand.
--
with Interfaces.C;
package bullet_c.Pointers is
-- Shape_Pointer
--
type Shape_Pointer is access all bullet_c.Shape;
-- Shape_Pointers
--
type Shape_Pointers is
array
(Interfaces.C
.size_t range <>) of alias... |
package Pack5 is
type Small is range -32 .. 31;
type Arr is array (Integer range <>) of Small;
pragma Pack (Arr);
type Rec is record
Y: Arr (1 .. 10);
end record;
pragma Pack (Rec);
end Pack5;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- part of OpenGLAda, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "COPYING"
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Unchecked_Conversion;
with System;
with GL.API;
with GL.Enums;
package body GL.Objects.Buffers is
use type Low_Level.Enums.Buffer_Kind;
fun... |
with Asis.Compilation_Units;
with Asis.Elements;
with Asis.Iterator;
with Ada.Directories;
with Ada.Characters.Handling;
-- GNAT-specific:
with Asis.Set_Get;
with A4G.A_Types;
with Asis_Adapter.Element;
with Dot;
package body Asis_Adapter.Unit is
package ACU renames Asis.Compilation_Units;
------------------... |
with System.Formatting;
with System.Img_WChar;
with System.Long_Long_Integer_Types;
with System.Val_Char;
with System.Val_Enum;
with System.Value_Errors;
with System.UTF_Conversions;
package body System.Val_WChar is
use type Long_Long_Integer_Types.Word_Unsigned;
use type UTF_Conversions.From_Status_Type;
use ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test_If_2 is
type Two_Bool is range 0 .. 3;
function If_2(Cond_1, Cond_2: Boolean) return Two_Bool is
(Two_Bool(2*Boolean'Pos(Cond_1)) + Two_Bool(Boolean'Pos(Cond_2)));
begin
for N in 10 .. 20 loop
Put(Integer'Image(N) & " is ");
case If_2(N mo... |
with
Interfaces.C;
use type
Interfaces.C.int;
package body FLTK.Screen is
function fl_screen_x
return Interfaces.C.int;
pragma Import (C, fl_screen_x, "fl_screen_x");
pragma Inline (fl_screen_x);
function fl_screen_y
return Interfaces.C.int;
pragma Import (C, fl_scr... |
------------------------------------------------------------------------------
-- --
-- ASIS-for-GNAT IMPLEMENTATION COMPONENTS --
-- --
-- ... |
--
-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>
-- - Ryad Benadjila
-- - Arnauld Michelizza
-- - Mathieu Renard
-- - Philippe Thierry
-- - Philippe Trebuchet
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... |
-------------------------------------------------------------------------------
-- Copyright 2021, The Septum Developers (see AUTHORS file)
-- 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
... |
-------------------------------------------------------------------------------
--
-- WAVEFILES GTK APPLICATION
--
-- Main Application
--
-- The MIT License (MIT)
--
-- Copyright (c) 2017 Gustavo A. Hoffmann
--
-- Permission is hereby granted, free of charge, to any pe... |
-----------------------------------------------------------------------
-- el-variables-default -- Default Variable Mapper
-- Copyright (C) 2009, 2010, 2011, 2012, 2021 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- ... |
-----------------------------------------------------------------------
-- wiki-render-text -- Wiki Text renderer
-- Copyright (C) 2011, 2012, 2013, 2015, 2016, 2019, 2020 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
... |
------------------------------------------------------------------------------
-- --
-- GNU ADA RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
-- SPDX-FileCopyrightText: 2021 Max Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-------------------------------------------------------------
with Program.Elements.Case_Paths;
package body Program.Complete_Contexts.Case_Statements is
--------------------
-- Case_Statement --
-----------... |
------------------------------------------------------------------------------
-- Copyright (c) 2015-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with
lace.Text.all_Tokens,
ada.Characters.latin_1;
package body lace.Text.all_Lines
is
use lace.Text.all_Tokens,
ada.Characters.latin_1;
function Lines (Self : in Item) return Text.items_2
is
begin
return Tokens (Self, LF);
end Lines;
function Lines (Self : in Item) return... |
with Ada.Text_IO;
with Ada.Containers.Vectors;
with Ada.Numerics.Long_Elementary_Functions;
with PrimeInstances;
package body Problem_46 is
package IO renames Ada.Text_IO;
package Math renames Ada.Numerics.Long_Elementary_Functions;
package Positive_Primes renames PrimeInstances.Positive_Primes;
package Pos... |
pragma License (Unrestricted); -- BSD 3-Clause
-- translated unit from SFMT (SFMT-sse2.h)
private generic
package Ada.Numerics.SFMT.Generating is
-- SSE2 version
pragma Preelaborate;
procedure gen_rand_all (
sfmt : in out w128_t_Array_N);
pragma Inline (gen_rand_all);
procedure gen_rand_array (... |
-- Ascon_Demo
-- Copyright (c) 2016-2018, James Humphry - see LICENSE file for details
with Ada.Text_IO;
use Ada.Text_IO;
with System.Storage_Elements;
use System.Storage_Elements;
with Ascon.Utils;
with Ascon128v12;
use Ascon128v12;
procedure Ascon128_Demo is
package Ascon128v12_Utils is new Ascon128v12.Utils... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Test is
procedure R is begin R; end;
begin
R;
end;
|
--
-- Copyright (C) 2015-2016 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
-- (at your option) any later version.
--
-- ... |
-- Abstract :
--
-- See spec
--
-- Copyright (C) 2012, 2013, 2015, 2017 - 2019 Free Software Foundation, Inc.
--
-- This program is free software; you can redistribute it and/or
-- modify it under terms of the GNU General Public License as
-- published by the Free Software Foundation; either version 3, or (at
-- ... |
-- Module : string_scanner.ada
-- Component of : common_library
-- Version : 1.2
-- Date : 11/21/86 16:36:26
-- SCCS File : disk21~/rschm/hasee/sccs/common_library/sccs/sxstring_scanner.ada
with String_Pkg; use String_Pkg;
with Unchecked_Deallocation;
package body String_Scanner is
SCCS_I... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
with
lace.Event,
lace.Observer;
limited
with
lace.Event.Logger;
package lace.Subject
--
-- Provides an interface for an event subject.
--
is
pragma remote_Types;
type Item is limited interface;
type View is access all Item'Class;
type Views is array (Positive range <>) of View;
typ... |
-- { dg-do run }
-- { dg-options "-gnatws" }
with System; use System;
procedure Trampoline2 is
A : Integer;
type FuncPtr is access function (I : Integer) return Integer;
function F (I : Integer) return Integer is
begin
return A + I;
end F;
P : FuncPtr := F'Access;
CA : System.Address := F'Code_A... |
package Constants is
Max_Entries : constant Integer := 400; -- constant
Avogadros_Number : constant := 6.022137 * 10**23; -- named number
Bytes_Per_Page : constant := 512;
Pages_Per_Buffer : constant := 10;
Buffer_Size : constant := Pages_Per_Buffer * Bytes_Per_Page;
Buffer_S... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- Based on libgasandbox.draw.h and draw.cpp
with Ada.Numerics;
with Ada.Numerics.Elementary_Functions;
with Ada.Text_IO; use Ada.Text_IO;
with GL;
with GL.Attributes;
with GL.Culling;
with GL.Objects.Buffers;
with GL.Objects.Vertex_Arrays;
with GL.Rasterization;
with GL.Toggles;
with GL.Types; use GL.Types;
with G... |
pragma Style_Checks (Off);
-- This spec has been automatically generated from ATSAMD51G19A.svd
pragma Restrictions (No_Elaboration_Code);
with System;
-- Microchip ATSAMD51G19A Microcontroller
package SAM_SVD is
pragma Preelaborate;
--------------------
-- Base addresses --
--------------------
A... |
with Ada.Exception_Identification.From_Here;
package body Ada.Sequential_IO is
use Exception_Identification.From_Here;
use type Streams.Stream_Element_Offset;
procedure Create (
File : in out File_Type;
Mode : File_Mode := Out_File;
Name : String := "";
Form : String := "") is
begin... |
-- $Id: Idents.mi,v 1.8 1992/06/22 14:23:18 grosch rel $
-- $Log: Idents.mi,v $
-- Ich, Doktor Josef Grosch, Informatiker, Sept. 1994
with DynArray;
package body Idents is
cNoIdent : constant Integer := 0;
InitialTableSize: constant Integer := 512;
HashTableSize : constant Integer := 256;
type IdentTableEntry ... |
------------------------------------------------------------------------------
-- AGAR CORE LIBRARY --
-- A G A R . O B J E C T --
-- B o d y --
-- ... |
with Ada.Integer_Text_IO, tools, Garden_Pkg;
use Ada.Integer_Text_IO, tools;
procedure main is
numberOfFields : Positive;
begin
Output.Puts("Number of fields: ", 0);
Get(numberOfFields);
declare
subtype Position is Positive range 1 .. numberOfFields;
package Garden is new Garden_Pkg(Position);
begin... |
with display,Ada.Containers.Hashed_Maps ;
with Ada.Strings.Hash;
with Ada.text_io; use Ada.text_io;
package body snake_types is
function Hash_Func(Key : character) return Ada.Containers.Hash_Type is
begin
return Ada.Strings.Hash(Key'Image);
end Hash_Func;
end snake_types ;
... |
package constants with SPARK_Mode is
BUFLEN : constant := 200;
type Arr_T is array (Natural range <>) of Integer;
subtype Data_Type is Arr_T;
subtype UBX_Data is Data_Type (0 .. 91);
UBX_SYNC1 : constant := 16#B5#;
UBX_SYNC2 : constant := 16#62#;
procedure Do_Something;
end constants;
|
pragma License (Unrestricted);
-- Ada 2012
with Ada.Characters.Conversions;
with Ada.Strings.Generic_Equal_Case_Insensitive;
function Ada.Strings.Equal_Case_Insensitive is
new Generic_Equal_Case_Insensitive (
Character,
String,
Characters.Conversions.Get);
-- pragma Pure (Ada.Strings.Equal_Case_I... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2016 onox <denkpadje@gmail.com>
--
-- 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/L... |
package body System.Formatting.Decimal is
pragma Suppress (All_Checks);
use type Long_Long_Integer_Types.Long_Long_Unsigned;
subtype Word_Unsigned is Long_Long_Integer_Types.Word_Unsigned;
subtype Long_Long_Unsigned is Long_Long_Integer_Types.Long_Long_Unsigned;
-- implementation
procedure Image (... |
with base_iface; use base_iface;
generic
type Base is tagged limited private;
package generic_mixin is
type Derived is new Base and The_Interface with null record;
overriding procedure simple (Self : Derived);
overriding procedure compound (Self : Derived);
overriding procedure redispat... |
package body Turing is
function List_To_String(L: List; Map: Symbol_Map) return String is
LL: List := L;
use type List;
begin
if L = Symbol_Lists.Empty_List then
return "";
else
LL.Delete_First;
return Map(L.First_Element) & List_To_String(LL, Map);
end if... |
-- part of AdaYaml, (c) 2017 Felix Krause
-- released under the terms of the MIT license, see the file "copying.txt"
with Ada.Containers;
with Text.Pool;
with Yaml.Tags;
limited with Yaml.Dom.Node;
package Yaml.Dom is
type Document_Reference is tagged private;
type Node_Kind is (Scalar, Sequence, Mapping);
... |
--
-- This package provides few handlers for common types: strings,
-- integers and float. A separate package provides a generic
-- handler for enumerative types.
--
package Line_Parsers.Receivers is
type String_Receiver is new Abstract_Parameter_Handler with private;
overriding
function Is_Set(Handler: Stri... |
-----------------------------------------------------------------------
-- jason -- jason applications
-- Copyright (C) 2016, 2018, 2021 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 excep... |
-- { dg-do compile }
-- { dg-options "-gnatws" }
package body Aggr15 is
function CREATE return DATA_T is
D : DATA_T;
begin
return D;
end;
function ALL_CREATE return ALL_DATA_T is
C : constant ALL_DATA_T := (others => (others => Create));
begin
return C;
end;
end Aggr15;
|
------------------------------------------------------------------------------
-- --
-- Ada User Repository Annex (AURA) --
-- ANNEXI-STRAYLINE Reference Implementation --
-- ... |
--
-- 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 Ada.Strings.Unbounded;
with Auxiliar... |
package body Ast_Printers is
function Print (The_Expr : Expr'Class) return String is
V : Ast_Printer;
begin
Accept_Visitor (The_Expr, V);
return Print (V);
end Print;
function Print (V : Ast_Printer) return String is
begin
return To_String (V.Image);
end Print;
function P... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
package Loop_Optimization11_Pkg is
function Img (X : Integer) return String;
procedure Put_Line (Data : String);
type Prot is (Execute, Execute_Read, Execute_Read_Write);
type Mem is (Mem_Image, Mem_Mapped, Mem_Private, Unknown);
end Loop_Optimization11_Pkg;
|
with Ada.Text_IO.Float_IO;
with Ada.Text_IO.Formatting;
package body Ada.Text_IO.Complex_IO is
package Real_IO is new Float_IO (Complex_Types.Real);
procedure Get_From_Field (
From : String;
Item : out Complex_Types.Complex;
Last : out Positive);
procedure Get_From_Field (
From : Stri... |
with Ada.Containers.Indefinite_Ordered_Sets;
with Ada.Containers.Ordered_Sets;
package Partitions is
-- Argument type for Create_Partitions: Array of Numbers
type Arguments is array (Positive range <>) of Natural;
package Number_Sets is new Ada.Containers.Ordered_Sets
(Natural);
type Partition is array... |
package openGL.Model.polygon
--
-- Provides an abstract class for polygon models.
--
is
type Item is abstract new Model.item with null record;
end openGL.Model.polygon;
|
with Ada.Text_IO; use Ada.Text_IO;
with Ada.Containers.Ordered_Sets;
procedure Truncatable_Primes is
package Natural_Set is new Ada.Containers.Ordered_Sets (Natural);
use Natural_Set;
Primes : Set;
function Is_Prime (N : Natural) return Boolean is
Position : Cursor := First (Primes);
begin
... |
-- 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 json = require("json")
name = "Crtsh"
type = "cert"
function start()
setratelimit(2)
end
function vertical(ctx, domain)
local resp, err = request(ctx, {
... |
procedure Type_Conversion is
X : Integer;
Y : Positive;
begin
X := 1;
Y := Positive (X);
end Type_Conversion;
|
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- 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/L... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2016-2017, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
package body Loop_Optimization3_Pkg is
function F (n : Integer) return Integer is
begin
return n;
end;
end Loop_Optimization3_Pkg;
|
-----------------------------------------------------------------------
-- ado-audits -- Auditing support
-- Copyright (C) 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 this file except in comp... |
with Ada.Text_IO;
with Sax.Readers;
with Input_Sources.Strings;
with Unicode.CES.Utf8;
with DOM.Readers;
with DOM.Core.Documents;
with DOM.Core.Nodes;
with DOM.Core.Attrs;
procedure Extract_Students is
Sample_String : String :=
"<Students>" &
"<Student Name=""April"" Gender=""F"" DateOfBirth=""1989-01-02"" />" &... |
with Ada.Numerics.Elementary_Functions;
use Ada.Numerics.Elementary_Functions;
with Ada.Numerics;
use Ada.Numerics;
package body Geometry is
function distance(point1, point2 : Point) return Float is begin
return Sqrt(
(point2.x - point1.x)**2+
(point2.y - point1.y)**2+
(... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Element_Vectors is
procedure Skip_Elements
(Self : Iterator;
Pos : in out Element_Cursor;
... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2017 onox <denkpadje@gmail.com>
--
-- 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/L... |
with Ada.Text_IO;
package body Problem_48 is
package IO renames Ada.Text_IO;
procedure Solve is
type Unsigned is mod 2**32;
function modular_pow(base, exponent, modulus : Unsigned) return Unsigned is
result : Unsigned := 1;
base_mod : Unsigned := base;
exponent_mod : Unsigne... |
with Ada.Integer_Text_IO, Ada.Text_IO;
use Ada.Integer_Text_IO, Ada.Text_IO;
with Listas;
with Es_Abundante;
with Crear_Sublista_4Primos;
with Crear_Sublista_Pares;
procedure Probar_Listas is
procedure Crear_Sublista_3Abundantes is new Listas.Crear_Sublista(Cuantos => 3, Filtro => Es_Abundante);
... |
-- Copyright 2016-2019 NXP
-- All rights reserved.SPDX-License-Identifier: BSD-3-Clause
-- This spec has been automatically generated from LPC55S6x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package NXP_SVD.SCT is
pragma Preelaborate;
... |
with Ada.Containers.Vectors;
with Ada.Containers.Indefinite_Hashed_Maps;
with Ada.Strings.Hash;
with Ada.Strings.Unbounded; use Ada.Strings.Unbounded;
package Generator.Match_Pattern_Specific is
use Ada.Containers;
package List_String is new Vectors (Positive, Unbounded_String);
function Equivalent_Key (Lef... |
with EU_Projects.Nodes.Partners;
with EU_Projects.Times.Time_Expressions;
with EU_Projects.Event_Names;
with EU_Projects.Node_Tables;
with EU_Projects.Efforts;
--
-- An action node is a basic node that represent an activity, that is, a WP
-- or a task. An action has
--
-- * A leader
-- * An activity interval with... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.