giulio98/codegen-350M-multi-xlcost-v2
Text Generation
•
Updated
•
22
Error code: DatasetWithScriptNotSupportedError
Need help to make the dataset viewer work? Open a discussion for direct support.
This is a subset of XLCoST benchmark, for text-to-code generation at program level for 2 programming languages: Python, C++
. This dataset is based on codeparrot/xlcost-text-to-code with the following improvements:
The dataset contains text in English and its corresponding code translation. The text contains a set of concatenated code comments that allow to synthesize the program.
To load the dataset you need to specify the language(Python or C++).
from datasets import load_dataset
load_dataset("giulio98/xlcost-single-prompt", "Python")
DatasetDict({
train: Dataset({
features: ['text', 'context', 'code', 'test', 'output', 'fn_call'],
num_rows: 8306
})
test: Dataset({
features: ['text', 'context', 'code', 'test', 'output', 'fn_call'],
num_rows: 812
})
validation: Dataset({
features: ['text', 'context', 'code', 'test', 'output', 'fn_call'],
num_rows: 427
})
})
Each subset has three splits: train, test and validation.
@misc{zhu2022xlcost,
title = {XLCoST: A Benchmark Dataset for Cross-lingual Code Intelligence},
url = {https://arxiv.org/abs/2206.08474},
author = {Zhu, Ming and Jain, Aneesh and Suresh, Karthik and Ravindran, Roshan and Tipirneni, Sindhu and Reddy, Chandan K.},
year = {2022},
eprint={2206.08474},
archivePrefix={arXiv}
}