Card: real repositories, an overview document and one specification per feature, the attribution rule and accepted features; Waseda contact; Blog link to the project page and the paper marked as coming soon
Browse files- README.md +6 -6
- README.zh-CN.md +6 -6
README.md
CHANGED
|
@@ -26,13 +26,13 @@ tags:
|
|
| 26 |
# NL2Repo-Pro
|
| 27 |
|
| 28 |
<p align="center">
|
| 29 |
-
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"> Blog ·
|
| 30 |
-
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"> Paper ·
|
| 31 |
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture style="display: inline; margin: 0;"><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> Code</a> ·
|
| 32 |
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a>
|
| 33 |
</p>
|
| 34 |
|
| 35 |
-
NL2Repo-Pro is a benchmark for coding agents: given a natural-language specification,
|
| 36 |
|
| 37 |
| | Python | Go | Rust | Java | JavaScript | Total |
|
| 38 |
|---|--:|--:|--:|--:|--:|--:|
|
|
@@ -70,7 +70,7 @@ images/<lang>/<instance_id>.tar the task's two Docker images (83 GB for all
|
|
| 70 |
```
|
| 71 |
<instance_id>/
|
| 72 |
├── task.toml images, resources, limits, source repository and license
|
| 73 |
-
├── instruction.md the
|
| 74 |
├── environment/ empty (Harbor expects it; keep it empty)
|
| 75 |
├── image_build/ how the agent image was made; docs/ is what the agent sees at /docs
|
| 76 |
├── solution/ the reference solution (the original source)
|
|
@@ -130,7 +130,7 @@ A few tasks come close to the 32 GB limit when grading.
|
|
| 130 |
|
| 131 |
## Scoring
|
| 132 |
|
| 133 |
-
The
|
| 134 |
|
| 135 |
## Licensing
|
| 136 |
|
|
@@ -142,4 +142,4 @@ If you are an author of a source repository and want a task changed or removed,
|
|
| 142 |
|
| 143 |
## Citation
|
| 144 |
|
| 145 |
-
Coming with the
|
|
|
|
| 26 |
# NL2Repo-Pro
|
| 27 |
|
| 28 |
<p align="center">
|
| 29 |
+
<picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> <a href="https://tokenwave-ai.github.io/NL2Repo-Pro/">Blog</a> ·
|
| 30 |
+
<picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> Paper (soon) ·
|
| 31 |
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture style="display: inline; margin: 0;"><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> Code</a> ·
|
| 32 |
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/blob/main/README.zh-CN.md">中文</a>
|
| 33 |
</p>
|
| 34 |
|
| 35 |
+
NL2Repo-Pro is a benchmark for coding agents: given a natural-language specification, build a whole library from scratch. Each of its 150 tasks comes from a real repository at a fixed commit. The agent gets an overview document and one specification per feature, ordered by dependency, and writes the implementation. The repository's own tests, held out from the agent, grade the result feature by feature.
|
| 36 |
|
| 37 |
| | Python | Go | Rust | Java | JavaScript | Total |
|
| 38 |
|---|--:|--:|--:|--:|--:|--:|
|
|
|
|
| 70 |
```
|
| 71 |
<instance_id>/
|
| 72 |
├── task.toml images, resources, limits, source repository and license
|
| 73 |
+
├── instruction.md the overview document
|
| 74 |
├── environment/ empty (Harbor expects it; keep it empty)
|
| 75 |
├── image_build/ how the agent image was made; docs/ is what the agent sees at /docs
|
| 76 |
├── solution/ the reference solution (the original source)
|
|
|
|
| 130 |
|
| 131 |
## Scoring
|
| 132 |
|
| 133 |
+
The documents of each task split the library into features. A test counts for every feature whose code it calls directly, and a feature is accepted only when all of its graded tests pass. The reward is the share of features accepted, from 0 to 1.
|
| 134 |
|
| 135 |
## Licensing
|
| 136 |
|
|
|
|
| 142 |
|
| 143 |
## Citation
|
| 144 |
|
| 145 |
+
Coming with the arXiv version.
|
README.zh-CN.md
CHANGED
|
@@ -10,13 +10,13 @@
|
|
| 10 |
# NL2Repo-Pro
|
| 11 |
|
| 12 |
<p align="center">
|
| 13 |
-
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"> 博客 ·
|
| 14 |
-
<img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"> 论文 ·
|
| 15 |
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture style="display: inline; margin: 0;"><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> 代码</a> ·
|
| 16 |
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro">English</a>
|
| 17 |
</p>
|
| 18 |
|
| 19 |
-
NL2Repo-Pro 是一个面向编程 agent 的基准:根据自然语言规格,从零写出一个完整的
|
| 20 |
|
| 21 |
| | Python | Go | Rust | Java | JavaScript | 合计 |
|
| 22 |
|---|--:|--:|--:|--:|--:|--:|
|
|
@@ -54,7 +54,7 @@ images/<lang>/<instance_id>.tar 该题的两个 Docker 镜像(150 道共
|
|
| 54 |
```
|
| 55 |
<instance_id>/
|
| 56 |
├── task.toml 镜像、资源、限制、来源仓库和许可证
|
| 57 |
-
├── instruction.md
|
| 58 |
├── environment/ 空目录(Harbor 需要它,请保持为空)
|
| 59 |
├── image_build/ agent 镜像的构建方式,docs/ 是 agent 在 /docs 看到的内容
|
| 60 |
├── solution/ 参考答案(原始源码)
|
|
@@ -114,7 +114,7 @@ harbor run -p run/<instance_id> -a claude-code -m "$M" \
|
|
| 114 |
|
| 115 |
## 评分
|
| 116 |
|
| 117 |
-
每道题的文档
|
| 118 |
|
| 119 |
## 许可
|
| 120 |
|
|
@@ -126,4 +126,4 @@ harbor run -p run/<instance_id> -a claude-code -m "$M" \
|
|
| 126 |
|
| 127 |
## 引用
|
| 128 |
|
| 129 |
-
|
|
|
|
| 10 |
# NL2Repo-Pro
|
| 11 |
|
| 12 |
<p align="center">
|
| 13 |
+
<picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/tokenwave.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> <a href="https://tokenwave-ai.github.io/NL2Repo-Pro/">博客</a> ·
|
| 14 |
+
<picture style="display: inline; margin: 0;"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/arxiv.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> 论文(即将发布) ·
|
| 15 |
<a href="https://github.com/TokenWave-AI/NL2Repo-Pro"><picture style="display: inline; margin: 0;"><source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github-dark.png"><img src="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro/resolve/main/assets/icons/github.png" alt="" width="16" style="display: inline-block; vertical-align: middle; margin: 0; border: 0; border-radius: 0; background: none;"></picture> 代码</a> ·
|
| 16 |
<a href="https://huggingface.co/datasets/Tokenwave-AI/NL2Repo-Pro">English</a>
|
| 17 |
</p>
|
| 18 |
|
| 19 |
+
NL2Repo-Pro 是一个面向编程 agent 的基准:根据自然语言规格,从零写出一个完整的库。150 道题都来自固定 commit 的真实仓库。agent 拿到一份总览文档,以及每个 feature 一份规格,按依赖关系排序,据此写出实现。仓库原有的测试不对 agent 开放,用来逐个 feature 给结果评分。
|
| 20 |
|
| 21 |
| | Python | Go | Rust | Java | JavaScript | 合计 |
|
| 22 |
|---|--:|--:|--:|--:|--:|--:|
|
|
|
|
| 54 |
```
|
| 55 |
<instance_id>/
|
| 56 |
├── task.toml 镜像、资源、限制、来源仓库和许可证
|
| 57 |
+
├── instruction.md 总览文档
|
| 58 |
├── environment/ 空目录(Harbor 需要它,请保持为空)
|
| 59 |
├── image_build/ agent 镜像的构建方式,docs/ 是 agent 在 /docs 看到的内容
|
| 60 |
├── solution/ 参考答案(原始源码)
|
|
|
|
| 114 |
|
| 115 |
## 评分
|
| 116 |
|
| 117 |
+
每道题的文档把库划分为若干 feature。一个测试计入它直接调用的每个 feature,一个 feature 的所有计分测试都通过,它才算被接受。reward 是被接受的 feature 所占的比例,取值 0 到 1。
|
| 118 |
|
| 119 |
## 许可
|
| 120 |
|
|
|
|
| 126 |
|
| 127 |
## 引用
|
| 128 |
|
| 129 |
+
arXiv 版本发布后补充。
|