File size: 2,077 Bytes
3d08a78
3ca6b7a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3eb86b4
40c1374
872d5cb
3d08a78
 
 
 
388de3e
 
 
 
 
 
 
 
 
 
 
 
 
 
3d08a78
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
---
language_creators:
- expert-generated
language:
- code
license:
- other
multilinguality:
- multilingual
pretty_name: Luau-Stack-HQ
task_categories:
- text-generation
tags:
- luau
- code
- roblox
- corpus
size_categories:
- 10K<n<100K
---

# Luau Stack HQ

Luau Stack HQ is a highly curated & deduplicated Luau source code from github repository with linter `(stylua)`, it contains **~16.29M** tokens `(21515 unique files & 259 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`, and `luau`.
    * **Quality:** Minimum of 5 stars.
    * **Relevance:** Because Luau is updated frequently, only repositories active or pushed within the last 2.5 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.

## # 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.