--- language_creators: - expert-generated language: - code license: - other multilinguality: - multilingual pretty_name: Luau-Stack-HQ task_categories: - text-generation tags: - luau - typescript - code - roblox - roblox-ts - corpus size_categories: - 10K[!Note] > Last collected: 2026-04-13 22:13 # Luau Stack HQ Luau Stack HQ is a highly curated & deduplicated Luau source code with **Type-script** included from github repository with linter `(stylua)`, it contains **~18.61M** tokens `(245316 unique files & 302 unique repo)`. It is built strictly for the training stages, providing a pristine density of type-safe, functional architecture without the noise of standard web scrapes. ## # Filtering Pipeline To ensure the highest quality data for pretraining, the dataset was built using a rigorous, multi-step extraction and filtering pipeline: * **Repository Selection:** * **Target Terms:** Searches focus on `rbx`, `rblx`, `roblox`, `luau`, `roblox-ts`, `rbxts`, `robloxts` and `roblox typescript`. * **Quality:** Minimum of 5 stars. * **Relevance:** Because Luau is updated frequently, only repositories active or pushed within the last 2.4 years are included. * **Repo Deduplication:** Forks are strictly excluded. * **Auto-Formatting (`StyLua`):** Every raw `.luau` and `.lua` file is piped through `StyLua` to ensure consistent syntax. Unparseable files are dropped. * **Cheat & Exploit Removal:** * Repositories with cheat-related keywords in their name, description, or topics (e.g., `aimbot`, `executor`, `synapse`, `krnl`) are blacklisted. * Code containing Roblox exploit globals (e.g., `getfenv`, `setfenv`, `hookfunction`, `loadstring`, `getrawmetatable`) is entirely discarded. * **Noise Reduction:** Test files, mocks, `.spec.` files, and compiled `/dist/` directories are ignored. Files smaller than 100 bytes or larger than 1MB are also excluded. ## # Repo Docs Please visit [khtsly/luau-repo-docs-text](https://huggingface.co/datasets/khtsly/luau-repo-docs-text) for the repo docs ## # Licensing The source code contained within this dataset belongs to their respective original authors. All data was sourced from public GitHub repositories under open-source licenses, with forks explicitly excluded. Please respect the original repository licenses when utilizing this dataset for commercial model training.