messages listlengths 1 1 |
|---|
[
{
"role": "assistant",
"content": "--[[\n\tA way to dynamically fetch the F3X module with require()'s ModuleScript sandboxing.\n]]\n\nscript:Destroy()\n-- selene: allow(incorrect_standard_library_use)\nscript = nil\n\nreturn select(2, pcall(function()\n\treturn require(580330877)()\nend)) or true\n"
}
] |
[
{
"role": "assistant",
"content": "--# selene: allow(incorrect_standard_library_use, multiple_statements, shadowing, unused_variable, empty_if, divide_by_zero, unbalanced_assignments)\n--[[--------------------------------------------------------------------\n\n ldump.lua\n Save precompiled Lua chunks\n T... |
[
{
"role": "assistant",
"content": "--# selene: allow(incorrect_standard_library_use, multiple_statements, shadowing, unused_variable, empty_if, divide_by_zero, unbalanced_assignments)\n--[[--------------------------------------------------------------------\n\n llex.lua\n Lua lexical analyzer in Lua\n Th... |
[
{
"role": "assistant",
"content": "--# selene: allow(incorrect_standard_library_use, multiple_statements, shadowing, unused_variable, empty_if, divide_by_zero, unbalanced_assignments)\n--[[--------------------------------------------------------------------\n\n lzio.lua\n Lua buffered streams in Lua\n Th... |
[
{
"role": "assistant",
"content": "--# selene: allow(incorrect_standard_library_use)\n--[[\n\tCredit to einsteinK.\n\tCredit to Stravant for LBI.\n\tCredit to ccuser44 for proto conversion.\n\n\tCredit to the creators of all the other modules used in this.\n\t\n\tSceleratis was here and decided modify some ... |
[
{
"role": "assistant",
"content": "--# selene: allow(incorrect_standard_library_use)\nif script.Parent then\n\tlocal dTargetVal = script:WaitForChild(\"Runner\")\n\tlocal parentVal = script:WaitForChild(\"mParent\")\n\tlocal modelVal = script:WaitForChild(\"Model\")\n\tlocal modeVal = script:WaitForChild(\"... |
[
{
"role": "assistant",
"content": "--[[\n\tDescription: Searches the place for existing Adonis items and registers them.\n\tAuthor: Sceleratis\n\tDate: 4/3/2022\n--]]\n\nreturn function(Vargs, GetEnv)\n\tlocal server = Vargs.Server;\n\tlocal service = Vargs.Service;\n\n\tlocal Settings = server.Settings\n\t... |
[
{
"role": "assistant",
"content": "--// NOTE: THIS IS NOT A *CONFIG/USER* PLUGIN! ANYTHING IN THE MAINMODULE PLUGIN FOLDERS IS ALREADY PART OF/LOADED BY THE SCRIPT! DO NOT ADD THEM TO YOUR CONFIG>PLUGINS FOLDER!\n\nreturn function(Vargs, GetEnv)\n\tlocal server = Vargs.Server;\n\tlocal service = Vargs.Servi... |
[
{
"role": "assistant",
"content": "-- Trello plugin\ntype Card = {id: string, name: string, desc: string, labels: {any}?}\ntype List = {id: string, name: string, cards: {Card}}\n\nreturn function(Vargs, GetEnv)\n\tlocal server = Vargs.Server;\n\tlocal service = Vargs.Service;\n\n\tlocal Settings = server.Se... |
[
{
"role": "assistant",
"content": "return function(Vargs, GetEnv)\n\tlocal server = Vargs.Server;\n\tlocal service = Vargs.Service;\n\n\tlocal Settings = server.Settings\n\tlocal Functions, Commands, Admin, Anti, Core, HTTP, Logs, Remote, Process, Variables, Deps =\n\t\tserver.Functions, server.Commands, se... |
[
{
"role": "assistant",
"content": "--!native\n--// File: LinkedList.lua\n--// Desc: Provides a more performance-friendly alternative to large tables that get shifted in indexes constantly\n--// Author: Coasterteam\nlocal LinkedList = {}\nLinkedList.__index = LinkedList \nLinkedList.__meta = \"DLL\"\n\nlocal... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n--!nolint TableOperations\n--# selene: allow(multiple_statements, mixed_table)\n--[[\nFiOne\nCopyright (C) 2021 Rerumu\n\nThis program is free software: you can redistribute it and/or modify\nit under the terms of the GNU General Public License a... |
[
{
"role": "assistant",
"content": "--!native\n--------------------------------------------------------------------------------\n-- Batched Yield-Safe Signal Implementation --\n-- This is a Signal class which has effectively identical behavior to a --\n-- normal RBXScr... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n--!strict\n--[[\n\tDescription: SHA256 digest hash\n\tAuthor: XoifailTheGod\n\tDate: 2024\n\tLink: https://devforum.roblox.com/t/fastest-sha256-module/3180016\n]]\n\nlocal MODULO = 2^32\nlocal BYTE, DWORD = 1, 4\n\nlocal CONSTANTS = buffer.create(... |
[
{
"role": "assistant",
"content": "--[[\n\t════════════════════════════════════════════\n\tMaterial Icons Collection for Roblox\n\t\tUploaded painstakingly by @Expertcoderz\n\t\tImages are licensed under Apache 2.0 license\n\t\tSourced from Google LLC:\n\t\t\thttps://fonts.google.com/icons\n\t\t\t('Sharp' s... |
[
{
"role": "assistant",
"content": "--!native\n--[[ \n\n\tt: a runtime typechecker for Roblox\n\tby osyrisrblx\n\tMIT License\n\n]]\n\nlocal t = {}\n\nfunction t.type(typeName)\n\treturn function(value)\n\t\tlocal valueType = type(value)\n\t\tif valueType == typeName then\n\t\t\treturn true\n\t\telse\n\t\t\t... |
[
{
"role": "assistant",
"content": "--[[\n \t\t _ _ _ _ _ _ \n \t\t/ \\ __| | ___ _ __ (_)___ / \\ __| |_ __ ___ (_)_ __ \n\t / _ \\ / _` |/ _ \\| '_ \\| / __| / _ \\ / _` | '_ ` _ \\| | '_ \\ \n\t / ___ \\ (_| | (_) | | | | \\__ \\ / ___ \\ (_... |
[
{
"role": "assistant",
"content": "local Charm = require(script.Parent.Parent.Charm)\nlocal patch = require(script.Parent.patch)\nlocal types = require(script.Parent.types)\ntype AtomMap = types.AtomMap\ntype SyncPayload = types.SyncPayload\n\ntype ClientOptions = {\n\t--[=[\n\t\tThe atoms to synchronize wi... |
[
{
"role": "assistant",
"content": "local types = require(script.Parent.types)\ntype AtomMap = types.AtomMap\n\ntype NestedAtomMap = {\n\t[string]: NestedAtomMap | () -> (),\n}\n\nlocal function flatten(atoms: NestedAtomMap): AtomMap\n\tlocal result: AtomMap = {}\n\n\tlocal function visit(node: NestedAtomMap... |
[
{
"role": "assistant",
"content": "local client = require(script.client)\nlocal flatten = require(script.flatten)\nlocal patch = require(script.patch)\nlocal server = require(script.server)\nlocal types = require(script.types)\n\nexport type SyncPayload = types.SyncPayload\n\n--[=[\n\tSynchronizes state bet... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\n\n--[=[\n\tSchedules a function to be called at a fixed interval of `seconds`.\n\t\n\t@param callback The function to call.\n\t@param seconds The interval in seconds.\n\t@return A function that cancels the interval.\n]=]\... |
[
{
"role": "assistant",
"content": "local validate = require(script.Parent.validate)\n\nlocal __DEV__ = _G.__DEV__\n\n--[=[\n\tA special symbol that denotes the absence of a value. Used to represent\n\tdeleted values in patches.\n]=]\nlocal None = { __none = \"__none\" }\n\nlocal function isNone(value: any):... |
[
{
"role": "assistant",
"content": "local Players = game:GetService(\"Players\")\n\nlocal Charm = require(script.Parent.Parent.Charm)\nlocal interval = require(script.Parent.interval)\nlocal patch = require(script.Parent.patch)\nlocal types = require(script.Parent.types)\ntype AtomMap = types.AtomMap\ntype S... |
[
{
"role": "assistant",
"content": "local Charm = require(script.Parent.Parent.Charm)\ntype Atom<T> = Charm.Atom<T>\n\n--[=[\n\tA payload that can be sent from the server to the client to synchronize\n\tstate between the two.\n]=]\nexport type SyncPayload = {\n\ttype: \"init\",\n\tdata: { [string | number]: ... |
[
{
"role": "assistant",
"content": "local SAFE_KEYS = { string = true, number = true }\nlocal UNSAFE_VALUES = { [\"function\"] = true, thread = true }\n\nlocal function isTableUnsafe(object: { [any]: any })\n\tlocal keyType = nil\n\tlocal objectSize = 0\n\n\t-- All keys must have the same type\n\tfor key in ... |
[
{
"role": "assistant",
"content": "local store = require(script.Parent.store)\nlocal types = require(script.Parent.types)\ntype Atom<T> = types.Atom<T>\ntype AtomOptions<T> = types.AtomOptions<T>\n\n--[=[\n\tCreates a new atom with the given state.\n\t\n\t@param state The initial state.\n\t@param options Op... |
[
{
"role": "assistant",
"content": "local atom = require(script.Parent.atom)\nlocal store = require(script.Parent.store)\nlocal types = require(script.Parent.types)\ntype AtomOptions<T> = types.AtomOptions<T>\ntype Selector<T> = types.Selector<T>\n\n--[=[\n\tCreates a read-only atom that derives its state fr... |
[
{
"role": "assistant",
"content": "local store = require(script.Parent.store)\n\ntype Cleanup = () -> ()\n\n--[=[\n\tRuns the given callback immediately and whenever any atom it depends on\n\tchanges. Returns a cleanup function that unsubscribes the callback.\n\t\n\t@param callback The function to run.\n\t@... |
[
{
"role": "assistant",
"content": "local atom = require(script.atom)\nlocal computed = require(script.computed)\nlocal effect = require(script.effect)\nlocal mapped = require(script.mapped)\nlocal observe = require(script.observe)\nlocal store = require(script.store)\nlocal subscribe = require(script.subscr... |
[
{
"role": "assistant",
"content": "local atom = require(script.Parent.atom)\nlocal store = require(script.Parent.store)\nlocal subscribe = require(script.Parent.subscribe)\nlocal types = require(script.Parent.types)\ntype Atom<T> = types.Atom<T>\ntype Selector<T> = types.Selector<T>\n\ntype Map =\n\t(<K0, V... |
[
{
"role": "assistant",
"content": "local store = require(script.Parent.store)\nlocal subscribe = require(script.Parent.subscribe)\nlocal types = require(script.Parent.types)\ntype Selector<T> = types.Selector<T>\n\nlocal function noop() end\n\n--[=[\n\tCreates an instance of `factory` for each item in the a... |
[
{
"role": "assistant",
"content": "local types = require(script.Parent.types)\ntype Atom<T> = types.Atom<T>\ntype Set<T> = types.Set<T>\ntype WeakMap<K, V> = types.WeakMap<K, V>\n\nlocal __DEV__ = _G.__DEV__\n\nlocal listeners: WeakMap<Atom<any>, WeakMap<() -> (), unknown>> = setmetatable({}, { __mode = \"k... |
[
{
"role": "assistant",
"content": "local store = require(script.Parent.store)\nlocal types = require(script.Parent.types)\ntype Selector<T> = types.Selector<T>\n\n--[=[\n\tSubscribes to changes in the given atom or selector. The callback is\n\tcalled with the current state and the previous state immediately... |
[
{
"role": "assistant",
"content": "export type Set<T> = { [T]: true }\n\nexport type WeakMap<K, V> = typeof(setmetatable({} :: { [K]: V }, { __mode = \"k\" }))\n\n--[=[\n\tA primitive state container that can be read from and written to. When the\n\tstate changes, all subscribers are notified.\n\n\t@param s... |
[
{
"role": "assistant",
"content": "local Charm = require(script.Parent.Charm)\nlocal React = if script.Parent:FindFirstChild(\"react\")\n\tthen require(script.Parent.react) :: never\n\telse require(script.Parent.React)\n\n--[=[\n\tA hook that subscribes to changes in the given atom or selector. The\n\tcompo... |
[
{
"role": "assistant",
"content": "local Charm = require(script.Parent.Charm)\nlocal Vide = if script.Parent:FindFirstChild(\"vide\")\n\tthen require(script.Parent.vide.src) :: never\n\telse require(script.Parent.Vide)\n\n--[=[\n\tSubscribes to the state of an atom and returns a Vide source.\n\t\n\t@param c... |
[
{
"role": "assistant",
"content": "-- Remodel Publish script\n\nlocal KNIT_ASSET_ID = \"5530714855\"\n\nprint(\"Loading Knit\")\nlocal place = remodel.readPlaceFile(\"Knit.rbxl\")\nlocal Packages = place.ReplicatedStorage.Packages\nPackages.Knit.Packages:Destroy()\n\nprint(\"Writing Knit module to model fil... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\n\nif RunService:IsServer() then\n\treturn require(script.KnitServer)\nelse\n\tlocal KnitServer = script:FindFirstChild(\"KnitServer\")\n\tif KnitServer and RunService:IsRunning() then\n\t\tKnitServer:Destroy()\n\tend\n\n\... |
[
{
"role": "assistant",
"content": "local channel_state = require(\"../process/channel_state\")\nlocal types = require(\"../types\")\n\n--[[\n\tCreate a new array with the given dataTypeInterface\n]]\n@native\nlocal function array<T>(value_ty: types.DataType<T>): types.DataType<{ T }>\n\tlocal val_write = va... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal bool_modifier = {\n\t[1] = true,\n\t[0] = false,\n}\nlocal bool_modifier2 = {\n\t[true] = 1,\n\t[false] = 0,\n}\n\nlocal bool_data_type = {\n\t__T = (nil :: any) :: boolean,\n\n\t--[[\n\t\t1 = true\n\t\t0 = false\n\t\t\n\t\tWrit... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal buff = {\n\tread = @native function(b: buffer, cursor: number)\n\t\tlocal length = buffer.readu16(b, cursor)\n\t\tlocal freshBuffer = buffer.create(length)\n\n\t\t-- copy the data from the main buffer to the new buffer with an o... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal cframe: types.DataType<CFrame> = {\n\t__T = ... :: CFrame,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\tlocal x = buffer.readf32(b, cursor)\n\t\tlocal y = buffer.readf32(b, cursor + 4)\n\t\tlocal z = buffer.readf... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal color3 = {\n\t__T = ... :: Color3,\n\n\twrite = @native function(input: Color3)\n\t\talloc(3)\n\t\tuint8NoAlloc(input.R * 255)\n\t\tuint8NoAlloc(input.G * 255)\n\t\tuint8NoAlloc(input.B * 255)\n\tend,\n\n\tread = @native functio... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal float32: types.DataType<number> = {\n\t__T = ... :: number,\n\n\twrite = f32,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readf32(b, cursor), 4\n\tend,\n}\n\nreturn @native function(): types.DataTy... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal float64: types.DataType<number> = {\n\t__T = ... :: number,\n\n\twrite = writef64,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readf64(b, cursor), 8\n\tend,\n}\n\nreturn @native function(): types.D... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nreturn @native function(): types.DataType<Instance?>\n\treturn {\n\t\twrite = @native function(value)\n\t\t\talloc(1)\n\t\t\twriteReference(value)\n\t\tend,\n\n\t\tread = @native function(b: buffer, cursor: number)\n\t\t\tlocal refs =... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal int16 = {\n\twrite = writei16,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readi16(b, cursor), 2\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn int16\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal int32 = {\n\twrite = writei32,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readi32(b, cursor), 4\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn int32\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal int8 = {\n\twrite = writei8,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readi8(b, cursor), 1\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn int8\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\n@native\nlocal function map(\n\tkeyType: types.DataType<any>,\n\tvalueType: types.DataType<any>\n): types.DataType<{ [any]: any }>\n\t-- Cache these functions to avoid the overhead of the index\n\tlocal key_write = keyType.write\n\tlo... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal nothing = {\n\twrite = @native function() end,\n\n\tread = @native function()\n\t\treturn nil, 0\n\tend,\n}\n\nreturn @native function(): types.DataType<nil>\n\treturn nothing\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\n@native\nlocal function optional<T>(value_type: types.DataType<T>): types.DataType<T?>\n\tlocal value_read = value_type.read\n\tlocal value_write = value_type.write\n\n\treturn {\n\t\t--[[\n\t\t\tfirst byte is a boolean, if it's true,... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal str = {\n\t-- 2 bytes for the length, then the string\n\n\tread = @native function(b: buffer, cursor: number)\n\t\tlocal length = buffer.readu16(b, cursor)\n\n\t\treturn buffer.readstring(b, cursor + 2, length), length + 2\n\ten... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\ntype structData = {\n\t[string]: number,\n}\n\nreturn function<T, V>(input: T & {\n\t[string]: types.DataType<V>,\n}): types.DataType<T>\n\tlocal index_value_type_pairs: {\n\t\t[number]: types.DataType<any>,\n\t} = {}\n\tlocal index_k... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal uint16 = {\n\twrite = writeu16,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readu16(b, cursor), 2\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn uint16\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal uint32 = {\n\twrite = writeu32,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readu32(b, cursor), 4\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn uint32\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal uint8 = {\n\twrite = writeu8,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn buffer.readu8(b, cursor), 1\n\tend,\n}\n\nreturn @native function(): types.DataType<number>\n\treturn uint8\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local read_refs = require(\"../process/readRefs\")\nlocal types = require(\"../types\")\n\n@native\nlocal function unknown(): types.DataType<unknown>\n\treturn {\n\t\twrite = @native function(value: unknown)\n\t\t\talloc(1)\n\t\t\twriteReference(value)\n\t\tend,\n\n\t\trea... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal vec2 = {\n\t--[[\n\t\t2 float32s, one for X, one for Y\n\t]]\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn Vector2.new(buffer.readf32(b, cursor), buffer.readf32(b, cursor + 4)), 8\n\tend,\n\n\twrite = @nati... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal vec3 = {\n\t__T = ... :: vector,\n\n\tread = @native function(b: buffer, cursor: number)\n\t\treturn vector.create(\n\t\t\tbuffer.readf32(b, cursor),\n\t\t\tbuffer.readf32(b, cursor + 4),\n\t\t\tbuffer.readf32(b, cursor + 8)\n\t... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\n\nlocal array = require(\"@self/data_types/array\")\nlocal bool = require(\"@self/data_types/bool\")\nlocal buff = require(\"@self/data_types/buff\")\nlocal cframe = require(\"@self/data_types/cframe\")\nlocal client = re... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\nlocal Players = game:GetService(\"Players\")\nlocal RunService = game:GetService(\"RunService\")\n\nlocal types = require(\"../types\")\nlocal client = require(\"../process/client\")\nlocal server = require(\"../process/server\")\n\nlocal run_cont... |
[
{
"role": "assistant",
"content": "local types = require(\"../types\")\n\nlocal channel_state: types.ChannelState = {\n\tbuff = buffer.create(0),\n\tref_map = {},\n\tcursor = 0,\n}\n\nreturn channel_state\n"
}
] |
[
{
"role": "assistant",
"content": "local ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\nlocal RunService = game:GetService(\"RunService\")\n\nlocal read = require(\"./read\")\nlocal types = require(\"../types\")\n\n@native\nlocal function onClientEvent(receivedBuffer, ref)\n\tread(receivedBuffe... |
[
{
"role": "assistant",
"content": "--!optimize 2\n--!native\nlocal packetIDs = require(\"../a\")\nlocal readRefs = require(\"./readRefs\")\n\nlocal ref = packetIDs.ref()\nlocal free_thread: thread?\n\n@native\nlocal function function_passer(fn, ...)\n\tlocal aquiredThread = free_thread\n\tfree_thread = nil\... |
[
{
"role": "assistant",
"content": "--!native\nlocal Players = game:GetService(\"Players\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\nlocal RunService = game:GetService(\"RunService\")\n\nlocal buffer_writer = require(\"./buffer_writer\")\nlocal read = require(\"./read\")\nlocal type... |
[
{
"role": "assistant",
"content": "export type ChannelState = {\n\tbuff: buffer,\n\tcursor: number,\n\tref_map: { [number]: unknown },\n}\n\nexport type PacketProps<T> = {\n\tvalue: T,\n\n\treliability: (\"Reliable\" | \"Unreliable\")?,\n\n\tmax_per_frame: number?,\n}\n\nexport type DataType<T> = {\n\tread ... |
[
{
"role": "assistant",
"content": "local fs = require(\"@lune/fs\")\nlocal log = require(\"./libs/log\")\nlocal process = require(\"@lune/process\")\n\ntype Archs = | \"aarch64\" | \"x86_64\"\n\ntype Platforms = | \"macos\" | \"linux\" | \"windows\"\n\nlocal EXE_NAME = \"blink\"\n\nlocal RELEASE_DIR = \"rel... |
[
{
"role": "assistant",
"content": "local darklua_version = require(\"./libs/darklua_version\")\nlocal pesde_version = require(\"./libs/pesde_version\")\nlocal stdio = require(\"@lune/stdio\")\n\nlocal PESDE_CONFIG = \"pesde.toml\"\nlocal DARKLUA_CONFIG = \"build/.darklua.json\"\n\nlocal curr_version = darkl... |
[
{
"role": "assistant",
"content": "local fs = require(\"@lune/fs\")\nlocal serde = require(\"@lune/serde\")\nlocal log = require(\"./log\")\n\ntype DarkluaRules = \n | \"inject_global_value\"\n | \"N/A\"\n\ntype DarkluaConfig = {\n rules: {\n DarkluaRules | {\n rule: DarkluaRules,... |
[
{
"role": "assistant",
"content": "local fs = require(\"@lune/fs\")\nlocal log = require(\"./log\")\nlocal serde = require(\"@lune/serde\")\n\ntype PesdeConfig = {\n\tversion: string,\n}\n\nlocal function read_version(config_path: string): string\n\tlocal contents = fs.readFile(config_path)\n\tlocal config ... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\nif not RunService:IsRunning() then\n\tprint(\"Press F5 to start the benchmark.\")\n\twhile task.wait(9e9) do\n\tend\nend\n\nlocal Result: StringValue\nwhile Result == nil do\n\tResult = game:FindFirstChild(\"Result\")\n\t... |
[
{
"role": "assistant",
"content": "local Benches = require(\"./shared/benches\")\nlocal Modes = require(\"./shared/modes\")\n\nlocal HttpService = game:GetService(\"HttpService\")\nlocal Players = game:GetService(\"Players\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\nlocal RunServic... |
[
{
"role": "assistant",
"content": "local HttpService = game:GetService(\"HttpService\")\nlocal ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\n\nlocal Benches = require(\"./shared/benches\")\nlocal Modes = require(\"./shared/modes\")\n\nfunction CompareTables(a, b)\n\tif a == b then\n\t\treturn ... |
[
{
"role": "assistant",
"content": "local Array = {}\nfor Index = 1, 100 do\n\ttable.insert(Array, {\n\t\tid = math.random(1, 255),\n\t\tx = math.random(1, 255),\n\t\ty = math.random(1, 255),\n\t\tz = math.random(1, 255),\n\t\torientation = math.random(1, 255),\n\t\tanimation = math.random(1, 255),\n\t})\nen... |
[
{
"role": "assistant",
"content": "local Benches = {}\nfor Index, Bench in script:GetChildren() do\n\t--> Reset random seed to a constant value\n\t--> This results in the same values being generated on both server and client\n\tmath.randomseed(0)\n\tBenches[Bench.Name] = require(Bench)\nend\nreturn Benches\... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\nif RunService:IsServer() then\n\treturn require(\"../blink/Server\")\nelseif RunService:IsClient() then\n\treturn require(\"../blink/Client\")\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local DISABLED_MODES = {\n\twarp = true,\n}\n\nlocal Modes = {}\nfor Index, Mode in script:GetChildren() do\n\tif DISABLED_MODES[Mode.Name] then\n\t\tcontinue\n\tend\n\n\tModes[Mode.Name] = require(Mode)\nend\n\nreturn Modes\n"
}
] |
[
{
"role": "assistant",
"content": "local ReplicatedStorage = game:GetService(\"ReplicatedStorage\")\nlocal RunService = game:GetService(\"RunService\")\n\nlocal Benches = require(\"../benches\")\n\nlocal Events = {}\nlocal IsServer = RunService:IsServer()\n\nfor Name in Benches do\n\tlocal Event: RemoteEven... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\n\nlocal Benches = require(\"../benches\")\nlocal Warp = require(\"../../../packages/warp\")\n\nlocal Events = {}\nlocal Method = RunService:IsServer() and \"Server\" or \"Client\"\n\nfor Name in Benches do\n\tEvents[Name]... |
[
{
"role": "assistant",
"content": "local RunService = game:GetService(\"RunService\")\nif RunService:IsServer() then\n\treturn require(\"../zap/Server\")\nelseif RunService:IsClient() then\n\treturn require(\"../zap/Client\")\nend\n"
}
] |
[
{
"role": "assistant",
"content": "local Hook = {}\n\nlocal Brackets = {\n\t[\"(\"] = \")\",\n\t[\"{\"] = \"}\",\n\t[\"[\"] = \"]\",\n\t[\"<\"] = \">\",\n}\n\nlocal ClosingBrackets = {\n\t[\")\"] = true,\n\t[\"}\"] = true,\n\t[\"]\"] = true,\n\t[\">\"] = true,\n}\n\nlocal IgnoredCharacters = {\n\t[\"\\n\"] ... |
[
{
"role": "assistant",
"content": "local Utility = require(\"../Utility\")\n\nlocal Hook = {}\nlocal IndentKeywords = {\n\t\"{\\n\",\n}\n\nlocal function ShouldAutoIndent(Text: string, Cursor: number): boolean\n\tfor Index, Keyword in IndentKeywords do\n\t\tlocal Position = (Cursor - #Keyword)\n\t\tif Posit... |
[
{
"role": "assistant",
"content": "--!strict\n\n-- ******************************* --\n-- \t\t\tAX3NX / AXEN\t\t --\n-- ******************************* --\n\n---- Services ----\n\nlocal ContentProvider = game:GetService(\"ContentProvider\")\nlocal RunService = game:GetService(\"RunService\")\nlocal TextSe... |
[
{
"role": "assistant",
"content": "--!strict\n\n---- Services ----\n\n---- Imports ----\n\n---- Settings ----\n\n---- Constants ----\n\nlocal Profiler = {}\n\n--> Interface Instances\nlocal Container: typeof(script.Parent.Widget) = script.Widget\nlocal DebugContainer = Container.Debug\nlocal MetricTemplate ... |
[
{
"role": "assistant",
"content": "--!strict\n\n-- ******************************* --\n-- \t\t\tAX3NX / AXEN\t\t --\n-- ******************************* --\n\n---- Services ----\n\n---- Imports ----\n\n---- Settings ----\n\n---- Constants ----\n\nlocal State = {}\nState.__index = State\n\nexport type Class... |
[
{
"role": "assistant",
"content": "local Table = {}\n\nfunction Table.MergeArrays(a: { any }, b: { any }): { any }\n\tlocal Array = table.create(#a + #b)\n\n\tfor _, Element in a do\n\t\ttable.insert(Array, Element)\n\tend\n\n\tfor _, Element in b do\n\t\ttable.insert(Array, Element)\n\tend\n\n\treturn Arra... |
[
{
"role": "assistant",
"content": "--!strict\n\n-- ******************************* --\n-- \t\t\tAX3NX / AXEN\t\t --\n-- ******************************* --\n\n---- Services ----\n\nlocal RunService = game:GetService(\"RunService\")\nlocal ScriptEditorService = game:GetService(\"ScriptEditorService\")\nloca... |
[
{
"role": "assistant",
"content": "--!strict\n\n---- Imports ----\n\nlocal PathParser = require(\"../../Modules/Path\")\nlocal fs = require(\"@lune/fs\")\n\n---- Settings ----\n\nlocal EXTENSIONS = { \"\", \".txt\", \".blink\" }\n\nreturn function(Path: string): string\n\tlocal Directory, Filename = PathPar... |
[
{
"role": "assistant",
"content": "--!strict\n\n---- Imports ----\n\nlocal dateTime = require(\"@lune/datetime\")\nlocal fs = require(\"@lune/fs\")\nlocal stdio = require(\"@lune/stdio\")\nlocal task = require(\"@lune/task\")\n\nlocal Compile = require(\"./Compile\")\nlocal GetDefinitionFilePath = require(\... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n\n---- Imports ----\n\nlocal process = require(\"@lune/process\")\nlocal stdio = require(\"@lune/stdio\")\n\nlocal Compile = require(\"@self/Utility/Compile\")\nlocal Watch = require(\"@self/Utility/Watch\")\n\n---- Settings ----\n\ntype Argument ... |
[
{
"role": "assistant",
"content": "type BranchType = \"Conditional\" | \"Default\"\ntype EqualityOperator = \"Not\" | \"Equals\" | \"Greater\" | \"Less\" | \"GreaterOrEquals\" | \"LessOrEquals\"\n\ntype Method = \"Read\" | \"Allocate\" | \"None\"\ntype Operation = {\n\tMethod: Method,\n\tBytes: number,\n\tC... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n\nlocal Blocks = require(\"./Blocks\")\nlocal Parser = require(\"../Parser\")\n\ntype Block = Blocks.Block\ntype Writer = (Value: string, Block: Block, Range: NumberRange?, Components: { string }?) -> ()\ntype Reader = (Variable: string, Block: Bl... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n\nlocal Builder = {}\n\nfunction Builder.new(): Builder\n\tlocal Strings = table.create(512)\n\n\tlocal function PushLines(Lines: { string }, Returns: number?, Tabs: number?)\n\t\tlocal Size = #Lines\n\t\tlocal Last = Lines[Size]\n\n\t\tlocal Tabs... |
[
{
"role": "assistant",
"content": "--!native\n--!optimize 2\n\nlocal IS_ROBLOX = (game ~= nil)\n\nlocal stdio\nlocal process\nif not IS_ROBLOX then\n\tstdio = require(\"@lune/stdio\")\n\tprocess = require(\"@lune/process\")\nend\n\ntype Slice = {\n\tLine: number,\n\tText: string,\n\tSpaces: number,\n\tUnder... |
[
{
"role": "assistant",
"content": "--!strict\n\nlocal stdio = require(\"@lune/stdio\")\n\nlocal function Style(text: any, style: stdio.Style): string\n\treturn `{stdio.style(style)}{text}{stdio.style(\"reset\")}`\nend\n\nlocal function Color(text: any, color: stdio.Color): string\n\treturn `{stdio.color(col... |
[
{
"role": "assistant",
"content": "--!strict\n\n---- Imports ----\n\n---- Settings ----\n\n---- Constants ----\n\nlocal Utility = {}\n\n---- Variables ----\n\n---- Private Functions ----\n\n---- Public Functions ----\n\nfunction Utility.PathType(Path: string): \"absolute\" | \"relative\"\n\t-- on unix-based... |
[
{
"role": "assistant",
"content": "return {\n\tMerge = function(...: { any }): { any }\n\t\tlocal Tables = { ... }\n\t\tlocal Allocate = 0\n\n\t\tfor _, Table in Tables do\n\t\t\tAllocate += #Table\n\t\tend\n\n\t\tlocal Index = 1\n\t\tlocal Merged = table.create(Allocate)\n\n\t\tfor _, Table in Tables do\n\... |
[
{
"role": "assistant",
"content": "type NumberRange = { Min: number, Max: number }\nlocal NumberRange = {\n\tnew = function(Min: number, Max: number?): NumberRange\n\t\treturn {\n\t\t\tMin = Min,\n\t\t\tMax = Max or Min,\n\t\t}\n\tend,\n}\n\nexport type Case = \"Camel\" | \"Snake\" | \"Pascal\"\nexport type... |
[
{
"role": "assistant",
"content": "return [[local Invocations = 0\n\nlocal SendSize = 64\nlocal SendOffset = 0\nlocal SendCursor = 0\nlocal SendBuffer = buffer.create(64)\nlocal SendInstances = {}\n\nlocal RecieveCursor = 0\nlocal RecieveBuffer = buffer.create(64)\n\nlocal RecieveInstances = {}\nlocal Recie... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.