Dataset Preview
Viewer
hexsha (string)size (int64)ext (string)lang (string)max_stars_repo_path (string)max_stars_repo_name (string)max_stars_repo_head_hexsha (string)max_stars_repo_licenses (sequence)max_stars_count (float64)max_stars_repo_stars_event_min_datetime (string)max_stars_repo_stars_event_max_datetime (string)max_issues_repo_path (string)max_issues_repo_name (string)max_issues_repo_head_hexsha (string)max_issues_repo_licenses (sequence)max_issues_count (float64)max_issues_repo_issues_event_min_datetime (string)max_issues_repo_issues_event_max_datetime (string)max_forks_repo_path (string)max_forks_repo_name (string)max_forks_repo_head_hexsha (string)max_forks_repo_licenses (sequence)max_forks_count (float64)max_forks_repo_forks_event_min_datetime (string)max_forks_repo_forks_event_max_datetime (string)content (string)avg_line_length (float64)max_line_length (int64)alphanum_fraction (float64)
"c5c57c3eb4cda10dbbfad4375db413e1fa0c2e2d"
6,121
"adb"
"Ada"
"testsuite/amf/TN-222/test_222.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
24
"2016-11-29T06:59:41.000Z"
"2021-08-30T11:55:16.000Z"
"testsuite/amf/TN-222/test_222.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
2
"2019-01-16T05:15:20.000Z"
"2019-02-03T10:03:32.000Z"
"testsuite/amf/TN-222/test_222.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
4
"2017-07-18T07:11:05.000Z"
"2020-06-21T03:02:25.000Z"
"------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Ada Modeling Framework -- -- -- -- Testsuite Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2012, Vadim Godunko <vgodunko@gmail.com> -- -- 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 source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ -- Check whether 'namespace' and 'owner' attributes of UML::Operation class -- are computed properly. ------------------------------------------------------------------------------ with League.Strings; with AMF.Facility; with AMF.Factories.UML_Factories; with AMF.UML.Classes; with AMF.UML.Elements; with AMF.UML.Namespaces; with AMF.UML.Packageable_Elements.Collections; with AMF.UML.Packages; with AMF.UML.Operations.Collections; with AMF.URI_Stores; with AMF.Internals.Modules.UML_Module; pragma Unreferenced (AMF.Internals.Modules.UML_Module); procedure Test_222 is use type AMF.UML.Elements.UML_Element_Access; use type AMF.UML.Namespaces.UML_Namespace_Access; function "+" (Item : Wide_Wide_String) return League.Strings.Universal_String renames League.Strings.To_Universal_String; UML_URI : constant League.Strings.Universal_String := +"http://www.omg.org/spec/UML/20100901"; Store : AMF.URI_Stores.URI_Store_Access; UML_Factory : AMF.Factories.UML_Factories.UML_Factory_Access; The_Package : AMF.UML.Packages.UML_Package_Access; The_Class : AMF.UML.Classes.UML_Class_Access; The_Operation : AMF.UML.Operations.UML_Operation_Access; The_Namespace : AMF.UML.Namespaces.UML_Namespace_Access; Packaged_Element : AMF.UML.Packageable_Elements.Collections.Set_Of_UML_Packageable_Element; Owned_Operation : AMF.UML.Operations.Collections.Ordered_Set_Of_UML_Operation; The_Element : AMF.UML.Elements.UML_Element_Access; begin -- Initialize facility. AMF.Facility.Initialize; -- Create URI store. Store := AMF.Facility.Create_URI_Store (+"local:///test"); -- Lookup for factory. UML_Factory := AMF.Factories.UML_Factories.UML_Factory_Access (Store.Get_Factory (UML_URI)); -- Create elements. The_Package := UML_Factory.Create_Package; The_Class := UML_Factory.Create_Class; The_Operation := UML_Factory.Create_Operation; -- Link elements. Packaged_Element := The_Package.Get_Packaged_Element; Packaged_Element.Add (The_Class); Owned_Operation := The_Class.Get_Owned_Operation; Owned_Operation.Add (The_Operation); -- Check value of 'namespace' attribute. The_Namespace := The_Operation.Get_Namespace; if The_Namespace = null then raise Program_Error; end if; if The_Namespace /= AMF.UML.Namespaces.UML_Namespace_Access (The_Class) then raise Program_Error; end if; -- Check value of 'owner' attribute. The_Element := The_Operation.Get_Owner; if The_Element = null then raise Program_Error; end if; if The_Element /= AMF.UML.Elements.UML_Element_Access (The_Class) then raise Program_Error; end if; end Test_222; "
44.035971
79
0.53586
"4acae35ca5826e4357dbf7002a1b75c832ff22eb"
2,167
"adb"
"Ada"
"Ada/DataStructures/List/generic_list.adb"
"egustafson/sandbox"
"9804e966347b33558b0497a04edb1a591d2d7773"
[ "Apache-2.0" ]
2
"2019-09-27T21:25:26.000Z"
"2019-12-29T11:26:54.000Z"
"Ada/DataStructures/List/generic_list.adb"
"egustafson/sandbox"
"9804e966347b33558b0497a04edb1a591d2d7773"
[ "Apache-2.0" ]
7
"2020-08-11T17:32:14.000Z"
"2020-08-11T17:32:39.000Z"
"Ada/DataStructures/List/generic_list.adb"
"egustafson/sandbox"
"9804e966347b33558b0497a04edb1a591d2d7773"
[ "Apache-2.0" ]
2
"2016-07-18T10:55:50.000Z"
"2020-08-19T01:46:08.000Z"
"-- generic_list.adb -*- Ada -*- -- -- This package defines a generic list and list iterator. -- -- Author: Eric Gustafson -- Date: 25 August 1998 -- -- ------------------------------------------------------------ -- -- $Revision$ -- -- $Log$ -- ------------------------------------------------------------ package body Generic_List is -- ----- List_Type Methods --------------------------------- procedure List_Add( List : in out List_Type; Element : in Element_Type ) is begin if List.Num_Elements = List.List'Last then declare New_List : Element_Array_Access := new Element_Array(1..List.List'Last+3); begin New_List(List.List'Range) := List.List.all; -- Deallocate list.list access List.List := New_List; end; end if; List.Num_Elements := List.Num_Elements + 1; List.List(List.Num_Elements) := Element; end List_Add; -- --------------------------------------------------------- function List_New_Iterator( List : in List_Type ) return List_Iterator_Type is List_Iterator : List_Iterator_Type; begin List_Iterator.List := List.List; List_Iterator.Num_Elements := List.Num_Elements; return List_Iterator; end List_New_Iterator; -- ----- List_Iterator_Type Methods ------------------------ function Is_Next( List_Iterator : in List_Iterator_Type ) return Boolean is begin if List_Iterator.Index <= List_Iterator.Num_Elements then return True; else return False; end if; end Is_Next; -- --------------------------------------------------------- procedure Get_Next( List_Iterator : in out List_Iterator_Type; Next_Element : out Element_Type ) is begin if not Is_Next( List_Iterator ) then raise Iterator_Bound_Error; end if; Next_Element := List_Iterator.List(List_Iterator.Index); List_Iterator.Index := List_Iterator.Index + 1; end Get_Next; end Generic_List; "
23.813187
67
0.515459
"4a3b54b387d8c0080d29c3585b9ba5ecb0574951"
3,904
"adb"
"Ada"
"source/web/servlet/http/servlet-http_responses.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
null
null
null
"source/web/servlet/http/servlet-http_responses.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
2
"2019-01-16T05:15:20.000Z"
"2019-02-03T10:03:32.000Z"
"source/web/servlet/http/servlet-http_responses.adb"
"svn2github/matreshka"
"9d222b3ad9da508855fb1f5adbe5e8a4fad4c530"
[ "BSD-3-Clause" ]
null
null
null
"------------------------------------------------------------------------------ -- -- -- Matreshka Project -- -- -- -- Web Framework -- -- -- -- Runtime Library Component -- -- -- ------------------------------------------------------------------------------ -- -- -- Copyright © 2015, Vadim Godunko <vgodunko@gmail.com> -- -- 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 source code must retain the above copyright -- -- notice, this list of conditions and the following disclaimer. -- -- -- -- * Redistributions in binary form must reproduce the above copyright -- -- notice, this list of conditions and the following disclaimer in the -- -- documentation and/or other materials provided with the distribution. -- -- -- -- * Neither the name of the Vadim Godunko, IE nor the names of its -- -- contributors may be used to endorse or promote products derived from -- -- this software without specific prior written permission. -- -- -- -- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS -- -- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT -- -- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR -- -- A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT -- -- HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, -- -- SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED -- -- TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR -- -- PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF -- -- LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING -- -- NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS -- -- SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -- -- -- ------------------------------------------------------------------------------ -- $Revision$ $Date$ ------------------------------------------------------------------------------ package body Servlet.HTTP_Responses is ---------------- -- Get_Header -- ---------------- function Get_Header (Self : in out HTTP_Servlet_Response'Class; Name : League.Strings.Universal_String) return League.Strings.Universal_String is Aux : constant League.String_Vectors.Universal_String_Vector := Self.Get_Headers (Name); begin if Aux.Is_Empty then return League.Strings.Empty_Universal_String; else return Aux (1); end if; end Get_Header; end Servlet.HTTP_Responses; "
56.57971
78
0.421619
"cb36031987e82162d2930c68a37a0d1fbaf33af0"
256,401
"adb"
"Ada"
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-alveop.adb"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-alveop.adb"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/g-alveop.adb"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"------------------------------------------------------------------------------\n-- (...TRUNCATED)
23.290126
79
0.62632
"cb6137cbc29e2bb5e571d48fcf4adb94292097f0"
9,386
"ads"
"Ada"
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngelfu.ads"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngelfu.ads"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"support/MinGW/lib/gcc/mingw32/9.2.0/adainclude/a-ngelfu.ads"
"orb-zhuchen/Orb"
"6da2404b949ac28bde786e08bf4debe4a27cd3a0"
[ "CNRI-Python-GPL-Compatible", "MIT" ]
null
null
null
"------------------------------------------------------------------------------\n-- (...TRUNCATED)
45.563107
79
0.548476
"d02b96e0e795bf8018baecc88a0b8bfeb10e9667"
6,076
"ads"
"Ada"
"gcc-gcc-7_3_0-release/gcc/ada/s-linux-android.ads"
"best08618/asylo"
"5a520a9f5c461ede0f32acc284017b737a43898c"
[ "Apache-2.0" ]
7
"2020-05-02T17:34:05.000Z"
"2021-10-17T10:15:18.000Z"
"gcc-gcc-7_3_0-release/gcc/ada/s-linux-android.ads"
"best08618/asylo"
"5a520a9f5c461ede0f32acc284017b737a43898c"
[ "Apache-2.0" ]
null
null
null
"gcc-gcc-7_3_0-release/gcc/ada/s-linux-android.ads"
"best08618/asylo"
"5a520a9f5c461ede0f32acc284017b737a43898c"
[ "Apache-2.0" ]
2
"2020-07-27T00:22:36.000Z"
"2021-04-01T09:41:02.000Z"
"------------------------------------------------------------------------------\n-- (...TRUNCATED)
46.738462
79
0.517775
"d04f734db6a721516e67a68ca0d500598ef5a892"
4,225
"adb"
"Ada"
"src/verhoeff.adb"
"damaki/Verhoeff"
"e68d8dbebea75ef0b505776ac6125a3cd2449c30"
[ "MIT" ]
null
null
null
"src/verhoeff.adb"
"damaki/Verhoeff"
"e68d8dbebea75ef0b505776ac6125a3cd2449c30"
[ "MIT" ]
null
null
null
"src/verhoeff.adb"
"damaki/Verhoeff"
"e68d8dbebea75ef0b505776ac6125a3cd2449c30"
[ "MIT" ]
null
null
null
"-------------------------------------------------------------------------------\n-- Copyright (c) 2(...TRUNCATED)
37.389381
82
0.552899
"d0122ef5d00e0cc74da47349857b6d59ca84fe8d"
57,520
"adb"
"Ada"
"src/model/search-models.adb"
"stcarrez/ada-search"
"286dda8fbdd7fb0cd5e447347f92a77e34615089"
[ "Apache-2.0" ]
9
"2020-06-28T11:00:30.000Z"
"2021-11-30T21:38:58.000Z"
"src/model/search-models.adb"
"stcarrez/ada-search"
"286dda8fbdd7fb0cd5e447347f92a77e34615089"
[ "Apache-2.0" ]
null
null
null
"src/model/search-models.adb"
"stcarrez/ada-search"
"286dda8fbdd7fb0cd5e447347f92a77e34615089"
[ "Apache-2.0" ]
null
null
null
"-----------------------------------------------------------------------\n-- Search.Models -- Searc(...TRUNCATED)
34.299344
88
0.583171
"d0ca185a85f138982848ac8bfe46160a4d3d842b"
626
"ads"
"Ada"
"software/modules/buildinfo.ads"
"TUM-EI-RCS/StratoX"
"5fdd04e01a25efef6052376f43ce85b5bc973392"
[ "BSD-3-Clause" ]
12
"2017-06-08T14:19:57.000Z"
"2022-03-09T02:48:59.000Z"
"software/modules/buildinfo.ads"
"TUM-EI-RCS/StratoX"
"5fdd04e01a25efef6052376f43ce85b5bc973392"
[ "BSD-3-Clause" ]
6
"2017-06-08T13:13:50.000Z"
"2020-05-15T09:32:43.000Z"
"software/modules/buildinfo.ads"
"TUM-EI-RCS/StratoX"
"5fdd04e01a25efef6052376f43ce85b5bc973392"
[ "BSD-3-Clause" ]
3
"2017-06-30T14:05:06.000Z"
"2022-02-17T12:20:45.000Z"
"package Buildinfo with SPARK_Mode is\n\n function Compilation_ISO_Date return String -- implement(...TRUNCATED)
31.3
79
0.699681
"c59e8ce19beb67c78540895fbb9bdbb97cf29cda"
1,127
"ads"
"Ada"
"src/arch/socs/stm32f439/soc.ads"
"PThierry/ewok-kernel"
"e9c23cb3fd0afd8378bc27418778e1117d5e16cc"
[ "Apache-2.0" ]
65
"2018-09-26T09:10:11.000Z"
"2022-01-30T21:17:37.000Z"
"src/arch/socs/stm32f439/soc.ads"
"PThierry/ewok-kernel"
"e9c23cb3fd0afd8378bc27418778e1117d5e16cc"
[ "Apache-2.0" ]
22
"2019-04-07T15:15:54.000Z"
"2020-10-15T12:45:54.000Z"
"src/arch/socs/stm32f439/soc.ads"
"PThierry/ewok-kernel"
"e9c23cb3fd0afd8378bc27418778e1117d5e16cc"
[ "Apache-2.0" ]
10
"2018-09-27T09:43:08.000Z"
"2021-01-29T22:50:17.000Z"
"--\n-- Copyright 2018 The wookey project team <wookey@ssi.gouv.fr>\n-- - Ryad Benadjila\n-- (...TRUNCATED)
28.897436
79
0.712511

