Datasets:
Add dataset card and CrossCodeEval source descriptions
Browse files- README.md +76 -0
- crosscodeeval-csharp-v5/README.md +12 -0
- crosscodeeval-java-v4/README.md +12 -0
- crosscodeeval-python-v3/README.md +12 -0
- crosscodeeval-typescript-v3/README.md +12 -0
README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
language:
|
| 3 |
+
- en
|
| 4 |
+
task_categories:
|
| 5 |
+
- text-generation
|
| 6 |
+
tags:
|
| 7 |
+
- agent
|
| 8 |
+
- code
|
| 9 |
+
- agentic-tasks
|
| 10 |
+
- harbor
|
| 11 |
+
- reinforcement-learning
|
| 12 |
+
configs:
|
| 13 |
+
- config_name: default
|
| 14 |
+
data_files:
|
| 15 |
+
- split: train
|
| 16 |
+
path: "*/tasks.parquet"
|
| 17 |
+
- config_name: archive
|
| 18 |
+
data_files:
|
| 19 |
+
- split: train
|
| 20 |
+
path: "*/archive.parquet"
|
| 21 |
+
---
|
| 22 |
+
|
| 23 |
+
# Validated tasks
|
| 24 |
+
|
| 25 |
+
Agent tasks in [Harbor](https://github.com/marin-community/harbor) format, together with the result of validating them. The validation is described in the [OT-next-data validation README](https://github.com/MLI-lab/OT-next-data/blob/main/validation/README.md).
|
| 26 |
+
|
| 27 |
+
## Layout
|
| 28 |
+
|
| 29 |
+
Each data source has its own folder with three files:
|
| 30 |
+
|
| 31 |
+
| File | Content |
|
| 32 |
+
| --- | --- |
|
| 33 |
+
| `README.md` | what the tasks are and where they come from |
|
| 34 |
+
| `tasks.parquet` | the tasks that are kept |
|
| 35 |
+
| `archive.parquet` | the tasks that were excluded, with the reason |
|
| 36 |
+
|
| 37 |
+
`runs/` holds one file per validation run: the contract of the run and the number of tasks kept and archived at each stage.
|
| 38 |
+
|
| 39 |
+
Load the kept tasks, or the archived ones:
|
| 40 |
+
|
| 41 |
+
```python
|
| 42 |
+
from datasets import load_dataset
|
| 43 |
+
kept = load_dataset("FWeindel/validated-tasks", split="train")
|
| 44 |
+
archived = load_dataset("FWeindel/validated-tasks", "archive", split="train")
|
| 45 |
+
```
|
| 46 |
+
|
| 47 |
+
## Columns
|
| 48 |
+
|
| 49 |
+
| Column | Meaning |
|
| 50 |
+
| --- | --- |
|
| 51 |
+
| `path` | task ID |
|
| 52 |
+
| `task_binary` | the task as a tar archive, as validated |
|
| 53 |
+
| `content_sha256` | hash of the task's files |
|
| 54 |
+
| `stages_passed` | the validation stages the task has passed, e.g. `1,3,4,5` |
|
| 55 |
+
| `archive_stage` | the stage that excluded the task; empty for kept tasks |
|
| 56 |
+
| `archive_reason` | why the task was excluded; empty for kept tasks |
|
| 57 |
+
| `run` | the file in `runs/` of the run that decided this |
|
| 58 |
+
|
| 59 |
+
A changed task has a new `content_sha256` and is validated again from stage 1.
|
| 60 |
+
|
| 61 |
+
## Keep or archive
|
| 62 |
+
|
| 63 |
+
| Stage | Rule |
|
| 64 |
+
| --- | --- |
|
| 65 |
+
| 1, static checks | archive if any check fails |
|
| 66 |
+
| 3, build | archive if the container does not build or start |
|
| 67 |
+
| 4 and 5, oracle and NOP | archive if the reward is wrong: the reference solution must get 1, doing nothing must get 0 |
|
| 68 |
+
| 2, 6, 7 and 8 | never archive; a person judges |
|
| 69 |
+
|
| 70 |
+
- **Archived tasks are not deleted.** They stay in `archive.parquet`, so a decision can be checked and a fixed task can return.
|
| 71 |
+
- **A failed run is not a failed task.** If a stage could not run for a task, for example because a node failed, the task keeps its previous state.
|
| 72 |
+
- **A result holds for the execution profile it was run on**, which is recorded in the run file: backend, architecture and network mode.
|
| 73 |
+
|
| 74 |
+
## Updates
|
| 75 |
+
|
| 76 |
+
Each validation run is proposed as one pull request. It adds the run file, updates the two Parquets of each affected data source, and states in its description how many tasks were kept and archived, and why.
|
crosscodeeval-csharp-v5/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CrossCodeEval, C#
|
| 2 |
+
|
| 3 |
+
Cross-file code completion. The agent sees a file that is cut at a cursor and must write the next statement. That statement depends on code in other files of the same repository, which the task provides as context files.
|
| 4 |
+
|
| 5 |
+
| | |
|
| 6 |
+
| --- | --- |
|
| 7 |
+
| Tasks before validation | 1,353 |
|
| 8 |
+
| Underlying benchmark | [amazon-science/cceval](https://github.com/amazon-science/cceval), commit `40c68d2b` |
|
| 9 |
+
| Packaged source | [TaskTrove](https://huggingface.co/datasets/open-thoughts/TaskTrove), `laion__exp_rpt_crosscodeeval-csharp-v5`, revision `12df4483fe99`, from [discussion 3](https://huggingface.co/datasets/open-thoughts/TaskTrove/discussions/3) |
|
| 10 |
+
| Reward | 1 if the first statement matches the reference exactly, after removing comments and surrounding whitespace; otherwise 0 |
|
| 11 |
+
|
| 12 |
+
The tasks were patched before validation: the cross-file context and the benchmark's own scorer were added, and tasks whose reference cannot be derived from the context were dropped. The changes are listed in the [CrossCodeEval patch notes](https://github.com/MLI-lab/OT-next-data/blob/main/data/crosscodeeval/README.md).
|
crosscodeeval-java-v4/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CrossCodeEval, Java
|
| 2 |
+
|
| 3 |
+
Cross-file code completion. The agent sees a file that is cut at a cursor and must write the next statement. That statement depends on code in other files of the same repository, which the task provides as context files.
|
| 4 |
+
|
| 5 |
+
| | |
|
| 6 |
+
| --- | --- |
|
| 7 |
+
| Tasks before validation | 1,895 |
|
| 8 |
+
| Underlying benchmark | [amazon-science/cceval](https://github.com/amazon-science/cceval), commit `40c68d2b` |
|
| 9 |
+
| Packaged source | [TaskTrove](https://huggingface.co/datasets/open-thoughts/TaskTrove), `laion__exp_rpt_crosscodeeval-java-v4`, revision `12df4483fe99`, from [discussion 3](https://huggingface.co/datasets/open-thoughts/TaskTrove/discussions/3) |
|
| 10 |
+
| Reward | 1 if the first statement matches the reference exactly, after removing comments and surrounding whitespace; otherwise 0 |
|
| 11 |
+
|
| 12 |
+
The tasks were patched before validation: the cross-file context and the benchmark's own scorer were added, and tasks whose reference cannot be derived from the context were dropped. The changes are listed in the [CrossCodeEval patch notes](https://github.com/MLI-lab/OT-next-data/blob/main/data/crosscodeeval/README.md).
|
crosscodeeval-python-v3/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CrossCodeEval, Python
|
| 2 |
+
|
| 3 |
+
Cross-file code completion. The agent sees a file that is cut at a cursor and must write the next statement. That statement depends on code in other files of the same repository, which the task provides as context files.
|
| 4 |
+
|
| 5 |
+
| | |
|
| 6 |
+
| --- | --- |
|
| 7 |
+
| Tasks before validation | 432 |
|
| 8 |
+
| Underlying benchmark | [amazon-science/cceval](https://github.com/amazon-science/cceval), commit `40c68d2b` |
|
| 9 |
+
| Packaged source | [TaskTrove](https://huggingface.co/datasets/open-thoughts/TaskTrove), `laion__exp_rpt_crosscodeeval-python-v3`, revision `12df4483fe99`, from [discussion 3](https://huggingface.co/datasets/open-thoughts/TaskTrove/discussions/3) |
|
| 10 |
+
| Reward | 1 if the first statement matches the reference exactly, after removing comments and surrounding whitespace; otherwise 0 |
|
| 11 |
+
|
| 12 |
+
The tasks were patched before validation: the cross-file context and the benchmark's own scorer were added, and tasks whose reference cannot be derived from the context were dropped. The changes are listed in the [CrossCodeEval patch notes](https://github.com/MLI-lab/OT-next-data/blob/main/data/crosscodeeval/README.md).
|
crosscodeeval-typescript-v3/README.md
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# CrossCodeEval, TypeScript
|
| 2 |
+
|
| 3 |
+
Cross-file code completion. The agent sees a file that is cut at a cursor and must write the next statement. That statement depends on code in other files of the same repository, which the task provides as context files.
|
| 4 |
+
|
| 5 |
+
| | |
|
| 6 |
+
| --- | --- |
|
| 7 |
+
| Tasks before validation | 3,030 |
|
| 8 |
+
| Underlying benchmark | [amazon-science/cceval](https://github.com/amazon-science/cceval), commit `40c68d2b` |
|
| 9 |
+
| Packaged source | [TaskTrove](https://huggingface.co/datasets/open-thoughts/TaskTrove), `laion__exp_rpt_crosscodeeval-typescript-v3`, revision `12df4483fe99`, from [discussion 3](https://huggingface.co/datasets/open-thoughts/TaskTrove/discussions/3) |
|
| 10 |
+
| Reward | 1 if the first statement matches the reference exactly, after removing comments and surrounding whitespace; otherwise 0 |
|
| 11 |
+
|
| 12 |
+
The tasks were patched before validation: the cross-file context and the benchmark's own scorer were added, and tasks whose reference cannot be derived from the context were dropped. The changes are listed in the [CrossCodeEval patch notes](https://github.com/MLI-lab/OT-next-data/blob/main/data/crosscodeeval/README.md).
|