Multilingual Code Dataset
A JSONL corpus of source files collected from 15 public software repositories. Each row contains repository and path metadata alongside the source text. This is a raw code corpus, not an instruction, question-answer, or benchmark dataset.
At a Glance
| Measure | Value |
|---|---|
| Records | 8,955 |
| Source repositories | 15 |
| Programming-language file extensions | 11 |
| JSONL size | 107.8 MiB |
| Text characters | 107,940,634 |
| Tokens | 26,643,622 with Qwen/Qwen2.5-Coder-7B tokenizer, without special tokens |
Token counts depend on the tokenizer and are provided as a reference, not as a tokenizer-independent property.
Load the Dataset
from datasets import load_dataset
dataset = load_dataset("TrueLLM/multilang-coding", split="train")
print(dataset[0])
To load the JSONL file directly:
from datasets import load_dataset
dataset = load_dataset(
"json",
data_files="https://huggingface.co/datasets/TrueLLM/multilang-coding/resolve/main/train.jsonl",
split="train",
)
Data Format
train.jsonl contains one UTF-8 JSON object per line. Each object has this schema:
| Field | Type | Description |
|---|---|---|
repo |
string | Short name of the source repository |
file_path |
string | File path relative to the source repository root |
text |
string | Source file prefixed with repository and file-path labels |
Example:
{"repo":"flask","file_path":"src/flask/logging.py","text":"### Repository: flask\n### File: src/flask/logging.py\n\nfrom __future__ import annotations\n..."}
The text value has this layout:
### Repository: <repo>
### File: <file_path>
<source file contents>
Language Coverage
| Extension | Records |
|---|---|
.rs |
4,207 |
.h |
1,674 |
.c |
864 |
.py |
716 |
.ts |
611 |
.cpp |
582 |
.java |
150 |
.js |
90 |
.go |
54 |
.hpp |
6 |
.lua |
1 |
Source Repositories
- Flask, Requests, HTTPX
- Pydantic, Typer, FastAPI, Django, Rich
- go-chi, Serde, Redis, Protocol Buffers
- Tauri, Git, Bun
Collection Notes
The collection contains source files that passed basic path and content filters. Documentation, tests, benchmarks, and vendored or dependency directories are excluded. The filters are heuristic and do not guarantee that every file is idiomatic, complete, or suitable for a particular training objective.
The source repositories have different licenses and retain their original copyright notices. other reflects that this combined corpus does not have one common license; it does not relicense the source code. Review the license and terms of each upstream repository before using or redistributing its contents.