File size: 4,316 Bytes
62ce08b
3dd3198
 
 
f4da3c7
3dd3198
f4da3c7
3dd3198
f4da3c7
 
 
 
 
 
62ce08b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f4da3c7
62ce08b
 
 
 
 
 
 
 
 
3dd3198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
---
pretty_name: HumanEval-no-resource
license: mit
language:
- en
task_categories:
- text-generation
tags:
- benchmark
- evaluation
- multilingual
- code-generation
- low-resource
- no-resource
dataset_info:
  features:
  - name: task_id
    dtype: int64
  - name: original_humaneval_id
    dtype: string
  - name: prompt
    dtype: string
  - name: tests
    dtype: string
  splits:
  - name: gleam
    num_bytes: 372702
    num_examples: 154
  - name: moonbit
    num_bytes: 133847
    num_examples: 154
  download_size: 158902
  dataset_size: 506549
configs:
- config_name: default
  data_files:
  - split: gleam
    path: data/gleam-*
  - split: moonbit
    path: data/moonbit-*
---


# HumanEval Benchmark for Gleam and MoonBit

## Dataset Description
This dataset contains a translation of the **HumanEval** benchmark into two no-resource programming languages: **Gleam** and **MoonBit**.

This dataset is derived from the [**MultiPL-E**](https://huggingface.co/datasets/nuprl/MultiPL-E) benchmark, which extends HumanEval by translating its programming tasks into multiple programming languages. 

More details on this benchmark and how it was created can be found in the paper [No Resource, No Benchmarks, No Problem? Evaluating and Improving LLMs for Code Generation in No-Resource Languages](https://huggingface.co/papers/2606.16827).

## Dataset Statistics

- Number of tasks: **154**
- Programming languages: **2**
- Total examples: **308**
- Source benchmark: **HumanEval**
- Intermediate benchmark: **MultiPL-E**

## Supported Languages

- Gleam
- MoonBit

## Dataset Structure

Each example contains the following fields:

| Field | Description |
|-------|-------------|
| `task_id` | Identifier of the translated task in this benchmark. |
| `original_humaneval_id` | Identifier of the task in the original HumanEval benchmark. |
| `prompt` | Signature and docstring of the function to be implemented. |
| `tests` | Test suite used to evaluate the correctness of generated solutions. |

## Usage
To load this benchmark, you can use the `datasets` library as follows.

First, install the library if you haven't already:

```bash
pip install datasets
```

Then, load the dataset:

```python
from datasets import load_dataset

dataset = load_dataset("Devy1/humaneval-no-resource")

# Load the Gleam split
gleam_split = dataset["gleam"]
print(gleam_split[0])
```

Or load only a specific language:

```python
gleam_ds = load_dataset("Devy1/humaneval-no-resource", split="gleam")
```

> **Note:** Executing the test suites requires the corresponding language environments and dependencies. The complete generation and evaluation pipeline, including setup instructions for Gleam and MoonBit, is available in our [GitHub repository](https://github.com/Devy99/no-resource-pl-study).

## Citation

If you use this dataset, please cite our work:

```bibtex
@article{giagnorio2026noresource,
  title={No Resource, No Benchmarks, No Problem? Evaluating and Improving LLMs for Code Generation in No-Resource Languages},
  author={Giagnorio, Alessandro and Martin-Lopez, Alberto and Bavota, Gabriele},
  journal={IEEE Transactions on Software Engineering},
  year={2026},
  publisher={IEEE}
}
```

Since this dataset is derived from HumanEval through MultiPL-E, please also cite the original benchmark papers:

```bibtex
@article{chen2021evaluating,
  title={Evaluating large language models trained on code},
  author={Chen, Mark and Tworek, Jerry and Jun, Heewoo and Yuan, Qiming and Pinto, Henrique Ponde De Oliveira and Kaplan, Jared and Edwards, Harri and Burda, Yuri and Joseph, Nicholas and Brockman, Greg and others},
  journal={arXiv preprint arXiv:2107.03374},
  year={2021}
}
```

```bibtex
@article{cassano2023multipl,
  title={Multipl-e: A scalable and polyglot approach to benchmarking neural code generation},
  author={Cassano, Federico and Gouwar, John and Nguyen, Daniel and Nguyen, Sydney and Phipps-Costin, Luna and Pinckney, Donald and Yee, Ming-Ho and Zi, Yangtian and Anderson, Carolyn Jane and Feldman, Molly Q and others},
  journal={IEEE Transactions on Software Engineering},
  volume={49},
  number={7},
  pages={3675--3691},
  year={2023},
  publisher={IEEE}
}
```

### Paper

* Hugging Face Papers: [https://huggingface.co/papers/2606.16827](https://huggingface.co/papers/2606.16827)