CombinedText stringlengths 4 3.42M |
|---|
-- 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.
local json = require("json")
name = "FacebookCT"
type = "cert"
function start()
setratelimit(20)
end
function check()
if (api ~= nil and api.key ~= nil and
... |
-- Copyright 2004-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.
--
-- ... |
-- This spec has been automatically generated from STM32F030.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with System;
package STM32_SVD.DMA is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype ISR_GIF1_Field is STM32_SVD.Bit;... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with Offmt_Lib.Fmt_Data.Unsigned_8;
with Offmt_Lib.Fmt_Data.Unsigned_16;
with Offmt_Lib.Fmt_Data.Unsigned_32;
package body Offmt_Lib.Fmt_Data is
------------
-- Create --
------------
function Create (Typ : Format_Type) return Instance'Class is
begin
case Typ is
when Type_U8 =>
... |
package body Swap_Generics is
procedure Swap_Generic (Value_1 : in out Data_Type; Value_2 : in out Data_Type) is
Tmp : Data_Type;
begin
Tmp := Value_1;
Value_1 := Value_2;
Value_2 := Tmp;
end Swap_Generic;
end Swap_Generics;
|
-----------------------------------------------------------------------
-- awa-questions -- Module questions
-- Copyright (C) 2012, 2013, 2015, 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 thi... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Function_Access_Types is
function Create
(Not_Token : Program.Lexical_Elements.Lexical_El... |
--
-- 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... |
with Gtk.Box; use Gtk.Box;
with Gtk.Label; use Gtk.Label;
with Gtk.Widget; use Gtk.Widget;
with Gtk.Main;
with Gtk.Window; use Gtk.Window;
procedure @_Main_Name_@ is
Win : Gtk_Window;
Label : Gtk_Label;
Box : Gtk_Vbox;
begin
-- Initialize GtkAda.
Gtk.Main.Init;
-- Cre... |
--
-- 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... |
package Aggr14_Pkg is
type A is array (Integer range 1 .. 3) of Short_Short_Integer;
X : A := (1, 2, 3);
procedure Proc;
end Aggr14_Pkg;
|
--------------------------------------------------------------------
--| Program/Package : SCREEN Version : 1.0 |
--------------------------------------------------------------------
--| Abstract : ANSI screen manipulation |
-----------------------... |
with MPI;
package MPIUse is
flag : MPI.Errorcode_Type := MPI.Errorcode_Type(-2);
end MPIUse;
|
------------------------------------------------------------------------------
-- --
-- GNAT ncurses Binding Samples --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME LIBRARY (GNARL) COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- { dg-do compile }
package static_initializer is
type Vector is array (1 .. 3) of Float;
type Arr is array (Integer range 1 .. 3) of Vector;
Pos : constant Arr := ((0.0, 1.0, 2.0),
(0.5, 1.5, 2.5),
(1.0, 2.0, 4.0));
end;
-- { dg-final { scan-assembler-not "... |
with
lace.Any;
private
with
lace.make_Subject,
lace.make_Observer,
ada.Strings.unbounded;
package chat.Client.local
--
-- Provides a local client.
-- Names must be unique.
--
is
type Item is limited new lace.Any.limited_item
and chat.Client .item with private;
ty... |
package Giza.Bitmap_Fonts.FreeMono24pt7b is
Font : constant Giza.Font.Ref_Const;
private
FreeMono24pt7bBitmaps : aliased constant Font_Bitmap := (
16#73#, 16#9C#, 16#E7#, 16#39#, 16#CE#, 16#73#, 16#9C#, 16#C6#, 16#30#,
16#84#, 16#21#, 16#08#, 16#00#, 16#00#, 16#00#, 16#03#, 16#BF#, 16#FF#,
16#B8#, 16#FE#,... |
with Ada.Text_IO;
procedure Remove_Characters is
S: String := "upraisers";
use Ada.Text_IO;
begin
Put_Line("Full String: """ & S & """");
Put_Line("Without_First: """ & S(S'First+1 .. S'Last) & """");
Put_Line("Without_Last: """ & S(S'First .. S'Last-1) & """");
Put_Line("Without_Both: """ & S(... |
<?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... |
generic
type Character_Type is (<>); -- Character, Wide_Character, Wide_Wide_Character (or whatever)
type String_Type is array(Positive range <>) of Character_Type;
Carriage_Return: in Character_Type; -- CR in the corresponding type
Line_Feed: in Character_Type; -- LF in the corresponding type
type Coder_Base is ... |
with Test_Solution; use Test_Solution;
with Ada.Text_IO; use Ada.Text_IO;
package problem_14 is
type Int64 is range -2**63 .. 2**63 - 1;
function Solution_1 return Integer;
procedure Test_Solution_1;
function Get_Solutions return Solution_Case;
end problem_14;
|
-- { dg-do compile }
package Atomic3 is
type Four_Bits is mod 2**4;
type Fourteen_Bits is mod 2**14;
type Twenty_Eight_Bits is mod 2**28;
type Rec1 (Mode : Boolean := True) is record
Reserved : Four_Bits;
case Mode is
when True =>
High_Part : Fourteen_Bits;
Low_... |
------------------------------------------------------------------------------
-- --
-- GNAT EXAMPLE --
-- --
-- ... |
with Command_Line; use Command_Line;
with SPARK.Text_IO; use SPARK.Text_IO;
with Error_Reporter;
with Scanners;
with Tokens;
procedure Lox with SPARK_Mode is
procedure Run (Source : String) with
Pre => Source'First >= 1 and then Source'Last < Integer'Last;
procedure Run_File (Path : String);
procedure Run... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
-- 14 package Asis.Iterator
-------------------------------------------------------------------------------
---------------------------------------------------... |
pragma License (Unrestricted);
package GNAT.Command_Line is
-- Parsing
type Opt_Parser is null record;
Command_Line_Parser : constant Opt_Parser := (null record);
procedure Initialize_Option_Scan (
Switch_Char : Character := '-';
Stop_At_First_Non_Switch : Boolean := False;
Section_De... |
-- Copyright 2016-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.
--
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- util-listeners-tests -- Unit tests for listeners
-- Copyright (C) 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 ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- This file is covered by the Internet Software Consortium (ISC) License
-- Reference: ../License.txt
with Utilities;
with Ada.Characters.Latin_1;
with Ada.Directories;
with Parameters;
with Unix;
package body Port_Specification.Transform is
package UTL renames Utilities;
package LAT renames Ada.Characters.... |
with impact.d2.orbs.Shape,
impact.d2.Math,
interfaces.c.Pointers;
package impact.d2.orbs.Distance
--
--
--
is
use impact.d2.Math;
type b2Vec2_array is array (uint32 range <>) of aliased b2Vec2;
package b2Vec2_Pointers is new Interfaces.C.Pointers (uint32, b2Vec2,
... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
with Ada.Text_IO;
use Ada.Text_IO;
package body VisitFailurePackage is
procedure RaiseVisitFailure(msg: String) is
begin
put_line(msg);
raise VisitFailure;
end RaiseVisitFailure;
end VisitFailurePackage;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
with ada.text_io, ada.integer_text_io;
use ada.text_io, ada.integer_text_io;
procedure sacar_ficha is
begin
put("Ficha sale");
end sacar_ficha; |
--
-- Copyright 2021 (C) Holger Rodriguez
--
-- SPDX-License-Identifier: BSD-3-Clause
--
package body Evaluate.LEDs is
--------------------------------------------------------------------------
-- Check functions for the input received
-- Those functions set the global variables to the received value
-... |
-------------------------------------------------------------------------------
-- --
-- Coffee Clock --
-- --
... |
-----------------------------------------------------------------------
-- openapi-streams-forms -- x-www-form-urlencoded streams
-- Copyright (C) 2018, 2022 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may no... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- C99004A.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... |
----------------------------------------------------------------
-- ZLib for Ada thick binding. --
-- --
-- Copyright (C) 2002-2003 Dmitriy Anisimkov --
-- ... |
-- Institution: Technische Universität München
-- Department: Realtime Computer Systems (RCS)
-- Project: StratoX
--
-- Authors: Emanuel Regnath (emanuel.regnath@tum.de)
with HIL.Devices;
-- @summary
-- Target-independent specification for HIL of SPI
package HIL.SPI with
Spark_Mode => On
-- Abstra... |
-- This file is generated by SWIG. Please do not modify by hand.
--
with Interfaces;
with Interfaces.C;
with Interfaces.C.Pointers;
package xcb.xcb_glx_get_floatv_request_t is
-- Item
--
type Item is record
major_opcode : aliased Interfaces.Unsigned_8;
minor_opcode : aliased Interfaces.Unsigned_... |
-- CZ1103A.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.
-- Unlimi... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2019 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... |
-- Ascon.Load_Store
-- Functions to load and store 64-bit words from Storage_Array in Big Endian
-- format. Currently these are not optimised for the case where the machine
-- itself is BE or has dedicated assembly instructions that can perform the
-- conversion. Some compilers may have a peephole optimisation for the... |
------------------------------------------------------------------------------
-- --
-- Unicode Utilities --
-- --
-- ... |
generic
type Element_Type is private;
package Generic_Stack is
type T is limited private;
procedure Push( Stack: in out T; Element: in Element_Type );
procedure Pop( Stack: in out T; Element: out Element_Type );
procedure Peek( Stack: in out T; Element: out Element_Type );
function Empty( Sta... |
pragma License (Unrestricted);
-- runtime unit for ZCX (or SjLj, or Win64 SEH)
with C.unwind;
package System.Unwind.Representation is
pragma Preelaborate;
subtype Unwind_Exception_Class is C.unwind.Unwind_Exception_Class;
-- (a-exexpr-gcc.adb)
GNAT_Exception_Class : constant := 16#474e552d41646100#;
... |
------------------------------------------------------------------------------
-- --
-- GNAT RUNTIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2015, Natacha Porté --
-- --
-- Permission to use, copy, modify, and distribute this software for any --
-- p... |
--
-- Copyright (C) 2013 Reto Buerki <reet@codelabs.ch>
-- Copyright (C) 2013 Adrian-Ken Rueegsegger <ken@codelabs.ch>
-- 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. Redistrib... |
<?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... |
with Ada.Text_IO; use Ada.Text_IO;
procedure Oups is
V : Integer := 0;
begin
if 1 / V = 1 then New_Line; end if;
end;
|
with Ada.Execution_Time,
Ada.Exceptions,
Ada.Long_Long_Integer_Text_IO,
Ada.Real_Time,
Ada.Text_IO;
with Utils;
procedure Main is
use Ada.Execution_Time,
Ada.Real_Time,
Ada.Text_IO;
use Utils;
type Lanternfish_Life_Span is range -1 .. 8;
subtype Long_Long_Natural is Long... |
-- Lumen.Binary.IO -- Read and write streams of binary data from external
-- files.
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this software for any
-- purpo... |
-- from ACATS 2.6 tests
package Switches is -- Switches
type Toggle is tagged private; ---------------------------------- Toggle
procedure Flip ( It : in out Toggle );
private
type Toggle is tagged record
On : Boolean := False;
end record;
end Switches;
|
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- Lumen.Binary.Endian.Shorts -- Byte re-ordering routines for "short"
-- (16-bit) values
--
--
-- Chip Richards, NiEstu, Phoenix AZ, Summer 2010
-- This code is covered by the ISC License:
--
-- Copyright © 2010, NiEstu
--
-- Permission to use, copy, modify, and/or distribute this softw... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- AWA.Jobs.Models -- AWA.Jobs.Models
-----------------------------------------------------------------------
-- File generated by ada-gen DO NOT MODIFY
-- Template used: templates/model/package-spec.xhtml
-- Ada Generator: https://ada-gen.goog... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- Copyright (c) 2006-2013, Maxim Reznik
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
--
-- * Redistr... |
-----------------------------------------------------------------------
-- ADO Statements -- Database statements
-- Copyright (C) 2009, 2010, 2011, 2012, 2013, 2015, 2018, 2019 Stephane Carrez
-- Written by Stephane Carrez (Stephane.Carrez@gmail.com)
--
-- Licensed under the Apache License, Version 2.0 (the "Licens... |
-- This spec has been automatically generated from STM32F105xx.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
with System;
package STM32.FLASH is
pragma Preelaborate;
---------------
-- Registers --
---------------
------------------
-- ACR_Register --
------------------
... |
------------------------------------------------------------------------------
-- --
-- Internet Protocol Suite Package --
-- --
-- -... |
package Tkmrpc.Operation_Handlers.Cfg is
end Tkmrpc.Operation_Handlers.Cfg;
|
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
-- ////////////////////////////////////////////////////////////
-- //
-- // SFML - Simple and Fast Multimedia Library
-- // Copyright (C) 2007-2009 Laurent Gomila (laurent.gom@gmail.com)
-- //
-- // This software is provided 'as-is', without any express or implied warranty.
-- // In no event will the authors be held li... |
package TLSF.Proof.Test.Util with SPARK_Mode is
procedure Test_Util;
end TLSF.Proof.Test.Util;
|
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
WITH Ada.Text_Io; USE Ada.Text_Io;
procedure Ver_Contiene_Caracter is
-- salida: 7 booleanos(SE)
-- post: corresponden a cada uno de los casos de pruebas dise�ados.
-- pre: { True }
function Contiene_Caracter (
S : String;
L : Character)
return Boolean is
-- EJERCICIO 3- ESPECIFIC... |
pragma License (Unrestricted);
-- implementation unit required by compiler
with System.Long_Long_Integer_Types;
package System.Img_Int is
pragma Pure;
-- required for Integer'Image by compiler (s-imgint.ads)
procedure Image_Integer (
V : Integer;
S : in out String;
P : out Natural);
--... |
<?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="... |
-------------------------------------------------------------------------------
-- 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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-- 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.
with AUnit.Test_Fixtures;
package Bases.Ca... |
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... |
-----------------------------------------------------------------------
-- awa-changelogs-modules -- Module changelogs
-- Copyright (C) 2014 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 e... |
-- C92002A.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... |
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
------------------------------------------------------------------------------
-- --
-- Generic HEX String Handling Package --
-- --
-- -... |
package impact.d2.orbs.Joint.weld
--
--
--
is
-- #ifndef B2_WELD_JOINT_H
-- #define B2_WELD_JOINT_H
--
-- #include <Box2D/Dynamics/Joints/b2Joint.h>
--
-- /// Weld joint definition. You need to specify local anchor points
-- /// where they are attached and the relative body angle. The position
-- /// of the anch... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-- Copyright (c) 2019 Maxim Reznik <reznikmm@gmail.com>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
package body Program.Nodes.Single_Task_Declarations is
function Create
(Task_Token : not null Program.Lexical_Elements
... |
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... |
-----------------------------------------------------------------------
-- ADO Statements -- Database statements
-- Copyright (C) 2009, 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 n... |
-- Generated by gperfhash
package Mysql.Perfect_Hash is
pragma Preelaborate;
function Hash (S : String) return Natural;
-- Returns true if the string <b>S</b> is a keyword.
function Is_Keyword (S : in String) return Boolean;
type Name_Access is access constant String;
type Keyword_Array is array... |
package body serial is
procedure Initialize_UART_GPIO is
begin
Enable_Clock (USART_1);
Enable_Clock (RX_Pin & TX_Pin);
Configure_IO
(RX_Pin & TX_Pin,
(Mode => Mode_AF,
AF => GPIO_AF_USART1_7,
Resistors => Pull_Up,
AF_Sp... |
-- C52101A.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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.