stackv2
收藏魔搭社区2025-12-05 更新2025-06-14 收录
下载链接:
https://modelscope.cn/datasets/common-pile/stackv2
下载链接
链接失效反馈官方服务:
资源简介:
# Stack V2
## Description
We filter the [Stack V2](https://huggingface.co/datasets/bigcode/the-stack-v2) to only include code from openly licensed repositories, based on the license detection performed by the creators of Stack V2.
When multiple licenses are detected in a single repository, we ensure that all of the licenses are on the [Blue Oak Council certified license list](https://blueoakcouncil.org/list).
Per-document license information is available in the `license` entry of the `metadata` field of each example.
Code for collecting, processing, and preparing this dataset is available in the [common-pile GitHub repo](https://github.com/r-three/common-pile).
## Dataset Statistics
| Documents | UTF-8 GB |
|-----------|----------|
| 218,364,133 | 4,774.7 |
## License Issues
While we aim to produce datasets with completely accurate licensing information, license laundering and inaccurate metadata can cause us to erroneously assign the incorrect license to some documents (for further discussion of this limitation, please see [our paper](https://huggingface.co/papers/2506.05209)). If you believe you have found an instance of incorrect licensing in this dataset, please [start a discussion](https://github.com/r-three/common-pile/discussions/new) on this repository.
## Other Versions
This is the "raw" version of the Stack V2 dataset.
If you are looking for the filtered versions used to train [Comma v0.1](https://huggingface.co/common-pile/comma-v0.1), you can find them [here](https://huggingface.co/datasets/common-pile/stackv2_edu_filtered) and [here](https://huggingface.co/datasets/common-pile/stackv2_html_filtered).
## Citation
If you use this dataset, please cite:
```bibtex
@article{kandpal2025common,
title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
author={Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben and Elie Bakouch and John David and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and John Kirchenbauer and Tom Goldstein and Brian R and Bhavya Kailkhura and Tyler Murray},
journal={arXiv preprint},
year={2025}
}
```
```bibtex
@misc{lozhkov2024starcoder,
title={StarCoder 2 and The Stack v2: The Next Generation},
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ß 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 McAuley and Han Hu and Torsten Scholak and Sebastien Paquet and Jennifer Robinson and Carolyn Jane Anderson and Nicolas Chapados and Mostofa Patwary and Nima Tajbakhsh and Yacine Jernite and Carlos Muñoz Ferrandis and Lingming Zhang and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries},
year={2024},
eprint={2402.19173},
archivePrefix={arXiv},
primaryClass={cs.SE}
}
```
# Stack V2
## 数据集描述
我们基于Stack V2创作者所执行的许可证检测流程,对[Stack V2数据集](https://huggingface.co/datasets/bigcode/the-stack-v2)进行筛选,仅保留来自开放许可代码仓库的代码。当单个代码仓库中检测到多种许可证时,我们确保所有许可证均收录于蓝橡树委员会(Blue Oak Council)认证许可证列表(https://blueoakcouncil.org/list)。单文档的许可证信息可在每条样本的元数据(metadata)字段下的`"license"`条目中获取。本数据集的采集、处理与制备代码,可在common-pile GitHub仓库(https://github.com/r-three/common-pile)获取。
## 数据集统计
| 文档数 | UTF-8 存储量(GB) |
|-----------|---------------------|
| 218,364,133 | 4,774.7 |
## 许可证相关说明
尽管我们致力于打造许可证信息完全准确的数据集,但许可证洗白(license laundering)与元数据不准确的问题,可能导致我们为部分文档错误分配了不匹配的许可证(关于该局限性的详细讨论,请参阅[我们的论文](https://huggingface.co/papers/2506.05209))。若您发现本数据集存在许可证信息错误的情况,请前往本仓库[发起讨论](https://github.com/r-three/common-pile/discussions/new)。
## 其他版本
本版本为Stack V2数据集的「原始版」。若您需获取用于训练[Comma v0.1](https://huggingface.co/common-pile/comma-v0.1)的筛选后版本,可分别于[此处](https://huggingface.co/datasets/common-pile/stackv2_edu_filtered)与[此处](https://huggingface.co/datasets/common-pile/stackv2_html_filtered)获取。
## 引用方式
若您使用本数据集,请引用如下文献:
bibtex
@article{kandpal2025common,
title={{The Common Pile v0.1: An 8TB Dataset of Public Domain and Openly Licensed Text}},
author={Nikhil Kandpal and Brian Lester and Colin Raffel and Sebastian Majstorovic and Stella Biderman and Baber Abbasi and Luca Soldaini and Enrico Shippole and A. Feder Cooper and Aviya Skowron and Shayne Longpre and Lintang Sutawika and Alon Albalak and Zhenlin Xu and Guilherme Penedo and Loubna Ben and Elie Bakouch and John David and Honglu Fan and Dashiell Stander and Guangyu Song and Aaron Gokaslan and John Kirchenbauer and Tom Goldstein and Brian R and Bhavya Kailkhura and Tyler Murray},
journal={arXiv preprint},
year={2025}
}
bibtex
@misc{lozhkov2024starcoder,
title={StarCoder 2 and The Stack v2: The Next Generation},
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ß 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 McAuley and Han Hu and Torsten Scholak and Sebastien Paquet and Jennifer Robinson and Carolyn Jane Anderson and Nicolas Chapados and Mostofa Patwary and Nima Tajbakhsh and Yacine Jernite and Carlos Muñoz Ferrandis and Lingming Zhang and Sean Hughes and Thomas Wolf and Arjun Guha and Leandro von Werra and Harm de Vries},
year={2024},
eprint={2402.19173},
archivePrefix={arXiv},
primaryClass={cs.SE}
}
提供机构:
maas
创建时间:
2025-06-11
搜集汇总
数据集介绍

背景与挑战
背景概述
Stack V2数据集是一个包含来自公开许可仓库代码的大型数据集,经过严格许可证检测,确保所有许可证符合Blue Oak Council认证标准。数据集包含218,364,133个文档,总大小为4,774.7 UTF-8 GB,每个文档的元数据中提供详细的许可证信息。
以上内容由遇见数据集搜集并总结生成