Dataset Description

A small subset of the-stack dataset, with 87 programming languages, each has 10,000 random samples from the original dataset.

Languages

The dataset contains 87 programming languages:

'ada', 'agda', 'alloy', 'antlr', 'applescript', 'assembly', 'augeas', 'awk', 'batchfile', 'bison', 'bluespec', 'c',
'c++', 'c-sharp', 'clojure', 'cmake', 'coffeescript', 'common-lisp', 'css', 'cuda', 'dart', 'dockerfile', 'elixir',
'elm', 'emacs-lisp','erlang', 'f-sharp', 'fortran', 'glsl', 'go', 'groovy', 'haskell','html', 'idris', 'isabelle', 'java', 
'java-server-pages', 'javascript', 'julia', 'kotlin', 'lean', 'literate-agda', 'literate-coffeescript', 'literate-haskell',
 'lua', 'makefile', 'maple', 'markdown', 'mathematica', 'matlab', 'ocaml', 'pascal', 'perl', 'php', 'powershell', 'prolog',
  'protocol-buffer', 'python', 'r', 'racket', 'restructuredtext', 'rmarkdown', 'ruby', 'rust', 'sas', 'scala', 'scheme', 
  'shell', 'smalltalk', 'solidity', 'sparql', 'sql', 'stan', 'standard-ml', 'stata', 'systemverilog', 'tcl', 'tcsh', 'tex', 
  'thrift', 'typescript', 'verilog', 'vhdl', 'visual-basic', 'xslt', 'yacc', 'zig'

Dataset Structure

# to load go:
from datasets import load_dataset

load_dataset("bigcode/the-stack-smol-xl", data_dir="data/go")
Downloads last month
71
Edit dataset card
Evaluate models HF Leaderboard