Skip to content

Dataset · christopher

Rosetta code task solutions in hundreds of languages

christopher/rosetta-code

Parallel implementations of classical algorithms and tasks across multiple programming languages for code model training.

What's inside

Inside are text solutions for 1,203 primary and 389 draft tasks from the Rosetta Code website, covering up to 883 programming languages. The total volume of the dataset ranges from 10,000 to 100,000 examples. The data represents implementations of the same algorithms in different languages to clearly demonstrate their similarities and differences.

What you can do with it

  • Training and fine-tuning models for code generation and cross-language translation
  • Evaluating multilingual capabilities of coding LLMs on classical algorithms
  • Studying syntactic and structural differences of programming languages
Languages
Code
Size
10K–100K rows
Downloads this month
1.2K
Likes
40

Models trained on it

How to load it

from datasets import load_dataset

ds = load_dataset("christopher/rosetta-code")