id int64 0 30.9k | extension stringclasses 1
value | max_stars_count int64 0 17k | max_stars_repo_name stringlengths 7 106 | max_stars_repo_path stringlengths 5 136 | text stringlengths 9 1M |
|---|---|---|---|---|---|
0 | ada | 0 | luk9400/nsi | list3/task3/c/src/bubble.adb | <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);
... |
1 | ada | 192 | rocher/Ada_Drivers_Library | components/src/screen/ST7735R/st7735r.adb | <filename>components/src/screen/ST7735R/st7735r.adb
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2015-2016, AdaCore --
-- ... |
2 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/ada/acats/tests/c3/c38002a.ada | <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... |
3 | ada | 6 | jonashaggstrom/ada-canopen | examples/stm32f40x/src/app.ads | <filename>examples/stm32f40x/src/app.ads
package App is
procedure Run;
end App;
|
4 | ada | 1 | brucegua/moocos | tools/scitools/conf/understand/ada/ada05/a-cihama.ads | ------------------------------------------------------------------------------
-- --
-- GNAT LIBRARY COMPONENTS --
-- --
-- ... |
5 | ada | 0 | Letractively/ada-awa | awa/src/awa-users-filters.adb | -----------------------------------------------------------------------
-- 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... |
6 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/ada/osint-c.adb | ------------------------------------------------------------------------------
-- --
-- GNAT COMPILER COMPONENTS --
-- --
-- ... |
7 | ada | 3 | daveshields/AdaEd | bugs/bug20.ada | <reponame>daveshields/AdaEd
package p is
type t is private;
end p;
|
8 | ada | 0 | fuzzysloth/ada-awa | awa/plugins/awa-counters/src/awa-counters-beans.ads | -----------------------------------------------------------------------
-- 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... |
9 | ada | 0 | SSOCsoft/Log_Reporter | src/ini.ads | 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... |
10 | ada | 7 | best08618/asylo | gcc-gcc-7_3_0-release/gcc/testsuite/gnat.dg/deferred_const4.ads | <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... |
11 | ada | 2 | stcarrez/bbox-ada-api | tools/druss-commands-ping.adb | -----------------------------------------------------------------------
-- 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... |
12 | ada | 3 | Fabien-Chouteau/AGATE | src/armvx-m/agate-scheduler-context_switch.adb | <gh_stars>1-10
------------------------------------------------------------------------------
-- --
-- Copyright (C) 2017-2018, <NAME> --
-- -... |
13 | ada | 0 | pat-rogers/OpenUxAS | src/ada/src/afrl-impact-impactautomationrequest-spark_boundary.ads | 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... |
14 | ada | 0 | RyanMcCarl/.emacs.d | archive/test/manual/etags/ada-src/2ataspri.ads | <reponame>RyanMcCarl/.emacs.d
------------------------------------------------------------------------------
-- --
-- GNU ADA RUNTIME LIBRARY (GNARL) COMPONENTS --
-- ... |
15 | ada | 1 | zrmyers/VulkanAda | src/vulkan-math/vulkan-math-geometry.ads | --------------------------------------------------------------------------------
-- 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... |
16 | ada | 0 | csb6/libtcod-ada | src/generated/color_h.ads | 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... |
End of preview. Expand in Data Studio
Starcoder Dataset (The Stack - Sub-sampled)
This dataset is derived from the "Starcoder" version of The Stack, a 6.4 TB dataset of permissively licensed source code in 384 programming languages.
This repository contains the data organized into subsets, one for each programming language or data type.
How to Use
You can load any language-specific subset of the data using the datasets library. You must specify the name parameter with the desired language.
For example, to load the Python or Java subsets:
from datasets import load_dataset
# Load the Python subset
python_data = load_dataset("Sam-Shin/starcoder", name="python", split="train")
# Load the C++ subset
cpp_data = load_dataset("Sam-Shin/starcoder", name="cpp", split="train")
# Load the C# subset
csharp_data = load_dataset("Sam-Shin/starcoder", name="c-sharp", split="train")
print(python_data)
- Downloads last month
- 630