repo
stringclasses
350 values
file_path
stringlengths
29
200
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.01M
tokens
int64
2
598k
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/els/rotators/rotator.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local popup = require(root.Plugin.Compo...
3,533
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/init.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plugin.chassisHandler) local log = require(root.Plug...
2,897
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/savePopup.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local plugin = root:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.type...
5,282
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/createChildren.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local assets = require(root.Plugin.assets) loc...
5,154
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/functions/activationsPage.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plu...
5,455
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/functions/functionsPage.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plu...
2,507
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/functions/init.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plugin.cha...
1,433
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/lightSettings/colors.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plu...
1,960
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/lightSettings/init.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plugin.cha...
3,032
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/lightSettings/lightGroups.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local assets = require(root.Plugin.asse...
3,450
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/lightSettings/mainSettings.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plu...
2,244
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/setup/sirens.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local chassisHandler = require(root.Plugin.cha...
4,385
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/main/topbar.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local popup = require(root.Plugin.Components.popup) l...
3,170
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/credits.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local types = require(root.Plugin.types) local assets = require(root.Plugin.assets) local RedonUI = require(root.Packages["redon-ui"]) local pageBase = require(script.Paren...
1,631
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/help.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local pageBase = require(script.Parent.pageBase) local components = { pageBase ...
1,364
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/home.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local plugin = root:FindFirstAncestorWhichIsA("Plugin") local Selection = game:GetService("Selection") local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = requ...
2,468
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/init.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local widget = require(script.Parent.base.widget) local components = { widget = widget...
1,134
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/pageBase.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) type props = { Name: string, PrimaryColor: Fusion.UsedAs<"Primary" | "Alterna...
731
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/scriptInjectionRequired.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local plugin = root:FindFirstAncestorWhichIsA("Plugin") local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) type props = { CurrentP...
1,101
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/settings.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local settings = require(root.Plugin.settings) local pageBase = require(script.P...
945
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/menu/vehicle.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local types = require(root.Plugin.types) local vehicle = require(root.Plugin.vehicle) local assets = require(root.Plugin.assets) local pageBase = require(script.Parent.page...
868
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/popup.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) type action = { text: Fusion.UsedAs<string>, type: "standard" | "primary" | "danger",...
2,145
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/viewport/billboards.luau
luau
.luau
local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local assets = require(root.Plugin.assets) local types = require(root.Plugin.types) return function( scope: types.Scope, props: { attachments: Fusion.UsedAs<{ Attachment ...
833
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/viewport/configuring.luau
luau
.luau
--#selene: allow(shadowing) local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local types = require(root.Plugin.types) local vehicle = require(root.Plugin.vehicle) local log = require(root.Plugin.log) return function( scope...
2,616
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/viewport/init.luau
luau
.luau
--#selene: allow(shadowing) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent.Parent local plugin = root:FindFirstAncestorWhichIsA("Plugin") local mouse = plugin:GetMouse() local ChangeHistoryService = game:GetService("ChangeHistoryService") local Fusion = require(root.Packages.fus...
3,211
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/Components/viewport/main.luau
luau
.luau
--#selene: allow(shadowing) local root = script.Parent.Parent.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local assets = require(root.Plugin.assets) local types = require(root.Plugin.types) local vehicle = require(root.Plugin.vehicle) local log = requir...
3,448
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/assets.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local log = require(script.Parent.log) local assets = { images = { home = { settings = "rbxassetid://135865113316058", help = "rbxassetid://123835351185186", credits = "rbxassetid://95086716451211", }, credits = { parker = "rbxassetid://8796999435...
917
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/chassisHandler.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local log = require(script.Parent.log) local types = require(script.Parent.types) local vehicle = require(script.Parent.vehicle) local ChangeHistoryService = game:GetService("ChangeHistoryService") local LuaEncode = require(script.Parent.Parent.Packages.LuaEncode) lo...
5,687
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/customExport.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local log = require(script.Parent.log) local types = require(script.Parent.types) local ChangeHistoryService = game:GetService("ChangeHistoryService") local Fusion = require(script.Parent.Parent.Packages.fusion) -- TEMPLATES local scriptTemplate = [[ --\[\[ Emergen...
1,075
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/configuration/functions.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License --DO NOT MODIFY BELOW --SUPPORT WILL BE VOIDED IF MODIFIED return { { activations = { { mode = "Cycle", type = "Standard", pattern = 0, keybinds = { Enum.KeyCode.J, Enum.KeyCode.DPadLeft, }, }, }, patterns = { { fad...
243
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/configuration/lightSettings.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License --DO NOT MODIFY BELOW --SUPPORT WILL BE VOIDED IF MODIFIED return { version = 0.092, colors = { { name = "Blue", partColor = Color3.fromRGB(110, 153, 202), lightColor = Color3.fromRGB(0, 0, 255), lightoColor = Color3.fromRGB(47, 71, 255), }, { ...
484
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/configuration/sirens.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License --DO NOT MODIFY BELOW --SUPPORT WILL BE VOIDED IF MODIFIED return { { type = "Siren", name = "Wail", keybinds = { Enum.KeyCode.R, Enum.KeyCode.Unknown, }, behavoir = "Overrides Other Sounds", modifiers = {}, }, { type = "Siren", name = "Yel...
249
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/EVHClient.server.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local version = script.Parent:WaitForChild("version").Value require(script.Parent:WaitForChild("modules"):WaitForChild("main"))(version)
44
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/init.server.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License -- version format: minor.{if rc then 1 else 0}patch local types = require(script.modules.types) local configuration = script.Parent.configuration local lightSettingsModule = configuration:WaitForChild("lightSettings") local lightSettings = (require :: any)(lightSett...
5,535
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/els/faders.luau
luau
.luau
--!strict --!optimize 2 --!native -- Redon Tech Emergency Vehicle Creator, MIT License local types = require(script.Parent.Parent.types) local TweenService = game:GetService("TweenService") type faders = { returnToZero: { { vehicle: Instance, section: types.faderSection } }, setLightTransparency: ( vehicle: Insta...
862
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/els/flashers.luau
luau
.luau
--!strict --!optimize 2 --!native -- Redon Tech Emergency Vehicle Creator, MIT License local types = require(script.Parent.Parent.types) type flashers = { flash: (vehicle: Instance, functionId: number, lightName: string, color: types.elsColor) -> (), processPattern: (pattern: types.pattern) -> (), } local flashers ...
208
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/els/rotators.luau
luau
.luau
--!strict --!optimize 2 --!native -- Redon Tech Emergency Vehicle Creator, MIT License local types = require(script.Parent.Parent.types) type rotators = { returnToZero: { { vehicle: Instance, section: types.rotatorSection } }, flash: (vehicle: Instance, functionId: number, lightName: string, color: types.elsColor) ...
899
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/handshake.luau
luau
.luau
--!strict --#selene: allow(global_usage) -- Redon Tech Emergency Vehicle Creator, MIT License --[=[ Ensures only one EVH is running at a time and that the running EVH is the latest version Edgecase: A newer verstion is inserted after handshake is done. To handle this, we will check allow that newer version to ...
251
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/initializeVehicle.luau
luau
.luau
--!strict --!optimize 2 -- Redon Tech Emergency Vehicle Creator, MIT License local types = require(script.Parent:WaitForChild("types")) --- Initializes a vehicle by loading its configuration and lights. return function(vehicle: Instance): types.vehicle? if vehicle:IsA("Model") == false then return end local EVH...
1,085
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/main.luau
luau
.luau
--!strict --!optimize 2 --!native --#selene: allow(global_usage) -- Redon Tech Emergency Vehicle Creator, MIT License local CollectionService = game:GetService("CollectionService") local RunService = game:GetService("RunService") local handshake = require(script.Parent:WaitForChild("handshake")) local initializeVehic...
5,892
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/EVHEvent/loader/modules/types.luau
luau
.luau
--!strict export type vehicle = { configuration: chassisConfiguration, lights: lights, lightConnectedGroups: { [string]: { string } }, -- light: { group } connections: { RBXScriptConnection }, uuid: string, } export type lights = { [string]: { isLightGroup: boolean, runningFunction: number?, possibleFunct...
994
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/handler/init.client.luau
luau
.luau
--[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | _ \ | | \ \ | __/ | (_| | | ...
1,126
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/init.server.luau
luau
.luau
--# selene: allow(global_usage) --[[ _____ _ _______ _ | __ \ | | |__ __| | | | |__) | ___ __| | ___ _ __ | | ___ ___ | |__ | _ / / _ \ / _ | / _ \ | _ \ | | / _ \ / __| | ...
1,615
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/log.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local log = { level = { info = 1, warn = 2, error = 3, -- 4 and above is developer only debug = 4, }, format = { info = "[EVC INFO]:", warn = "[EVC WARNING]:", error = "[EVC ERROR]:", debug = "[EVC DEBUG]:", }, verbosity = 1, } --- Gets the lo...
359
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/settings.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent local plugin = root:FindFirstAncestorWhichIsA("Plugin") :: Plugin local types = require(script.Parent.types) local log = require(script.Parent.log) local Fusion = require(root.Packages.fusion) type settings = { scope: types.Scope,...
767
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/types.luau
luau
.luau
--# selene: allow(unused_variable) -- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent local Fusion = require(root.Packages.fusion) local RedonUI = require(root.Packages["redon-ui"]) local utils = require(script.Parent.utils) -- Code Types export type Scope = Fusion.Scope<typeof(F...
1,585
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/utils.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local root = script.Parent.Parent local RedonUI = require(root.Packages["redon-ui"]) local utils = {} --- Deep copies a table, including nested tables. function utils.deepCopy<T>(inputTable: T): T if typeof(inputTable) ~= "table" then return inputTable end l...
880
Redon-Tech/Emergency-Vehicle-Creator
Redon-Tech-Emergency-Vehicle-Creator-7b8e227/src/vehicle.luau
luau
.luau
-- Redon Tech Emergency Vehicle Creator, MIT License local ChangeHistoryService = game:GetService("ChangeHistoryService") local assets = require(script.Parent.assets) local log = require(script.Parent.log) export type option = { type: "select" | "single", default: string | boolean, canSelectMultiple: boolean?, ca...
4,871
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/copyDeep.lua
luau
.lua
--!strict --[=[ @function copyDeep @within Array @param array {T} -- The array to copy. @return {T} -- The copied array. Copies an array, with deep copies of all nested arrays. ```lua local array = { 1, 2, 3, { 4, 5 } } local result = CopyDeep(array) -- { 1, 2, 3, { 4, 5 } } print(result == array) -- fals...
195
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/count.lua
luau
.lua
--!strict local Sift = script.Parent.Parent local Util = require(Sift.Util) --[=[ @function count @within Array @param array {T} -- The array to count the number of items in. @param predicate? (value: T, index: number, array: {T}) -> any -- The predicate to use to filter the array. @return number -- The number ...
255
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/difference.lua
luau
.lua
--!strict local T = require(script.Parent.Parent.Types) local toSet = require(script.Parent.toSet) local toArray = require(script.Parent.Parent.Set.toArray) local setDifference = require(script.Parent.Parent.Set.difference) --[=[ @function difference @within Array @param array Array<V> -- The array to compare....
271
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/differenceSymmetric.lua
luau
.lua
--!strict local T = require(script.Parent.Parent.Types) local toSet = require(script.Parent.toSet) local toArray = require(script.Parent.Parent.Set.toArray) local setDifferenceSymmetric = require(script.Parent.Parent.Set.differenceSymmetric) --[=[ @function differenceSymmetric @within Array @param array Array<...
296
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/every.lua
luau
.lua
--!strict --[=[ @function every @within Array @param array {T} -- The array to check. @param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array. @return boolean -- Whether every item in the array passes the predicate. Checks whether every item in the array passes t...
223
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/filter.lua
luau
.lua
--!strict local Sift = script.Parent.Parent local Util = require(Sift.Util) --[=[ @function filter @within Array @param array {T} -- The array to filter. @param filterer? (value: T, index: number, array: {T}) -> any -- The callback to use to filter the array. @return {T} -- The filtered array. Filters an arra...
273
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/init.lua
luau
.lua
--!strict --[=[ @class Array An array is a table consisting of index-value pairs. You don't need to manually specify the indices when you create an array. ```lua local array = { "hello", "world", } ``` <br><br> #### Aliases `List` ]=] local Array = { at = require(script.at), concat = require(script...
492
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/is.lua
luau
.lua
--!strict --[=[ @function is @within Array @param object any -- The object to check. @return boolean -- Whether the object is an array. Checks if the given object is an array. ```lua local array = { 1, 2, 3 } local dictionary = { hello = "world" } local mixed = { 1, 2, hello = "world" } Array.is...
162
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/push.lua
luau
.lua
--!strict --[=[ @function push @within Array @param array {T} -- The array to push an element to. @param ... ...T -- The elements to push. @return {T} -- The array with the pushed elements. Adds elements to the end of the array. #### Aliases `append` ```lua local array = { 1, 2, 3 } local new = Push(ar...
197
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/reduce.lua
luau
.lua
--!strict --[=[ @function reduce @within Array @param array {T} -- The array to reduce. @param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use. @param initialReduction? U = {T}[1] -- The initial accumulator value. @return U -- The final accumulator value. Reduces the ar...
318
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/reduceRight.lua
luau
.lua
--!strict --[=[ @function reduceRight @within Array @param array {T} -- The array to reduce. @param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use. @param initialReduction? U = {T}[#{T}] -- The initial accumulator value. @return U -- The final accumulator value. Reduce...
335
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/removeValue.lua
luau
.lua
--!strict --[=[ @function removeValue @within Array @param array {T} -- The array to remove the value from. @param value T -- The value to remove. @return {T} -- The array with the value removed. Removes a value from an array. ```lua local array = { 1, 2, 3 } local new = RemoveValue(array, 2) -- { 1, 3 } ...
166
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/some.lua
luau
.lua
--!strict --[=[ @function some @within Array @param array {T} -- The array to check. @param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array. @return boolean -- Whether some item in the array passes the predicate. Checks whether some item in the array passes the ...
222
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Array/update.lua
luau
.lua
--!strict local Sift = script.Parent.Parent local Util = require(Sift.Util) local Copy = require(script.Parent.copy) type Callback<T> = (index: number) -> T type Updater<T> = (currentValue: T, index: number) -> T local function call<T>(callback: Callback<T>, index: number) if type(callback) == "function" then ret...
435
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/copyDeep.lua
luau
.lua
--!strict --[=[ @function copyDeep @within Dictionary @param dictionary T -- The dictionary to copy. @return T -- The copied dictionary. Copies a dictionary recursively. ```lua local dictionary = { hello = { world = "goodbye" } } local new = CopyDeep(dictionary) -- { hello = { world = "goodbye" } } ...
173
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/init.lua
luau
.lua
--!strict --[=[ @class Dictionary Dictionaries are a type of data structure that can be used to store key-value pairs. ```lua local dictionary = { cats = 2, dogs = 1 } print(dictionary.cats) -- 2 ``` ]=] local Dictionary = { copy = require(script.copy), copyDeep = require(script.copyDeep), count = requ...
297
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/some.lua
luau
.lua
--!strict --[=[ @function some @within Dictionary @param dictionary {[K]: V} -- The dictionary to check. @param predicate (value: V, key: K, dictionary: { [K]: V }) -> any -- The predicate to check against. @return boolean -- Whether or not the predicate returned true for any value. Checks whether or not ...
255
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Dictionary/withKeys.lua
luau
.lua
--!strict --[=[ @function withKeys @within Dictionary @param dictionary {[K]: V} -- The dictionary to select the keys from. @param keys ...K -- The keys to keep. @return {[K]: V} -- The dictionary with only the given keys. Returns a dictionary with the given keys. ```lua local dictionary = { hello =...
200
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/count.lua
luau
.lua
--!strict local Sift = script.Parent.Parent local Util = require(Sift.Util) --[=[ @function count @within Set @param set { [T]: boolean } -- The set to count. @param predicate? (item: T, set: { [T]: boolean }) -> boolean? -- The predicate to use to count. @return number -- The number of items in the set. ...
255
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/difference.lua
luau
.lua
--!strict local T = require(script.Parent.Parent.Types) --[=[ @function difference @within Set @param set Set<V> -- The set to compare. @param ... ...Set<V> -- The sets to compare against. @return Set<V> -- The difference between the sets. Returns a set of values that are in the first set, but not in the...
227
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/differenceSymmetric.lua
luau
.lua
--!strict local T = require(script.Parent.Parent.Types) --[=[ @function differenceSymmetric @within Set @param set Set<V> -- The set to compare. @param ... ...Set<V> -- The sets to compare against. @return Set<V> -- The symmetric difference between the sets. Returns a set of values that are in the first ...
281
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/filter.lua
luau
.lua
--!strict local Sift = script.Parent.Parent local Util = require(Sift.Util) --[=[ @function filter @within Set @param set { [T]: boolean } -- The set to filter. @param predicate? (item: T, set: { [T]: boolean }) -> any -- The function to filter the set with. @return { [T]: boolean } -- The filtered set. ...
259
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Set/init.lua
luau
.lua
--!strict --[=[ @class Set Sets are a collection of values. They are used to store unique values. They are essentially a dictionary, but each value is stored as a boolean. This means that a value can only be in a set once. ```lua local set = { hello = true } local newSet = Add(set, "world") -- { hello = true,...
235
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/csqrl_sift@0.0.8/sift/src/Types.lua
luau
.lua
--selene: allow(unused_variable) local None = require(script.Parent.None) --[=[ @type None None @within Sift ]=] export type None = typeof(None) export type Dictionary<K, V> = { [K]: V } export type Array<T> = Dictionary<number, T> export type Set<T> = Dictionary<T, boolean> export type Table = Dictionary<any, any...
98
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/Expectation.lua
luau
.lua
--[[ Allows creation of expectation statements designed for behavior-driven testing (BDD). See Chai (JS) or RSpec (Ruby) for examples of other BDD frameworks. The Expectation class is exposed to tests as a function called `expect`: expect(5).to.equal(5) expect(foo()).to.be.ok() Expectations can be negated u...
1,740
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/ExpectationContext.lua
luau
.lua
local Expectation = require(script.Parent.Expectation) local checkMatcherNameCollisions = Expectation.checkMatcherNameCollisions local function copy(t) local result = {} for key, value in pairs(t) do result[key] = value end return result end local ExpectationContext = {} ExpectationContext.__index = Expectati...
217
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/src/TestSession.lua
luau
.lua
--[[ Represents the state relevant while executing a test plan. Used by TestRunner to produce a TestResults object. Uses the same tree building structure as TestPlanBuilder; TestSession keeps track of a stack of nodes that represent the current path through the tree. ]] local TestEnum = require(script.Parent.Tes...
1,558
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/testez-cli/src/test-runner.lua
luau
.lua
--[[ This test runner is invoked in all the environments that we want to test our project in. TestEZ's CLI targets Lemur, Roblox Studio, and Roblox-CLI. Assumes TestEZ is put into ReplicatedStorage and that test roots have a "TestEZTestRoot" CollectionService tag attached to them. ]] -- luacheck: globals game s...
443
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/tests/e2e/init.lua
luau
.lua
local TestEZ = require(script.Parent.Parent.TestEZ) local noOptReporter = { report = function() end, } return { ["run expect-extend e2e"] = function() TestEZ.run(script:FindFirstChild("expect-extend"), function(results) assert(#results.errors == 0, "Expected no errors, got " .. tostring(results.errors[1])...
725
bohraz/Arch
bohraz-Arch-bdfc450/Packages/_Index/roblox_testez@0.4.1/testez/tests/e2e/lifecycle/completeLifecycleOrderTests.lua
luau
.lua
-- Shared test cases asserting lifecycle hooks are firing in the correct order return function() describe("full example", function() beforeAll(function(context) context.globalState = {} table.insert(context.globalState, "beforeAll") expect(table.find(context.globalState, "beforeAll")).to.equal(1) end) ...
353
bohraz/Arch
bohraz-Arch-bdfc450/Packages/janitor.lua
luau
.lua
return require(script.Parent._Index["howmanysmall_janitor@1.15.6"]["janitor"])
24
bohraz/Arch
bohraz-Arch-bdfc450/Packages/sift.lua
luau
.lua
return require(script.Parent._Index["csqrl_sift@0.0.8"]["sift"])
22
bohraz/Arch
bohraz-Arch-bdfc450/Packages/signal.lua
luau
.lua
return require(script.Parent._Index["sleitnick_signal@2.0.1"]["signal"])
21
bohraz/Arch
bohraz-Arch-bdfc450/Packages/testez.lua
luau
.lua
return require(script.Parent._Index["roblox_testez@0.4.1"]["testez"])
21
bohraz/Arch
bohraz-Arch-bdfc450/src/Check.luau
luau
.luau
local check = {} function check.isDescendant(state1, state2) if not state2 then return function(item, index) return check.isDescendant(item, state1) end end local parent = state1.parent while parent do if parent == state2 then return true end parent = parent.parent end return false end functi...
146
bohraz/Arch
bohraz-Arch-bdfc450/src/Transition.luau
luau
.luau
local Sift = require(script.Parent.Parent.sift) local Check = require(script.Parent.Check) local function getProperAncestors(state1, state2) local orderedAncestors = {} local parent = state1.parent while parent do table.insert(orderedAncestors, parent) parent = parent.parent end return orderedAncestors end ...
2,170
bohraz/Arch
bohraz-Arch-bdfc450/src/Types.luau
luau
.luau
--[=[ @class Arch This is the Arch class ]=] --[=[ @type Context { janitor: any, event: string, Send: (string, any) -> (), target: string?, any: any, } @within Arch ]=] --[=[ @type Options { id: string, context: { any }?, actions: { string: (Context, any) -> () }?, guards: { string: (Context, any) -> boolean }?, maxL...
949
bohraz/Arch
bohraz-Arch-bdfc450/src/directTranslation.luau
luau
.luau
local function exitInterpreter() end local function microstep(enabledTransitions) end local function executeTransitionContent(enabledTransitions) end local function isInFinalState(s) end local function getProperAncestors(state1, state2) local orderedAncestors = {} local parent = state1.parent repeat table.ins...
2,448
bohraz/Arch
bohraz-Arch-bdfc450/src/init.luau
luau
.luau
local Sift = require(script.Parent.sift) local Signal = require(script.Parent.signal) local Janitor = require(script.Parent.janitor) local Transition = require(script.Transition) local Check = require(script.Check) local function createContext(machine, context) context.Sift = Sift function context.Send(eventName, ....
2,862
bohraz/Arch
bohraz-Arch-bdfc450/tests/server.server.luau
luau
.luau
local TestEZ = require(script.Parent.Packages.testez) local Arch = require(script.Parent.Packages.Arch) TestEZ.TestBootstrap:run({ script.Parent["Arch.spec"] })
37
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/benchmarks/BenchmarksServer.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local remote = Instance.new("RemoteEvent") remote.Name = "BenchmarkRemote" remote.Parent = ReplicatedStorage local Defs = require(script.Parent.Definitions) local Warp = require(ReplicatedStorage.Warp).Server() Defs.bool1.OnServerEvent:Connect(function(p...
730
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/src/QuickNet/DataTypes.luau
luau
.luau
local Enums = require(script.Parent.Enums) local Parser = require(script.Parent.Parser) local dataTypes = { NumberU4 = Enums.NumberU4, NumberU8 = Enums.NumberU8, NumberU16 = Enums.NumberU16, NumberU32 = Enums.NumberU32, NumberI8 = Enums.NumberI8, NumberI16 = Enums.NumberI16, NumberI32 = Enums.NumberI32, Numbe...
642
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/src/QuickNet/Enums.luau
luau
.luau
local enums = { Start = 1, NumberU4 = 2, ["NumberU8"] = 3, ["NumberU16"] = 4, ["NumberU32"] = 5, ["NumberI8"] = 6, ["NumberI16"] = 7, ["NumberI32"] = 8, ["NumberF16"] = 9, ["NumberF32"] = 10, ["NumberF64"] = 11, ["CFrameFX8"] = 12, CFrameI16FX16 = 13, ["CFrameFX16"] = 14, ["CFrameF16"] = 15, CFrameF32...
670
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/src/QuickNet/EnumsToNativeTypes.luau
luau
.luau
local module = { [1] = "whatever", [2] = "number", [3] = "number", [4] = "number", [5] = "number", [6] = "number", [7] = "number", [8] = "number", [9] = "number", [10] = "number", [11] = "number", [12] = "CFrame", [13] = "CFrame", [14] = "CFrame", [15] = "CFrame", [16] = "CFrame", [17] = "CFrame", [...
435
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/src/QuickNet/Parser.luau
luau
.luau
local Enums = require(script.Parent.Enums) local EnumsToNative = require(script.Parent.EnumsToNativeTypes) local Types = require(script.Parent.Types) local SOURCE = "[QuickNet]" local function keyValueSwap(tbl: {[any]: any}): {[any]: any} local new = {} for k, v in tbl do new[v] = k end return new end local re...
2,174
breadboardengineer1234/QuickNet
breadboardengineer1234-QuickNet-e499567/src/QuickNet/Serialize.luau
luau
.luau
--!optimize 2 local Players = game:GetService("Players") local Types = require(script.Parent.Types) local Enums = require(script.Parent.Enums) type SchemaArg = Types.SchemaArg type Literal = Types.Literal local FX8_SCALE = 10 local FX8_ROT_SCALE = 40.42 local FX16_SCALE = 100 local FX16_ROT_SCALE = 10430 local DYNA...
18,733
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/bench/bench.luau
luau
.luau
--!native --!optimize 2 local aptint = require(game.ReplicatedStorage.AptInt) type AptInt = aptint.AptInt local clock: () -> number = os.clock local random: (number?, number?) -> number = math.random local insert = table.insert local MAX: number = 2^24-1 local LOG2_10: number = 3.32192809489 local digits: {number}...
612
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/bench/thresholds.luau
luau
.luau
--!native --!strict --!optimize 2 --> THIS IS VERY UGLY CODE!!! I ONLY USE THIS FOR WHEN BENCHMARKING ALGORITHM THRESHOLDS local aptint = require(game.ReplicatedStorage.AptInt.AptInt) type AptInt = aptint.AptInt local clock: () -> number = os.clock local random: (number?, number?) -> number = math.random local inse...
425
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/src/Constants.luau
luau
.luau
const constants = { BASE = 2^24, BASE_MASK = 16777215, -- BASE - 1 (=0xffffff) RADIX_LEN_CONST = 7.224719895935548, -- log10(BASE) RADIX_CHUNK_SIZE = 10^8, RADIX_CHUNK_POW = 8, MAX_TONUMBER_LEN = 43, -- min{k | BASE^k > 2^1024-1} ALLOC_MIN_SIZE = 17, ALLOC_POOL_SIZE = 32, --> algorithm thresholds (size in...
207
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/src/Modules/Add.luau
luau
.luau
--!native --!strict --!optimize 2 local Add = {} local Constants = require("../Constants") local Utils = require("./Utils") const abs: (number) -> number = math.abs const tclone: ({number}) -> {number} = table.clone const tinsert: ({number}, number) -> () = table.insert const tmove: ({number}, number, number, numbe...
595
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/src/Modules/Cmp.luau
luau
.luau
--!native --!strict --!optimize 2 local Cmp = {} local Utils = require("./Utils") local Constants = require("../Constants") function Cmp.LowerThan(x: {number}, y: {number}): boolean local xLen: number, yLen: number = #x, #y if xLen < yLen then return true elseif xLen > yLen then return false end for i: ...
490
fosterchild1/AptInt
fosterchild1-AptInt-0424e91/src/Modules/Mul.luau
luau
.luau
--!native --!strict --!optimize 2 local Mul = {} local Utils = require("./Utils") local Constants = require("../Constants") local Add = require("./Add") local Sub = require("./Sub") local Cmp = require("./Cmp") -- ================================ --> OPTIMIAZTION FUNCTION CONSTANTS -- ===============================...
2,171