A large-scale dataset of valid Mufi programs for neural network training and compiler testing.
- Target Size: 100,000 programs
- Generated: 2026-02-08 19:50:53
- Format:
.mufisource files - Validation: All programs are syntactically and semantically valid
.
├── programs/ # All generated .mufi files
│ ├── prog_0.mufi
│ ├── prog_1.mufi
│ └── ...
├── metadata.json # Dataset statistics and metadata
├── README.md # This file
└── .gitignore # Git ignore rules
from pathlib import Path
dataset_dir = Path(".")
programs = list((dataset_dir / "programs").glob("*.mufi"))
for prog_file in programs:
with open(prog_file) as f:
code = f.read()
# Process code...# Run a single program
mufiz -r programs/prog_0.mufi
# Run all programs
for f in programs/*.mufi; do
mufiz -r "$f"
doneSee metadata.json for detailed statistics including:
- Total program count
- Generation time and rate
- Feature distribution
- Complexity metrics
To create compressed archives:
# Create tar.gz archive
tar -czf mufiz-dataset.tar.gz programs/
# Create zip archive
zip -r mufiz-dataset.zip programs/Or use the provided management tool:
python3 manage_dataset.py archive --format allAll programs in this dataset:
- ✅ Parse successfully (no syntax errors)
- ✅ Type-check correctly (no type errors)
- ✅ Execute without runtime errors
- ✅ Terminate properly (no infinite loops)
- ✅ Follow the official Mufi PEG grammar
This dataset is part of the MufiZ project.
If you use this dataset in your research, please cite:
@dataset{mufiz_epoch1_dataset,
title={Mufi-Lang Epoch 1 Dataset},
author={Mustafif Khan},
year={2026},
url={https://github.com/Mufi-Lang/Epoch1}
}