CombinedText
stringlengths
4
3.42M
----------------------------------------------------------------------- -- servlet-responses -- Servlet Responses -- Copyright (C) 2010, 2011, 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...
-- Generated at 2014-11-09 20:46:38 +0000 by Natools.Static_Hash_Maps -- from src/natools-static_hash_maps-s_expressions-hash_maps.sx function Natools.Static_Hash_Maps.S_Expressions.Command_Maps.Test return Boolean;
-- Gonzalo Martin Rodriguez -- Ivan Fernandez Samaniego package Priorities is Head_Priority : constant integer := 20; -- d=100, t=400 Risk_Priority : constant integer := 19; -- d=150, t=150 Sporadic_Priority : constant integer := 18; -- d=200, t=200 Distance_Priority : constant integer := 1...
with pointer_variable_bounds_q; use pointer_variable_bounds_q; package pointer_variable_bounds is type HALF_INTEGER is range -32768 .. 32767; subtype HALF_NATURAL is HALF_INTEGER range 0 .. 32767; MAX_COMPS : constant HALF_NATURAL := HALF_NATURAL(A_MAX_COMPS); subtype COMP_POINTER_TYPE is HALF_NATURAL range ...
-------------------------------------------------------------------------------- -- 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...
with System; package Loop_Optimization2 is type Prim_Ptr is access procedure; type Address_Array is array (Positive range <>) of Prim_Ptr; subtype Dispatch_Table is Address_Array (1 .. 1); type Tag is access all Dispatch_Table; type Tag_Array is array (Positive range <>) of Tag; function Interfa...
package body Person2 is procedure Set_Name (A_Person : out Person; Name : in Unbounded_String) is begin A_Person.Name := Name; end Set_Name; procedure Set_Age (A_Person : out Person; Her_Age : in Age_Type) is begin A_Person.Age := Her_Age; end ...
----------------------------------------------------------------------- -- EL.Expressions -- Expression Language -- Copyright (C) 2009, 2010, 2011, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may n...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Test QR decomposition real valued square matrices. with Ada.Numerics.Generic_elementary_functions; with Givens_QR; with Test_Matrices; With Text_IO; use Text_IO; procedure givens_qr_tst_1 is type Real is digits 15; subtype Index is Integer range 1..137; -- in this test, matrix is a square-shaped matri...
<?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/> <cdfg class_id="1" tracking_level="1" version="0...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Elements.Defining_Identifiers; with Program.Lexical_Elements; with Program.Elements.Expressions; with Program.Element_Vectors; with Program.Ele...
pragma Warnings (Off); pragma Ada_95; with System; with System.Parameters; with System.Secondary_Stack; package ada_main is gnat_argc : Integer; gnat_argv : System.Address; gnat_envp : System.Address; pragma Import (C, gnat_argc); pragma Import (C, gnat_argv); pragma Import (C, gnat_envp); gnat_...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
-- Copyright 2008-2021 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. -- -- ...
----------------------------------------------------------------------- -- hestia -- Hestia Home Heat Controller -- Copyright (C) 2016 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 ...
-- Abstract : -- -- Image for normal Ada array types -- -- Copyright (C) 2019 Free Software Foundation, Inc. -- -- This library is free software; you can redistribute it and/or modify it -- under terms of the GNU General Public License as published by the Free -- Software Foundation; either version 3...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- 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. -- -- ...
with System; package body gnatcoll.uuid is use Interfaces.C; package bits_types_h is type uu_timer_t is new System.Address; -- types.h:161:27 end bits_types_h; package bits_time_h is CLOCKS_PER_SEC : constant := 1000000; -- time.h:34 CLOCK_REALTIME : constant := 0; -- time.h:46 ...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
package body Pascal is function First_Row(Max_Length: Positive) return Row is R: Row(0 .. Max_Length) := (0 | 1 => 1, others => 0); begin return R; end First_Row; function Next_Row(R: Row) return Row is S: Row(R'Range); begin S(0) := Length(R)+1; S(Length(S)) := 1; f...
-- SPDX-FileCopyrightText: 2020 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- with Program.Cross_Reference_Updaters; with Program.Elements.Identifiers; with Program.Simple_Resolvers; with Program.Symbol_Lists; with Program.Error_Liste...
-- Copyright ©2021,2022 Steve Merrony -- 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 restriction, including without limitation the rights -- to use, copy, modify, merge, publish,...
-- -- 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.Command_Line; with Command_Line;...
-- SPDX-License-Identifier: Apache-2.0 -- -- Copyright (c) 2021 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
<?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="...
-- C48008C.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...
pragma Ada_2005; pragma Style_Checks (Off); pragma Warnings (Off); with Interfaces.C; use Interfaces.C; with glib; with glib.Values; with System; with GLIB; -- with GStreamer.GST_Low_Level.glibconfig_h; with GStreamer.GST_Low_Level.gstreamer_0_10_gst_base_gstbasesrc_h; with System; limited with GStreamer.GST_Low_Leve...
with Ada.Numerics; with Gtk.Widget; use Gtk.Widget; with PortAudioAda; use PortAudioAda; package GA_Waves_Globals is Frames_Per_Buffer : Long_Float := 64.0; Sample_Rate : Long_Float := 44_100.0; stream : aliased PA_Stream_Ptr; Two_Pi : Long_Float := Ada.Numerics.Pi * 2.0; type Float_Array...
------------------------------------------------------------------------ -- Copyright (C) 2005-2020 by <ada.rocks@jlfencey.com> -- -- -- -- This work is free. You can redistribute it and/or modify it under -- -- the terms of the Do What...
------------------------------------------------------------------------------ -- 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...
----------------------------------------------------------------------- -- Util-texts -- Various Text Utilities -- Copyright (C) 2001, 2002, 2003, 2009, 2010 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
-- ---------------------------------------------------------------- -- -- This file contains some improvements to the gl Ada binding -- -- in order to allow a better programming style. -- -- The prototypes below follow the Implementation advice from -- -- ARM Annex B (B.3). ...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2017, AdaCore -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
----------------------------------------------------------------------- -- servlet-server -- Servlet Server for AWS -- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2019, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License")...
----------------------------------------------------------------------- -- asf-navigations -- Navigations -- Copyright (C) 2010, 2011, 2012, 2013 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 f...
package LR.Synchro.Exclusion2 is function Nom_Strategie return String; procedure Demander_Lecture; procedure Demander_Ecriture; procedure Terminer_Lecture; procedure Terminer_Ecriture; end LR.Synchro.Exclusion2;
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- ...
with GL.lean, GL.Binding, openGL.Tasks, openGL.Errors; package body openGL.Frame_Buffer is package body Forge is function to_Frame_Buffer (Width, Height : in Positive) return Item is use openGL.Texture, GL, GL.B...
with pincon; with utility; package body IO is type M_State is (Fwd, Rev, Stop); procedure Control_Motor (S : in M_State) is begin case S is when Fwd => -- Drive forward pincon.Write (pincon.Pin_3, True); pincon.Write (pincon.Pin_5, False); ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
----------------------------------------------------------------------- -- files.tests -- Unit tests for files -- Copyright (C) 2011, 2012, 2013, 2014, 2017, 2020 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you m...
-- Copyright 2017 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 = "ArchiveIt" type = "archive" function start() setratelimit(1) end function vertical(ctx, domain) crawl(ctx, buildurl(domain)) end function resolved(ctx,...
-- SPDX-FileCopyrightText: 2019 Max Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT ------------------------------------------------------------- package body Program.Nodes.Attribute_Definition_Clauses is function Create (For_Token : not null Program.Lexical_Elements .Lexical_El...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
-- Copyright (c) 2010 - 2018, Nordic Semiconductor ASA -- -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without modification, -- are permitted provided that the following conditions are met: -- -- 1. Redistributions of source code must retain the above copyright notice, t...
------------------------------------------------------------------------------ -- 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...
with Asis.Elements; package body Asis_Adapter.Element.Pragmas is procedure Do_Pre_Child_Processing (Element : in Asis.Element; State : in out Class) is Parent_Name : constant String := Module_Name; Module_Name : constant String := Parent_Name & ".Do_Pre_Child_Processing"; Pragma_Kind : As...
------------------------------------------------------------------------------ -- -- -- GNAT COMPILER COMPONENTS -- -- -- -- S...
-- Copyright 2004 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 2 of the License, or -- (at your option) any later version. -- -- This...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Variants is function Create (When_Token : not null Program.Lexical_Elements.Lexical_Element_Access...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- PR ada/28591 -- Reported by Martin Michlmayr <tbm@cyrius.com> -- { dg-do compile } -- { dg-options "-g" } with Interfaces; use Interfaces; package Unchecked_Union is type Mode_Type is (Mode_B2); type Value_Union (Mode : Mode_Type := Mode_B2) is record case Mode is when Mode_B2 => ...
-- TODO: how to deal with virusscanners? -- Performance can be limited by speed of virus scanner ;-( -- running in a single thread... with Ada.Containers; use Ada.Containers; with Ada.Containers.Indefinite_Ordered_Maps; with Ada.Directories; use Ada.Directories; with Ada.Exceptions; u...
-- C95072A.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 Ada.Text_IO; use Ada.Text_IO; with Ada.Command_Line; use Ada.Command_Line; with Gnat.Command_Line; use Gnat.Command_Line; with Ada.Environment_Variables; with Ada.Directories; use Ada.Directories; with GNAT.OS_Lib; use GNAT.OS_Lib; with Ada.Containers; use Ada.Containers; with Ada.Containers.Indefinite_Ordered_Map...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- package body Program.Nodes.Formal_Decimal_Fixed_Point_Definitions is function Create (Delta_Token : not null Program.Lexical_...
package body Task_Scheduling is protected body Epoch is procedure Get_Start_Time(Start_Time : out Ada.Real_Time.Time) is begin if First then First := False; Start := Ada.Real_Time.Clock; end if; Start_Time := Start; en...
------------------------------------------------------------------------------ -- -- -- GNAT LIBRARY COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT ncurses Binding Samples -- -- -- -- ...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS -- -- -- -- ...
package LR.Synchro is function Nom_Strategie return String; procedure Demander_Lecture; procedure Demander_Ecriture; procedure Terminer_Lecture; procedure Terminer_Ecriture; end LR.Synchro;
----------------------------------------------------------------------- -- search-analyzers -- Analyze a document -- Copyright (C) 2020 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...
-- Copyright (c) 2020 Bartek thindil Jasicki <thindil@laeran.pl> -- -- 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...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with STM32_SVD; use STM32_SVD; with STM32_SVD.RCC; use STM32_SVD.RCC; with STM32GD.Startup; with STM32GD.GPIO; package body STM32GD.Board is procedure Init is begin CLOCKS.Init; RCC_Periph.IOPENR.IOPAEN := 1; RCC_Periph.IOPENR.IOPBEN := 1; RCC_Periph.IOPENR.IOPCEN := 1; RCC_Periph....
with Ada.Unchecked_Deallocation; with PB_Support.IO; with PB_Support.Internal; package body Protobuf_Test_Messages.Proto_2.Test_Messages_Proto_2 is type Integer_Foreign_Enum_Proto_2 is range 0 .. 2 with Size => Protobuf_Test_Messages.Proto_2.Test_Messages_Proto_2 .Foreign_Enum_Proto_2'Size; ...
-- -- 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...
package Atomic with Preelaborate, Spark_Mode is type Mem_Order is (Relaxed, -- Implies no inter-thread ordering constraints Consume, -- This is currently implemented using the stronger __ATOMIC_ACQUIRE -- memory order because of a deficiency in C++11's semantics for -- memory_o...
package ADMBase.Data_IO is procedure read_data (file_name : String := "data.txt"); procedure read_grid (file_name : String := "grid.txt"); procedure write_data (file_name : String := "data.txt"); procedure write_grid (file_name : String := "grid.txt"); procedure read_data_fmt (file_name : String := "da...
-- -- (c) Copyright 1993,1994,1995,1996 Silicon Graphics, Inc. -- ALL RIGHTS RESERVED -- Permission to use, copy, modify, and distribute this software for -- any purpose and without fee is hereby granted, provided that the above -- copyright notice appear in all copies and that both the copyright notice -- and th...
with types; package rod_control is procedure callback (Control_Rods : in out types.Rod_Array; Temperature : types.Kilojoule; Output : types.Kilojoule); private Last_Temp : types.Kilojoule := 0.000; end rod_control;
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
------------------------------------------------------------------------------ -- G E L A A S I S -- -- ASIS implementation for Gela project, a portable Ada compiler -- -- http://gela.ada-ru.org -- -- ...
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; package body kv.avm.Vole_Lex is procedure Report is begin Put_Line(yytext); end Report; procedure Inc_Line is begin Line_Number := Line_Number + 1; end Inc_Line; function YYLex return Token is subtype short is integer range -32768..32767; yy_act ...
------------------------------------------------------------------------------- -- This file is part of libsparkcrypto. -- -- Copyright (C) 2011, Adrian-Ken Rueegsegger -- All rights reserved. -- -- Redistribution and use in source and binary forms, with or without -- modification, are permitted provided that...
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <!DOCTYPE boost_serialization> <boost_serialization signature="serialization::archive" version="14"> <syndb class_id="0" tracking_level="0" version="0"> <userIPLatency>-1</userIPLatency> <userIPName/> <cdfg class_id="1" tracking_level="1" version="0...
with datos; use datos; procedure actualizar ( L : in out Lista; i : in Integer; Cantidad : in Integer ) is begin end actualizar;
----------------------------------------- -- PRG2 -- -- A = B * (MC * MD - ME * e) -- -- Zubrych Yevheniia -- -- IP-53 -- ----------------------------------------- with System; use System; with Ada.Text_IO; use ...
-- Copyright 2007, 2008, 2009, 2010, 2011 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 la...
------------------------------------------------------------------------------ -- -- -- Copyright (C) 2015, AdaCore -- -- -- -- ...
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com> -- -- SPDX-License-Identifier: MIT -- License-Filename: LICENSE ------------------------------------------------------------- with Program.Library_Items; with Program.Library_Unit_Bodies; with Program.Library_Unit_Declarations; with Program.Subunits; package ...
with RASCAL.Utility; use RASCAL.Utility; with RASCAL.WimpTask; use RASCAL.WimpTask; with RASCAL.ToolboxWindow; use RASCAL.ToolboxWindow; with RASCAL.Toolbox; use RASCAL.Toolbox; with RASCAL.FileInternal; use RASCAL.FileInternal; with RAS...
------------------------------------------------------------------------------ -- -- -- GNAT RUN-TIME COMPONENTS -- -- -- -- ...
with ada.calendar; with gnat.calendar.time_io; procedure HackingDate is begin gnat.calendar.time_io.put_time(ada.calendar.clock, "%Y-%m-%d"); end HackingDate;
------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- ...
with Ada.Text_IO; use Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Integer_Text_IO; with Ada.Text_IO.Text_Streams; use Ada.Text_IO.Text_Streams; with Ada.Text_IO.Unbounded_IO; use Ada.Text_IO.Unbounded_IO; with Ada.Real_Time; use Ada.Real_Time; procedure SelectTime is Iterations : CONSTANT INTEGER := 2**24; Iterati...
-- 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 = "Maltiverse" type = "api" function start() set_rate_limit(1) end function vertical(ctx, domain) ...
----------------------------------------------------------------------- -- el-methods-func_1 -- Function Bindings with 1 argument -- Copyright (C) 2010, 2011, 2012, 2020, 2021 Stephane Carrez -- Written by Stephane Carrez (Stephane.Carrez@gmail.com) -- -- Licensed under the Apache License, Version 2.0 (the "License...
-- This spec has been automatically generated from STM32F46_79x.svd pragma Restrictions (No_Elaboration_Code); pragma Ada_2012; pragma Style_Checks (Off); with HAL; with System; package STM32_SVD.ADC is pragma Preelaborate; --------------- -- Registers -- --------------- -- status register type...