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
- acuvity/distilbert-base-uncased-prompt-injection-v0.1Text classification 64
- wiktorwojcik112/ProgrammingLanguageIdentificationText classification 19
- tangledgroup/tangled-alpha-0.5-coreText generation 15
- tangledgroup/tangled-alpha-0.6-coreText generation 15
- tangledgroup/tangled-alpha-0.7-coreText generation 13
- tangledgroup/tangled-alpha-0.8-coreText generation 10
- tangledgroup/tangled-alpha-0.9-coreText generation 1
- tangledgroup/tangled-alpha-0.1-coreText generation 0
How to load it
from datasets import load_dataset
ds = load_dataset("christopher/rosetta-code")