Dataset Preview
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Job has been terminated due to a temporary spike in resource usage and may be restarted later.
Error code: JobManagerCrashedError
Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
content string | language string | path string | repo_id string | _source string | _tokens int64 |
|---|---|---|---|---|---|
<reponame>luk9400/nsi<gh_stars>0
package body Bubble with SPARK_Mode is
procedure Sort (A : in out Arr) is
Tmp : Integer;
begin
Outer: for I in reverse A'First .. A'Last - 1 loop
Inner: for J in A'First .. I loop
if A(J) > A(J + 1) then
Tmp := A(J);
A(J) := A(J + 1);
... | bigcode/starcoderdata | 173 | |||
<filename>components/src/screen/ST7735R/st7735r.adb
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... | bigcode/starcoderdata | 1,250 | |||
<reponame>best08618/asylo
-- C38002A.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 contai... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
-----------------------------------------------------------------------
-- awa-users-filters -- Specific filters for authentication and key verification
-- Copyright (C) 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use t... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
-----------------------------------------------------------------------
-- awa-counters-beans -- Counter bean definition
-- Copyright (C) 2015, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the... | bigcode/starcoderdata | 787 | |||
With
Ada.Streams,
Ada.Strings.Less_Case_Insensitive,
Ada.Strings.Equal_Case_Insensitive,
Ada.Containers.Indefinite_Ordered_Maps;
Package INI with Preelaborate, Elaborate_Body is
Type Value_Type is ( vt_String, vt_Float, vt_Integer, vt_Boolean );
Type Instance(Convert : Boolean) is private;
Function Exis... | bigcode/starcoderdata | 1,250 | |||
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const4.ads
with Deferred_Const4_Pkg;
package Deferred_Const4 is
type R1 is tagged record
I1 : Integer;
end record;
type R2 is new R1 with record
I2 : Integer;
end record;
package My_Q is new Deferred_Const4_Pkg (R2);
function F retu... | bigcode/starcoderdata | 88 | |||
-----------------------------------------------------------------------
-- druss-commands-devices -- Print information about the devices
-- Copyright (C) 2017, 2018, 2019, 2021 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file e... | bigcode/starcoderdata | 1,250 | |||
<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2018, <NAME> --
-- -... | bigcode/starcoderdata | 973 | |||
with Common_Formal_Containers; use Common_Formal_Containers;
package afrl.impact.ImpactAutomationRequest.SPARK_Boundary with SPARK_Mode is
pragma Annotate (GNATprove, Terminating, SPARK_Boundary);
function Get_EntityList_From_TrialRequest
(Request : ImpactAutomationRequest) return Int64_Vect
with Glob... | bigcode/starcoderdata | 161 | |||
<reponame>RyanMcCarl/.emacs.d
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- ... | bigcode/starcoderdata | 1,250 | |||
--------------------------------------------------------------------------------
-- MIT License
--
-- Copyright (c) 2020 <NAME>
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without r... | bigcode/starcoderdata | 1,250 | |||
pragma Ada_2012;
pragma Style_Checks (Off);
with Interfaces.C; use Interfaces.C;
with Interfaces.C.Extensions;
package color_h is
-- BSD 3-Clause License
-- *
-- * Copyright © 2008-2021, Jice and the libtcod contributors.
-- * All rights reserved.
-- *
-- * Redistribution and use in source and binary for... | bigcode/starcoderdata | 1,250 | |||
-- This spec has been automatically generated from STM32WB55x.svd
pragma Restrictions (No_Elaboration_Code);
pragma Ada_2012;
pragma Style_Checks (Off);
with HAL;
with System;
package STM32_SVD.RCC is
pragma Preelaborate;
---------------
-- Registers --
---------------
subtype CR_MSIRANGE_Field is ... | bigcode/starcoderdata | 1,250 | |||
<reponame>optikos/oasis
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Names;
with Program.Elements.... | bigcode/starcoderdata | 1,078 | |||
-----------------------------------------------------------------------
-- EL.Contexts.TLS -- EL context and Thread Local Support
-- Copyright (C) 2015 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with ... | bigcode/starcoderdata | 475 | |||
<gh_stars>0
with Ada.Containers.Functional_Maps;
with Ada.Containers.Functional_Vectors;
with Common; use Common;
with Ada.Containers; use Ada.Containers;
generic
type Element_Type is private;
package Bounded_Stack with SPARK_Mode is
Capacity : constant Integer := 200;
Empty : constant Integer := 0;
s... | bigcode/starcoderdata | 403 | |||
<filename>src/GBA.Audio.ads
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
package GBA.Audio is
type Sweep_Shift_Type is range 0 .. 7;
type Frequency_Direction is
( Increasing
, Decreasing
);
for Frequency_Direction use
( Increasing => 0
, Decreasing => 1
);
... | bigcode/starcoderdata | 530 | |||
<reponame>optikos/oasis<gh_stars>0
-- Copyright (c) 2019 <NAME> <<EMAIL>>
--
-- SPDX-License-Identifier: MIT
-- License-Filename: LICENSE
-------------------------------------------------------------
with Program.Elements.Declarations;
with Program.Lexical_Elements;
with Program.Elements.Defining_Identifiers;
with ... | bigcode/starcoderdata | 825 | |||
<filename>gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c5/c54a42e.ada
-- C54A42E.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
-- unlimi... | bigcode/starcoderdata | 1,250 | |||
<filename>orka/src/orka/interface/orka-resources-loader.ads
-- SPDX-License-Identifier: Apache-2.0
--
-- Copyright (c) 2018 onox <<EMAIL>>
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with the License.
-- You may obtain a copy of the Licens... | bigcode/starcoderdata | 536 | |||
<filename>dcf/src/dcf-zip-compress.ads
-- SPDX-License-Identifier: MIT
--
-- Copyright (c) 2007 - 2018 <NAME> (Maintainer of the Ada version)
-- SWITZERLAND
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to... | bigcode/starcoderdata | 968 | |||
-- -*- Mode: Ada -*-
-- Filename : last_chance_handler.ads
-- Description : Definition of the exception handler for the kernel.
-- Author : <NAME>
-- Created On : Thu Jun 14 12:06:21 2012
-- Licence : See LICENCE in the root directory.
with System;
pro... | bigcode/starcoderdata | 128 | |||
package body getter.macros is
function get return character is
c : character;
procedure rem_var (cur : in params_t.cursor) is
begin
environment.delete(environment_t.key(params_t.element(cur)));
end rem_var;
begin
if current_called.last > unb.length(current_macros.code) then
params_t... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- GNAT RUN-TIME COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
<reponame>LaudateCorpus1/RosettaCodeData
with Ada.Text_IO;
procedure Test_For_Primes is
type Pascal_Triangle_Type is array (Natural range <>) of Long_Long_Integer;
function Calculate_Pascal_Triangle (N : in Natural) return Pascal_Triangle_Type is
Pascal_Triangle : Pascal_Triangle_Type (0 .. N);
begin
... | bigcode/starcoderdata | 641 | |||
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
<filename>src/convtest/aviotest0.adb
with Measure_Units; use Measure_Units;
with Ada.Text_IO; use Ada.Text_IO;
procedure Aviotest0 is
Avg_Speed : Kn := 350.0;
Travel_Time : Duration := 2.0 * 3600.0; -- two hours
CR : Climb_Rate := 1500.0;
Climb_Time : Duration := 60.0 * 20; -- 2 minutes
Alt0... | bigcode/starcoderdata | 254 | |||
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2017, AdaCore --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
<filename>resources/scripts/archive/arquivo.ads
-- Copyright 2021 <NAME>. 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_limi... | bigcode/starcoderdata | 259 | |||
<gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2020, <NAME> --
-- -... | bigcode/starcoderdata | 1,250 | |||
<filename>source/asis/asis-ada_environments-containers.adb
------------------------------------------------------------------------------
-- G E L A A S I S --
-- ASIS implementation for Gela project, a portable Ada compiler --
-- ... | bigcode/starcoderdata | 1,216 | |||
<reponame>LaudateCorpus1/RosettaCodeData
type T is limited private; -- inner structure is hidden
X, Y: T;
B: Boolean;
-- The following operations do not exist:
X := Y; -- illegal (cannot be compiled
B := X = Y; -- illegal | bigcode/starcoderdata | 56 | |||
<filename>source/asis/spec/interfaces-c.ads
------------------------------------------------------------------------------
-- 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... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... | bigcode/starcoderdata | 550 | |||
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, p... | bigcode/starcoderdata | 1,250 | |||
<gh_stars>0
with Libadalang.Analysis; use Libadalang.Analysis;
with Utils.Char_Vectors; use Utils.Char_Vectors;
with Utils.Command_Lines; use Utils.Command_Lines;
with Utils.Tools; use Utils.Tools;
with Pp.Scanner; use Pp;
package JSON_Gen.Actions is
type Json_Gen_Tool is new Tool_State with private;
procedure ... | bigcode/starcoderdata | 352 | |||
-- { dg-do compile }
procedure Atomic2 is
type Big is array (1..4) of Integer;
type Arr is array (1..10) of Big;
pragma Atomic_Components (Arr); -- { dg-warning "cannot be guaranteed" }
begin
null;
end; | bigcode/starcoderdata | 53 | |||
<reponame>fuzzysloth/ada-awa
-----------------------------------------------------------------------
-- awa-storages-servlets -- Serve files saved in the storage service
-- Copyright (C) 2012, 2016 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you ma... | bigcode/starcoderdata | 1,250 | |||
<filename>3-mid/impact/source/3d/collision/shapes/impact-d3-shape-concave.ads
with impact.d3.Shape;
with impact.d3.triangle_Callback;
package impact.d3.Shape.concave
--
-- The impact.d3.Shape.concave class provides an interface for non-moving (static) concave shapes.
-- It has been implemented by the impact.d3.Sha... | bigcode/starcoderdata | 406 | |||
with Ada.Text_IO, Miller_Rabin;
procedure Nemesis is
type Number is range 0 .. 2**40-1; -- sufficiently large for the task
function Is_Prime(N: Number) return Boolean is
package MR is new Miller_Rabin(Number); use MR;
begin
return MR.Is_Prime(N) = Probably_Prime;
end Is_Prime;
begin
for P... | bigcode/starcoderdata | 327 | |||
pragma License (Restricted);
--
-- Copyright (C) 2020 <NAME> All Rights Reserved.
--
-- 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 fr... | bigcode/starcoderdata | 109 | |||
<filename>llvm-gcc-4.2-2.9/gcc/ada/g-altcon.adb
------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- ... | bigcode/starcoderdata | 1,250 | |||
-- -----------------------------------------------------------------------------
-- smk, the smart make (http://lionel.draghi.free.fr/smk/)
-- © 2018, 2019 <NAME> <<EMAIL>>
-- SPDX-License-Identifier: APSL-2.0
-- -----------------------------------------------------------------------------
-- Licensed under the Apache ... | bigcode/starcoderdata | 1,046 | |||
-----------------------------------------------------------------------
-- awa-users-model -- User management module
-- Copyright (C) 2009, 2010, 2011, 2012 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance ... | bigcode/starcoderdata | 1,096 | |||
-- Copyright (c) 2021 <NAME>
-- zlib License -- see LICENSE for details.
with GBA.Input;
use GBA.Input;
package GBA.Input.Buffered is
procedure Update_Key_State;
function Is_Key_Down (K : Key) return Boolean with Inline_Always;
function Are_Any_Down (F : Key_Flags) return Boolean with Inline_Always;
funct... | bigcode/starcoderdata | 356 | |||
with Ada.Containers.Doubly_Linked_Lists;
limited with Rules;
package Rule_Lists is
type Rule_Access is access all Rules.Rule_Record;
package Lists is
new Ada.Containers.Doubly_Linked_Lists (Element_Type => Rule_Access);
-- function Element (List : Lists.List) return Natural;
end Rule_Lists; | bigcode/starcoderdata | 77 | |||
<gh_stars>0
-----------------------------------------------------------------------
-- asf -- XHTML Reader
-- Copyright (C) 2009, 2010, 2011, 2012, 2013 <NAME>
-- Written by <NAME> (<EMAIL>)
--
-- Licensed under the Apache License, Version 2.0 (the "License");
-- you may not use this file except in compliance with... | bigcode/starcoderdata | 1,250 | |||
------------------------------------------------------------------------------
-- --
-- Matreshka Project --
-- --
-- ... | bigcode/starcoderdata | 1,250 | |||
with Ada.Text_IO; use Ada.Text_IO;
procedure Pre_Post is
package P is
type Int_Array is array (Integer range <>) of Integer;
-- Increment the input (obvious)
procedure Increment (A : in out Integer)
with
Post => A = A'Old + 1;
-- A "limited" negate (nonsense...)
proc... | bigcode/starcoderdata | 1,023 | |||
<filename>processor/processor-eclipse_fpu_p.adb<gh_stars>1-10
-- MIT License
-- Copyright (c) 2021 <NAME>
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including w... | bigcode/starcoderdata | 1,250 |
End of preview.
No dataset card yet
- Downloads last month
- 10