Skip to content

Dataset · codeparrot

Parallel corpus of code in 7 languages and descriptions

codeparrot/xlcost-text-to-code

Code generation benchmark matching English descriptions and seven programming languages.

What's inside

Machine learning benchmark with 100k to 1M examples with detailed aligned parallel data. It contains code snippets in 7 popular languages (C++, Java, Python, C#, Javascript, PHP, C) paired with English texts.

What you can do with it

  • Training and evaluating text-to-code generation models
  • Evaluating models on code translation tasks between different programming languages
Tasks
Text generation
Languages
Code
Size
100K–1M rows
Downloads this month
1K
Likes
52

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("codeparrot/xlcost-text-to-code")