Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
project
stringlengths
1
235
source
stringclasses
16 values
language
stringclasses
48 values
content
stringlengths
909
64.8M
fastSOM
cran
R
Package ‘fastSOM’ October 13, 2022 Type Package Version 1.0.1 Date 2019-11-19 Title Fast Calculation of Spillover Measures Imports parallel Description Functions for computing spillover measures, especially spillover tables and spillover indices, as well as their averag...
shadow
ctan
TeX
# The shadow package+ Footnote †: This manual corresponds to shadow.sty v1.3, dated 19 February 2003. <NAME> <EMAIL> 19 February 2003 The command \shabox has the same meaning of the LaTeX command \fbox except for the fact that a "shadow" is added to the bottom and the right side of the box. It computes the right di...
currr
cran
R
Package ‘currr’ February 17, 2023 Title Apply Mapping Functions in Frequent Saving Version 0.1.2 Description Implementations of the family of map() functions with frequent saving of the intermedi- ate results. The contained functions let you start the evaluation of the i...
@types/system-task
npm
JavaScript
[Installation](#installation) === > `npm install --save @types/system-task` [Summary](#summary) === This package contains type definitions for system-task (<https://github.com/leocwlam/system-task>). [Details](#details) === Files were exported from <https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/typ...
re_memory
rust
Rust
Crate re_memory === Run-time memory tracking and profiling. See `AccountingAllocator` and `accounting_allocator`. Re-exports --- * `pub use accounting_allocator::AccountingAllocator;` Modules --- * accounting_allocatorTrack allocations and memory use. * util Structs --- * CountAndSizeNumber of allocation and th...
packagist_lazetime_amazon_advertising_api_php_sdk.jsonl
personal_doc
Unknown
"# Move your business forward\n\n### What brands can learn from a best-selling author who uses Amazo(...TRUNCATED)
ormBigData
cran
R
"Package ‘ormBigData’\n October 14, 2022\nTitle Fitting(...TRUNCATED)
go.opentelemetry.io/collector/config/configauth
go
Go
"README\n [¶](#section-readme)\n---\n\n### Authentication configuration\n\nThis module defines nece(...TRUNCATED)
artificery
hex
Erlang
"Artificery\n===\n\n[![Module Version](https://img.shields.io/hexpm/v/artificery.svg)](https://hex.p(...TRUNCATED)
rusoto_docdb
rust
Rust
"Crate rusoto_docdb\n===\n\nAmazon DocumentDB API documentation\n\nIf you’re using the service, yo(...TRUNCATED)
End of preview. Expand in Data Studio

Dataset Card

This dataset is the code documenation dataset used in StarCoder2 pre-training, and it is also part of the-stack-v2-train-extras descried in the paper.

Dataset Details

Overview

This dataset comprises a comprehensive collection of crawled documentation and code-related resources sourced from various package manager platforms and programming language documentation sites. It focuses on popular libraries, free programming books, and other relevant materials, facilitating research in software development, programming language trends, and documentation analysis.

How to Use it

from datasets import load_dataset

ds = load_dataset("SivilTaram/starcoder2-documentation")

Data Fields

  • project (string): The name or identifier of the project on each platform.
  • source (string): The platform from which the documentation data is sourced.
  • language (string): The identified programming language associated with the project.
  • content (string): The text content of each document, formatted in Markdown.

Related Resources

For additional tools and methods related to converting HTML to Markdown, refer to the GitHub repository: code-html-to-markdown.

Data Sources

  1. Package Managers:

    • npm: Node.js package manager.
    • PyPI: Python Package Index.
    • Go Packages: Go programming language packages.
    • Packagist: PHP package repository.
    • Rubygems: Ruby package manager.
    • Cargo: Rust package manager.
    • CocoaPods: Dependency manager for Swift and Objective-C Cocoa projects.
    • Bower: Front-end package manager.
    • CPAN: Comprehensive Perl Archive Network.
    • Clojars: Clojure library repository.
    • Conda: Package manager for data science and scientific computing.
    • Hex: Package manager for the Elixir programming language.
    • Julia: Package manager for the Julia programming language.
  2. Documentation Websites:

    • A carefully curated list of programming-related websites, including Read the Docs and other well-known resources.
  3. Free Programming Books:

    • Sources from the Free Programming Books project, which promotes the availability of free programming e-books across various languages.

Data Collection Process

  1. Library Retrieval:

    • The process begins by identifying the most popular libraries across the aforementioned platforms using libraries.io.
    • These library names serve as search queries to obtain their respective homepages.
  2. Documentation Extraction:

    • Homepage Links: Documentation files are crawled from the retrieved homepage links. If no dedicated documentation is found, README or equivalent files on the package manager platforms are utilized.
    • Processing Strategy: For documents obtained through homepage links, the same processing strategy is applied as outlined for website crawls, ensuring consistent formatting and extraction quality.
    • Prioritization: For libraries hosted on PyPI and Conda, documentation on Read the Docs is prioritized due to its comprehensive nature.
  3. PDF Extraction:

    • For R language documentation, text is extracted from all PDFs hosted on CRAN using the pdftotext library, which effectively preserves formatting.
    • For LaTeX packages, documentation, tutorials, and usage guide PDFs from CTAN are filtered, excluding image-heavy PDFs, and converted to markdown using the Nougat neural OCR tool.
  4. Web Crawling:

    • Code documentation is collected from a curated list of websites by exploring from an initial URL, and the full list of all URLs can be found in the StarCoder2 paper.
    • A dynamic queue is employed to store URLs within the same domain, expanding as new links are discovered during the crawl.
    • The process focuses on (1) content extraction and (2) content concatenation:
      • Content Extraction: HTML pages are converted to XML using the trafilatura library, which eliminates redundant navigation elements.
      • Content Concatenation: Extracted content from different HTML pages is subjected to near-duplication checks using the minhash locality-sensitive hashing technique, applying a threshold of 0.7 to ensure unique content is retained.
  5. Free Textbooks:

    • The dataset includes free programming books collected from the Free Programming Books Project. Links with a PDF extension are extracted, and all available PDFs are downloaded and processed for text extraction using the pdf2text library.
  6. Language Identification:

    • A dual approach is utilized to identify the primary programming language of each document:
      • Predefined Rules: Applied when the document's source explicitly corresponds to a specific programming language.
      • Guesslang Library: Used in cases where the correspondence is not clear.

Dataset Characteristics

  • Languages Covered: English, Chinese, Japanese, Spanish, and others.
  • Document Types:
    • Code documentation files
    • PDF documents
    • HTML pages
    • E-books
  • Programming Languages Included:
    • Python
    • JavaScript
    • Rust
    • R
    • Go
    • PHP
    • Ruby
    • Haskell
    • Objective-C
    • SQL
    • YAML
    • TeX
    • Markdown
    • And more...

Use Cases

  • Analyzing trends in programming language documentation.
  • Researching software development resources across multiple platforms.
  • Training large language models on documentation datasets to better understand programming languages.
  • Understanding the structure and accessibility of programming documentation.

Citation

@article{DBLP:journals/corr/abs-2402-19173,
  author       = {Anton Lozhkov and
                  Raymond Li and
                  Loubna Ben Allal and
                  Federico Cassano and
                  Joel Lamy{-}Poirier and
                  Nouamane Tazi and
                  Ao Tang and
                  Dmytro Pykhtar and
                  Jiawei Liu and
                  Yuxiang Wei and
                  Tianyang Liu and
                  Max Tian and
                  Denis Kocetkov and
                  Arthur Zucker and
                  Younes Belkada and
                  Zijian Wang and
                  Qian Liu and
                  Dmitry Abulkhanov and
                  Indraneil Paul and
                  Zhuang Li and
                  Wen{-}Ding Li and
                  Megan Risdal and
                  Jia Li and
                  Jian Zhu and
                  Terry Yue Zhuo and
                  Evgenii Zheltonozhskii and
                  Nii Osae Osae Dade and
                  Wenhao Yu and
                  Lucas Krau{\ss} and
                  Naman Jain and
                  Yixuan Su and
                  Xuanli He and
                  Manan Dey and
                  Edoardo Abati and
                  Yekun Chai and
                  Niklas Muennighoff and
                  Xiangru Tang and
                  Muhtasham Oblokulov and
                  Christopher Akiki and
                  Marc Marone and
                  Chenghao Mou and
                  Mayank Mishra and
                  Alex Gu and
                  Binyuan Hui and
                  Tri Dao and
                  Armel Zebaze and
                  Olivier Dehaene and
                  Nicolas Patry and
                  Canwen Xu and
                  Julian J. McAuley and
                  Han Hu and
                  Torsten Scholak and
                  S{\'{e}}bastien Paquet and
                  Jennifer Robinson and
                  Carolyn Jane Anderson and
                  Nicolas Chapados and
                  et al.},
  title        = {StarCoder 2 and The Stack v2: The Next Generation},
  journal      = {CoRR},
  volume       = {abs/2402.19173},
  year         = {2024},
  url          = {https://doi.org/10.48550/arXiv.2402.19173},
  doi          = {10.48550/ARXIV.2402.19173},
  eprinttype    = {arXiv},
  eprint       = {2402.19173},
  timestamp    = {Tue, 06 Aug 2024 08:17:53 +0200},
  biburl       = {https://dblp.org/rec/journals/corr/abs-2402-19173.bib},
  bibsource    = {dblp computer science bibliography, https://dblp.org}
}
Downloads last month
33

Paper for SivilTaram/starcoder2-documentation