Datasets:
repo stringclasses 254
values | file_path stringlengths 29 241 | code stringlengths 100 233k | tokens int64 14 69.4k |
|---|---|---|---|
imezx/InfiniteMath | imezx-InfiniteMath-f44c4db/src/InfiniteMath/Int.luau | --!native
local Int = {}
Int.__index = Int
export type Int = typeof(setmetatable({
sign = 0 :: number, -- -1, 0, +1
limbs = {} :: { number }, -- little-endian uint32 limbs (base 2^32)
}, Int))
local function trimLimbs(limbs: { number })
while #limbs > 0 and limbs[#limbs] == 0 do
table.remove(limbs)
end
end
loc... | 2,047 |
imezx/InfiniteMath | imezx-InfiniteMath-f44c4db/src/InfiniteMath/Values/FullNames.luau | return {'Thousand','Million','Billion','Trillion','Quadrillion','Quintillion','Sextillion','Septillion','Octillion','Nonillion','Decillion','Undecillion','Duodecillion','Tredecillion','Quattuordecillion','Quindecillion','Sedecillion','Septendecillion','Octodecillion','Novendecillion','Vigintillion','Unvigintillion','Du... | 40,396 |
imezx/InfiniteMath | imezx-InfiniteMath-f44c4db/src/InfiniteMath/Values/Suffixes.luau | return {'K','M','B','T','Q','QN','S','SP','O','N','D','UD','DD','TD','QD','QND','SD','SPD','OD','ND','V','UV','DV','TV','QV','QNV','SV','SPV','OV','NV','TG','UTG','DTG','TTG','QTG','QNTG','STG','SPTG','OTG','NTG','QG','UQG','DQG','TQG','QQG','QNQG','SQG','SPQG','OQG','NQG','QQ','UQQ','DQQ','TQQ','QQQ','QNQQ','SQQ','SPQ... | 14,331 |
imezx/InfiniteMath | imezx-InfiniteMath-f44c4db/src/InfiniteMath/init.luau | --!native
-- forked by @EternityDev
-- originally created by @KdudeDev
--[=[
@class InfiniteMath
InfiniteMath is module that allows you to surpass the limit of -10^308 to 10^308, with a new limit of -10^^308 to 10^^308 (1 with 10^308 zeros)
InfiniteMath has many of the functions from the math library, as well as ... | 8,306 |
imezx/JPSPlus | imezx-JPSPlus-127f489/benchmark.luau | "--!native\n--!optimize 2\nlocal RunService = game:GetService(\"RunService\")\n\nlocal JPSPlus = req(...TRUNCATED) | 1,686 |
imezx/JPSPlus | imezx-JPSPlus-127f489/playground/WorldGrid.luau | "local WorldGrid = {}\nWorldGrid.__index = WorldGrid\n\nfunction WorldGrid.new(origin: Vector3, cell(...TRUNCATED) | 218 |
imezx/JPSPlus | imezx-JPSPlus-127f489/src/dirs.luau | "--!optimize 2\nlocal Dirs = {}\n\n@native\nlocal function bit(d) return bit32.lshift(1, d-1) end\n\(...TRUNCATED) | 648 |
imezx/JPSPlus | imezx-JPSPlus-127f489/src/grid.luau | "--!optimize 2\nlocal Grid = {}\nGrid.__index = Grid\n\nGrid.DiagonalPolicy = {\n\tAlways = \"Always(...TRUNCATED) | 485 |
imezx/JPSPlus | imezx-JPSPlus-127f489/src/init.luau | "--@EternityDev\n-- Jump Point Search Plus (JPS+)\nlocal JPSPlus = {}\n\nJPSPlus.dirs = require(\"@s(...TRUNCATED) | 86 |
imezx/JPSPlus | imezx-JPSPlus-127f489/src/planner.luau | "--!native\n--!optimize 2\nlocal Dirs = require(\"./dirs\")\nlocal PQ = require(\"./priorityqueue\")(...TRUNCATED) | 2,695 |
Luau Stack HQ
Luau Stack HQ is a highly curated & deduplicated Luau source code from github repository with linter (stylua), it contains ~16.48M tokens (21704 unique files & 276 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, andluau.- 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.luauand.luafile is piped throughStyLuato 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.
- Code containing Roblox exploit globals (e.g.,
- 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 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.
- Downloads last month
- 276