← Datasets

Compare

KStack
#280 · remove
first_half_math (EleutherAI)
#187 · remove
Kinddatasetdataset
Published20242025
Licenseother (permissively licensed Kotlin code, varies per file; Apache 2.0 common)Unknown (likely MIT per original MATH dataset)
License familyOtherNot stated
Accessfreefree
Language codescodeen
Modalitiestexttext
Size1M to 10M rows1K to 10K rows
Downloads (last month)1,68612
Likes141
Last updated2025-04-222025-06-20
Taskstext-generation—
Formatsparquetparquet
ScaleCard comparison table: 4M files / 168,902 repos / 292M lines / 3.1B tokens vs Stack v2 Kotlin 2M / 109,457 / 162M / 1.7B. dataset_info train: 5,517,601 examples; 16,332,255,331 bytes (~16.33 GB) uncompressed / download_size 5,891,399,337 (~5.89 GB parquet). usedStorage 14,463,919,198 bytes (~14.46 GB). 33 parquet shards (~176–182 MB). YAML size_categories 100M<n<1B conflicts with Hub tags 1M<n<10M and the 5.52M-row split — tags/split used here. gated=false. HF 326 downloads / 14 likes at check.Hub 3,750 train rows / 4 cols; parquet ~1.4 MB. Downloads ~301 / likes 1.
Formatparquet (33 shards). Fields: path, owner, repo_id, is_fork, languages_distribution, content, issues, main_language, forks, stars, commit_sha, size, name, license.parquet. Columns: problem, level, type, solution
TypePretraining corpus / permissively licensed Kotlin filesMath problem/solution table
CostFreeFree
LanguagesKotlin source (card language:code). Files .kt / .kts / .gradle.kts via go-enry. Comments mixed-language; repos may list other languages in languages_distribution. Not natural-language English text.English.
ModalityText (Kotlin source)Text only
DomainKotlin source-code pretraining; permissively licensed GitHubcompetition math; MATH-format problems; algebra
Time periodGitHub Kotlin snapshot as of February 2024 plus The Stack v1.2 Kotlin files. HF createdAt 2024-05-13; lastModified 2025-04-22. Paper Kotlin ML Pack arXiv 2405.19250 (2024-05-29). Discord posted 2026-03-23.HF createdAt/lastModified 2025-06-20. Discord 2025-12-02.
PurposeLargest public permissively licensed Kotlin file collection for code LM pretrain/finetune, denser than The Stack v2 Kotlin sliceSmall MATH-style problem/solution table (filename suggests first-half cut).
Used forKotlin ML Pack (arXiv 2405.19250): CodeLlama/DeepSeek Kotlin finetunes; KStack-clean (25k) and KExercises are the high-quality/synth siblings (paper: up to +16 HumanEval-Kotlin pass). Hub 326 downloads / 14 likes at check. JetBrains Kotlin ML collection.Math SFT/eval subsets; lightweight competition-math mixes.
AuthorsGitHub Kotlin repo owners (main-language Kotlin, or any Kotlin file with ≥10 stars as of Feb 2024, plus Stack v1.2). JetBrains Research (Sergey Titov, Mikhail Evtikhiev, Anton Shapkin et al.). PII stripped with star-pii.EleutherAI namespace packager; underlying MATH provenance not stated on card.
BiasOpen GitHub only (paper: private Kotlin unseen). Permissive-license filter (MIT/Apache-2.0/BSD/CC-BY/Unlicense/…; full list licenses.json). Star≥10 auxiliary crawl plus main-language-Kotlin repos; popularity skew. Near-dedup keeps the highest-star file per cluster. Forks flagged via is_fork. YAML pretty_name is wrongly KExercises (copy-paste); this repo is the large file dump, not the 25k clean set.Competition-math distribution (preview Level 5 Algebra). Exact subsetting vs Hendrycks MATH not documented.
Text qualityExact hash dedup + Stack v1.2-style near-dedup; star-pii PII rewrite. Permissive-license detector (GitHub then go-license-detector). Residual noisy/generated Kotlin, build scripts (.kts/.gradle.kts), and incomplete files remain. Paper treats KStack as the broad corpus and KStack-clean as the algorithmic-quality subset.Preview solutions use classic \boxed{} MATH format and look coherent. No independent answer audit.
Sample sizeSingle train split (5,517,601 rows / 33 parquet parts). No val/test. Sister JetBrains/KStack-clean is 25,000 rows (~23M CodeLlama-7B tokens), not a config here.train 3750 only.
Long contextMixed (per-file; mean ~3.0 KB / file from dataset_size/n). Not repo-level packing.Low-Medium (typical MATH solution lengths)
Intermediate stepsYes (GitHub + Stack v1.2 Kotlin harvest → exact/near dedup → permissive license filter → star-pii). Paper also builds KStack-clean (Mistral pairwise edu rank → CodeT5p classifier) and KExercises; those are separate repos.Yes (worked solutions in solution field; not separate thinking column)
Idea qualityHighLow-Medium (useful tiny cut; undocumented)
NoveltyHigh (public Kotlin dump ~2× Stack v2 Kotlin files/tokens, fully permissive)Low (MATH-format redistribution with sparse card)
Text conversionReady parquet. load_dataset('JetBrains/KStack'). Full dump is small vs web corpora (~5.9 GB download).High
Collection methodDownloadDownload
StaticUnknown (HF lastModified 2025-04-22; Feb 2024 GitHub snapshot)Yes (lastModified 2025-06-20)
ProcessedUnknownUnknown (no processing notes)
SummaryKStack is the largest collection of permissively licensed Kotlin source code, containing 5.52 million files scraped from GitHub repositories with metadata like owner, repo ID, language distribution, license, and commit SHA. It is part of JetBrains' Kotlin ML Pack (alongside the curated KStack-clean and KExercises datasets) and is intended for pretraining and fine-tuning code generation models for Kotlin, demonstrating that even small high-quality subsets can yield up to a 16-point increase in HumanEval pass rate.first_half_math is an EleutherAI dataset containing 3,750 math competition problems, each with a problem statement, a difficulty level (1-5), a subject type (e.g. Algebra, Counting & Probability), and a worked solution. Based on the content and structure, it appears to be the first half of the MATH dataset (Hendrycks et al.), used by EleutherAI for training and evaluating language models on mathematical reasoning with step-by-step solutions.