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
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/InitializerSystems.test.luau
luau
.luau
--!nonstrict local ReplicatedStorage = game:GetService("ReplicatedStorage") local root = script.Parent.Parent local Phase = require(root.Phase) local Scheduler = require(root.Scheduler) local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals) local describe = JestGlobals.describe local expect = JestGl...
3,868
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/Scheduler.test.luau
luau
.luau
--!nonstrict local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local root = script.Parent.Parent local Phase = require(root.Phase) local Scheduler = require(root.Scheduler) local Pipeline = require(root.Pipeline) local JestGlobals = require(ReplicatedStor...
2,049
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/conditions.test.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local root = script.Parent.Parent local Scheduler = require(root.Scheduler) local conditions = require(root.conditions) local isNot = conditions.isNot local runOnce = conditions.runOnce local timePassed = conditions.timePassed local onEvent = conditions....
812
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/hooks.test.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local root = script.Parent.Parent local Phase = require(root.Phase) local Scheduler = require(root.Scheduler) local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals) local describe = JestGlobals.describe local expect = JestGlobals.expect ...
340
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/__tests__/systems.test.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local root = script.Parent.Parent local Phase = require(root.Phase) local Scheduler = require(root.Scheduler) type SystemErrorContext = Scheduler.SystemErrorContext local JestGlobals = require(ReplicatedStorage.DevPackages.JestGlobals) local describe =...
1,153
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/conditions.luau
luau
.luau
local utils = require(script.Parent.utils) local getConnectFn = utils.getConnectFn type GenericTable = utils.GenericTable type SignalLike<U...> = utils.SignalLike<U...> type ConnectionLike = utils.ConnectionLike type ConnectFn<T, U...> = utils.ConnectFn<T, U...> type Callback<U...> = utils.Callback<U...> export type ...
1,173
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck/src/init.luau
luau
.luau
local Phase = require(script.Phase) local Pipeline = require(script.Pipeline) local Scheduler = require(script.Scheduler) local conditions = require(script.conditions) export type Phase = Phase.Phase export type Pipeline = Pipeline.Pipeline export type Scheduler<U...> = Scheduler.Scheduler<U...> export type System<U...
272
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck_jabby/src/init.luau
luau
.luau
local Planck = require(script.Parent.Planck) type Scheduler<U...> = Planck.Scheduler<U...> type SystemInfo<U...> = Planck.SystemInfo<U...> type SystemHookContext = Planck.SystemHookContext type SystemReplaceContext = Planck.SystemReplaceContext type SystemEditedContext = Planck.SystemEditedContext type SystemCallConte...
1,311
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck_matter_hooks/src/Queue.luau
luau
.luau
--!nonstrict local Queue = {} Queue.__index = Queue function Queue.new() return setmetatable({ _head = nil, _tail = nil, }, Queue) end function Queue:pushBack(value) local entry = { value = value, next = nil, } if self._tail ~= nil then self._tail.next = entry end self._tail = entry if self._hea...
152
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck_matter_hooks/src/init.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Planck = require(script.Parent.Planck) type Scheduler<U...> = Planck.Scheduler<U...> type System<U...> = Planck.System<U...> type Phase = Planck.Phase type PhaseContext = Planck.PhaseContext type SystemHookContext = Planck.SystemHookContext type Sys...
1,113
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck_runservice/src/__tests__/main.test.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Planck = require(ReplicatedStorage.Packages.Planck) local PlanckRunService = require(ReplicatedStorage.Packages.PlanckRunService) local Phase = Planck.Phase local Scheduler = Planck.Scheduler local JestGlobals = require(ReplicatedStorage.DevPackage...
291
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/planck_runservice/src/init.luau
luau
.luau
local RunService = game:GetService("RunService") local Planck = require(script.Parent.Planck) type Scheduler<U...> = Planck.Scheduler<U...> local Phase = Planck.Phase type Phase = Planck.Phase local Pipeline = Planck.Pipeline type Pipeline = Planck.Pipeline local Phases = { PreRender = Phase.new("PreRender"), Pre...
527
YetAnotherClown/planck
YetAnotherClown-planck-79e91ad/src/run-tests.server.luau
luau
.luau
_G.NOCOLOR = _G.NOCOLOR local ReplicatedStorage = game:GetService("ReplicatedStorage") local Packages = ReplicatedStorage.Packages local DevPackages = ReplicatedStorage.DevPackages local Jest = require(DevPackages.Jest) local runCLIOptions = { verbose = false, ci = false, } local projects = { Packages, } Jest.r...
92
Roblox/react-luau
Roblox-react-luau-efe10a9/WorkspaceStatic/jest.config.lua
luau
.lua
local Workspace = script.Parent -- In case we need to specify a custom testSetupFile for a project, we need to do that in in a separate jest.config.lua file that's in the project's root folder. -- Therefore we specify the project here and provide it to the "projects" field in this config file. -- We also need to add t...
213
Roblox/react-luau
Roblox-react-luau-efe10a9/WorkspaceStatic/jest/matchers/toErrorDev.lua
luau
.lua
local createConsoleMatcher = require(script.Parent.createConsoleMatcher) return createConsoleMatcher("error", "toErrorDev")
24
Roblox/react-luau
Roblox-react-luau-efe10a9/WorkspaceStatic/jest/matchers/toLogDev.lua
luau
.lua
local createConsoleMatcher = require(script.Parent.createConsoleMatcher) return createConsoleMatcher("log", "toLogDev")
24
Roblox/react-luau
Roblox-react-luau-efe10a9/WorkspaceStatic/jest/matchers/toWarnDev.lua
luau
.lua
local createConsoleMatcher = require(script.Parent.createConsoleMatcher) return createConsoleMatcher("warn", "toWarnDev")
24
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/run-deep-tree-benchmark.lua
luau
.lua
local Packages = script.Parent.RoactAlignment local RotrieverWorkspace = Packages._Workspace local Roact = require(RotrieverWorkspace.React.React) local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox) local config = {} if _G.minSamples ~= nil then config.sampleCount = tonumber(_G.minSamples) end r...
106
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/run-first-render-benchmark.lua
luau
.lua
local Packages = script.Parent.RoactAlignment local RotrieverWorkspace = Packages._Workspace local Roact = require(RotrieverWorkspace.React.React) local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox) local Scheduler = require(RotrieverWorkspace.Scheduler.Scheduler) local firstRenderBenchmark = requ...
135
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/run-frame-rate-benchmark.lua
luau
.lua
local Packages = script.Parent.RoactAlignment local RotrieverWorkspace = Packages._Workspace local Roact = require(RotrieverWorkspace.React.React) local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox) local Scheduler = require(RotrieverWorkspace.Scheduler.Scheduler) local frameRateBenchmark = requir...
135
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/run-sierpinski-triangle-benchmark.lua
luau
.lua
local Packages = script.Parent.RoactAlignment local RotrieverWorkspace = Packages._Workspace local Roact = require(RotrieverWorkspace.React.React) local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox) local sierpinskiTriangleBenchmark = require( RotrieverWorkspace.React.Dev.PerformanceBenchmarks ).s...
127
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/run-wide-tree-benchmark.lua
luau
.lua
local Packages = script.Parent.RoactAlignment local RotrieverWorkspace = Packages._Workspace local Roact = require(RotrieverWorkspace.React.React) local ReactRoblox = require(RotrieverWorkspace.ReactRoblox.ReactRoblox) local wideTreeBenchmark = require(RotrieverWorkspace.React.Dev.PerformanceBenchmarks).wideTreeBench...
112
Roblox/react-luau
Roblox-react-luau-efe10a9/bin/spec.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
328
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/example-app/StarterScript.lua
luau
.lua
local CorePackages = game:GetService("CorePackages") local RunService = game:GetService("RunService") if RunService:IsServer() then return end -- Set global flags and initialize devtools before React is ever used local ReactGlobals = require(CorePackages.ReactGlobals) ReactGlobals.__DEV__ = true ReactGlobals.__PROFI...
105
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-core/src/init.lua
luau
.lua
local backend = require(script.backend) return { backend = backend, }
15
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-core/src/utils/serializeTable.lua
luau
.lua
local HttpService = game:GetService("HttpService") type Record = { [string]: any } local ENCODE_TO_NULL = newproxy() --- Serializes a table such that it can be encoded as JSON via HttpService. local function serializeTable(tbl: Record): Record local seen = {} local function visitPropsRecursive(parent: Record): an...
1,080
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-extensions/src/init.lua
luau
.lua
-- ROBLOX note: no upstream -- ROBLOX note: The setup function adds the glue required for DeveloperTools to initialize the Roact devtools correctly local Packages = script.Parent return { setup = function(debugMode: boolean) local ReactGlobals = require(Packages.ReactGlobals) -- ROBLOX note: Set globals for Reac...
540
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/backend/views/Highlighter/Overlay/OverlayRect.lua
luau
.lua
local OverlayRect = {} OverlayRect.__index = OverlayRect function OverlayRect.new(container: GuiBase2d) local self = setmetatable({}, OverlayRect) self.container = container local node = Instance.new("Frame") node.Name = "OverlayRect" node.BackgroundTransparency = 1 node.Parent = container self.node = node l...
488
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/backend/views/Highlighter/Overlay/OverlayTip.lua
luau
.lua
type Box = { top: number, left: number, width: number, height: number } local function calculatePosition(dims: Box, bounds: Box, size: Vector2) local tipHeight = math.max(size.Y, 20) local tipWidth = math.max(size.X, 60) local margin = 5 local top: number if dims.top + dims.height + tipHeight <= bounds.top + bou...
1,016
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/clipboardjs.mock.lua
luau
.lua
-- ROBLOX TODO: stub for clipboardjs, remove when we know how we'll handle its intent in a Roblox way return {}
30
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/ProfilerStore.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local Arr...
2,912
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/ProfilingCache.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local Arra...
1,104
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/init.lua
luau
.lua
return { utils = require(script.utils), store = require(script.store), cache = require(script.cache), devtools = { Components = { views = { types = require(script.views.Components.types), }, }, }, }
52
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/types.lua
luau
.lua
--!strict local Packages = script.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) type Array<T> = LuauPolyfill.Array<T> type Map<K, V> = LuauPolyfill.Map<K, V> type Object = LuauPolyfill.Object type Set<K> = LuauPolyfill.Set<K> local ComponentsTypes = require(script.Parent.Parent.devtools.vie...
2,556
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/views/Profiler/FlamegraphChartBuilder.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfi...
1,718
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/views/Profiler/InteractionsChartBuilder.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfi...
545
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/views/Profiler/RankedChartBuilder.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfi...
986
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/devtools/views/Profiler/utils.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent.Parent.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfi...
2,487
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/init.lua
luau
.lua
-- ROBLOX note: upstream doesn't have a root index.js, we may want to contribute a proper contract upstream local Bridge = require(script.bridge) local Types = require(script.types) local Backend = require(script.backend) export type BackendBridge = Bridge.BackendBridge export type ComponentFilter = Types.ComponentFi...
132
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-shared/src/jest.config.lua
luau
.lua
return { setupFilesAfterEnv = { script.Parent.__tests__.setupTests }, testMatch = { "**/*.(spec|test)" }, }
29
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-devtools-timeline/src/init.lua
luau
.lua
-- ROBLOX note: no upstream local exports = {} local constants = require(script.constants) exports.REACT_TOTAL_NUM_LANES = constants.REACT_TOTAL_NUM_LANES exports.SCHEDULING_PROFILER_VERSION = constants.SCHEDULING_PROFILER_VERSION local types = require(script.types) export type ScrollState = types.ScrollState export...
359
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-globals/src/ReactGlobals.global.lua
luau
.lua
-- NOTE: No upstream --[[ Defines all React globals in a type-safe manner that's scoped to each copy of React. For backwards compatibility, this module will load the initial values for each flag from _G. However, this is considered legacy behavior and new code should import this package and set the fla...
792
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-globals/src/init.lua
luau
.lua
local ReactGlobals = require(script["ReactGlobals.global"]) return ReactGlobals
15
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-reconciler/src/RobloxReactProfiling.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
1,542
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-refresh/src/init.lua
luau
.lua
return { ReactFreshRuntime = require(script.ReactFreshRuntime), }
14
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-roblox/src/ReactReconciler.roblox.lua
luau
.lua
--!strict -- ROBLOX deviation: Initializes the reconciler with this package's host -- config and returns the resulting module local Packages = script.Parent.Parent local initializeReconciler = require(Packages.ReactReconciler) local ReactRobloxHostConfig = require(script.Parent.client.ReactRobloxHostConfig) return i...
79
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-roblox/src/client/roblox/RobloxComponentProps.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
2,699
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-roblox/src/client/roblox/__tests__/waitForEvents.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
170
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-telemetry/src/ReactTelemetry.lua
luau
.lua
local Packages = script.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local Object = LuauPolyfill.Object local reportCounter = require(script.Parent.reportCounter) local customFields = require(script.Parent.customFields) local ReactTelemetry = {} ReactTelemetry.customFields = customFields local ...
313
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-telemetry/src/customFields.lua
luau
.lua
export type Context = "universal_app" | "in_experience" | "plugin" | "unknown" export type CustomFields = { context: Context, plugin_name: string?, } local plugin = script:FindFirstAncestorWhichIsA("Plugin") local customFields: CustomFields = { context = if plugin then "plugin" else "unknown", plugin_name = if pl...
90
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-telemetry/src/init.lua
luau
.lua
local customFields = require(script.customFields) export type CustomFields = customFields.CustomFields return require(script.ReactTelemetry)
26
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-telemetry/src/reportCounter.lua
luau
.lua
local TelemetryService = game:GetService("TelemetryService") local Packages = script.Parent.Parent local SafeFlags = require(Packages.SafeFlags) local ReactGlobals = require(Packages.ReactGlobals) local FFlagReactTelemetryEnabled = SafeFlags.createGetFFlag("ReactTelemetryEnabled", false)() export type CounterOption...
255
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react-test-renderer/src/roblox/RobloxComponentProps.lua
luau
.lua
local Packages = script.Parent.Parent.Parent local Shared = require(Packages.Shared) local LuauPolyfill = require(Packages.LuauPolyfill) type Object = LuauPolyfill.Object type Array<T> = LuauPolyfill.Array<T> local Tag = Shared.Tag local TagManagers = {} local function setInitialTags( hostInstance: any, _tag: st...
717
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/react/src/ReactBinding.roblox.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
1,510
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/Portal.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
244
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/RoactTree.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
1,068
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/createFragment.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
241
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/init.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
526
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/setGlobalConfig.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
274
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/roact-compat/src/warnOnce.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
243
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/scheduler/src/NoYield.lua
luau
.lua
-- ROBLOX note: no upstream --!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unles...
426
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/scheduler/src/unstable_mock.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. *]] local Tracing = require(script.Parent.Tracing) local TracingSubscriptions = require(script.Parent.TracingSubscriptions)...
365
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/ErrorHandling.roblox.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
1,551
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/PropMarkers/Change.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
338
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/PropMarkers/Event.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
328
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/PropMarkers/Tag.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
179
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/ReactElementType.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) type Object = Luau...
357
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/ReactFiberHostConfig/init.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
353
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/ReactTypes.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * @flow ]] local Packages = script.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) type Array<T> = L...
2,197
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/Type.roblox.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
308
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/UninitializedState.roblox.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
343
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/console.lua
luau
.lua
--[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law or agreed...
322
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/enqueueTask.roblox.lua
luau
.lua
--!strict --[[* * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. * * ]] local Packages = script.Parent.Parent local LuauPolyfill = require(Packages.LuauPolyfill) local setTimeout = Luau...
109
Roblox/react-luau
Roblox-react-luau-efe10a9/modules/shared/src/init.lua
luau
.lua
--!strict --[[ * Copyright (c) Roblox Corporation. All rights reserved. * Licensed under the MIT License (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * https://opensource.org/licenses/MIT * * Unless required by applicable law...
1,505
Someon1e/stylua_spider
Someon1e-stylua_spider-d0b86df/plugin/src/VERSION.luau
luau
.luau
return 8
4
typeforge-luau/typeforge
typeforge-luau-typeforge-342f53b/src/init.luau
luau
.luau
--!strict --!nolint LocalShadow --> Helpers ---------------------------------------------------------------------------- type function handle_negation<T>(input: type, callback: (input: type, input_tag: string) -> T) local input_tag = input.tag if input_tag == "negation" then local input_inner = input:...
18,085
typeforge-luau/typeforge
typeforge-luau-typeforge-342f53b/src/init.test.luau
luau
.luau
--!strict local t = require("@self") type function set_indexer(input: typeof(types.newtable()), index: type, result: type) input:setindexer(index, result) return input end --> Core ---------------------------------------------------------------------------------------------- -- Omit -------------------------...
14,925
Corecii/GreenTea
Corecii-GreenTea-9901687/.pesde/roblox_sync_config_generator.luau
luau
.luau
local process = require("@lune/process") local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME require(home_dir .. "/.pesde/scripts/lune/rojo/roblox_sync_config_generator.luau")
54
Corecii/GreenTea
Corecii-GreenTea-9901687/.pesde/sourcemap_generator.luau
luau
.luau
local process = require("@lune/process") local home_dir = if process.os == "windows" then process.env.userprofile else process.env.HOME require(home_dir .. "/.pesde/scripts/lune/rojo/sourcemap_generator.luau")
54
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/build-lune-zip.luau
luau
.luau
local process = require("@lune/process") local fs = require("@lune/fs") local function exec(cmdline: string | { string }, options: process.SpawnOptions?) local pieces = {} if typeof(cmdline) == "string" then for piece in string.gmatch(" " .. cmdline, "%s+([^%s]+)") do table.insert(pieces, piece) end else p...
391
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/enable-loadmodule.luau
luau
.luau
local fs = require("@lune/fs") local process = require("@lune/process") local serde = require("@lune/serde") if process.env.windir ~= nil then -- Windows local appDataPath = process.env.LOCALAPPDATA local robloxVersionsPath = `{appDataPath}\\Roblox\\Versions` if not fs.isDir(robloxVersionsPath) then error(`Ro...
517
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/moonwave.luau
luau
.luau
local fs = require("@lune/fs") local task = require("@lune/task") local process = require("@lune/process") export type Path = string local function getModifiedAt(path: Path): number local meta = fs.metadata(path) return assert(meta.modifiedAt).unixTimestampMillis end local function rebuild_item(options: { base: P...
1,110
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/prepare-lune-version.luau
luau
.luau
--[[ This is a simplified Roblox -> Lune converter specifically for GreenTea. I have chosen this approach over DarkLua and other because... 1. String requires are coming to Roblox soon, which makes this less necessary. 2. DarkLua and similar add a lot of complexity for something that is really simple in this ca...
363
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/set-version.luau
luau
.luau
local fs = require("@lune/fs") local serde = require("@lune/serde") local process = require("@lune/process") local wally = serde.decode("toml", fs.readFile("wally.toml")) local lastVersion = wally.package.version local nextVersion = assert(process.args[1], "version required!\n\nusage:\n lune set-version -- <version>...
508
Corecii/GreenTea
Corecii-GreenTea-9901687/lune/wally-install.luau
luau
.luau
local process = require("@lune/process") local function exec(cmdline: string) local pieces = {} for piece in string.gmatch(" " .. cmdline, "%s+([^%s]+)") do table.insert(pieces, piece) end local program = table.remove(pieces, 1) assert(program ~= nil, "cmdline must include a program") local result = process.s...
162
Corecii/GreenTea
Corecii-GreenTea-9901687/src-t-standalone-pesde/t.luau
luau
.luau
local GreenTea = require(script.Parent.roblox_packages.GreenTea) export type Cause = GreenTea.Cause export type Type = GreenTea.Type export type TuplePacked<T...> = GreenTea.TuplePacked<T...> return GreenTea.t
60
Corecii/GreenTea
Corecii-GreenTea-9901687/src-t-standalone-wally/init.luau
luau
.luau
local GreenTea = require(script.Parent.GreenTea) export type Cause = GreenTea.Cause export type Type = GreenTea.Type export type TuplePacked<T...> = GreenTea.TuplePacked<T...> return GreenTea.t
55
Roblox/signals
Roblox-signals-7ef2ff7/.lute/.config.luau
luau
.luau
return { luau = { languagemode = "strict", lint = { ["*"] = true }, linterrors = true, aliases = { scripts = "../scripts", std = "~/.lute/typedefs/1.0.1/std", }, }, }
70
Roblox/signals
Roblox-signals-7ef2ff7/.lute/analyze.luau
luau
.luau
const runStep = require("@scripts/processExecution").runStep const function getTargetPaths() return "./.lute", "./modules", "./scripts", "./src" end runStep("Selene check", { "selene", getTargetPaths() }) runStep("Style check", { "stylua", "-c", getTargetPaths() }) runStep( "Type check", { "luau-lsp", "analyze", "...
119
Roblox/signals
Roblox-signals-7ef2ff7/.lute/tests.luau
luau
.luau
local process = require("@std/process") local runStep = require("@scripts/processExecution").runStep local placeId = process.env.ROBLOX_PLACE_ID local universeId = process.env.ROBLOX_UNIVERSE_ID local apiKey = process.env.ROBLOX_API_KEY assert(placeId and #placeId > 0, "Missing ROBLOX_PLACE_ID env var") assert(univer...
223
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/__tests__/createCachedResource.test.lua
luau
.lua
local Root = script:FindFirstAncestor("Resources") local Packages = Root.Parent local JestGlobals = require(Packages.Dev.JestGlobals) local expect = JestGlobals.expect local it = JestGlobals.it local describe = JestGlobals.describe local createResource = require(script.Parent.Parent.createResource) local createCached...
1,941
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/__tests__/createResource.test.lua
luau
.lua
local Root = script:FindFirstAncestor("Resources") local Packages = Root.Parent local JestGlobals = require(Packages.Dev.JestGlobals) local expect = JestGlobals.expect local it = JestGlobals.it local describe = JestGlobals.describe local createResource = require(script.Parent.Parent.createResource) describe("createR...
858
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/createCachedResource.lua
luau
.lua
local types = require(script.Parent.types) type dispose = types.dispose type resource<A..., R...> = types.resource<A..., R...> local function once(dispose: dispose): dispose local called = false local function notAgain() if not called then called = true dispose() end end return notAgain end local func...
277
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/createResource.lua
luau
.lua
local types = require(script.Parent.types) type own = types.own type dispose = types.dispose local function disposeChildren(children: { dispose }) local errors: { string } = {} for i = #children, 1, -1 do local child = children[i] local ok, err: any = pcall(child) if not ok then table.insert(errors, tostri...
316
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/init.lua
luau
.lua
local types = require(script.types) export type own = types.own export type dispose = types.dispose export type resource<A..., R...> = types.resource<A..., R...> return { createResource = require(script.createResource), createCachedResource = require(script.createCachedResource), }
59
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/jest.config.lua
luau
.lua
return { testMatch = { "**/*.test" }, }
12
Roblox/signals
Roblox-signals-7ef2ff7/modules/resources/src/types.lua
luau
.lua
export type own = <T...>(dispose, T...) -> T... export type dispose = () -> () export type resource<A..., R...> = (A...) -> (dispose, R...) return nil
43
Roblox/signals
Roblox-signals-7ef2ff7/modules/signals-experimental/src/__tests__/createProxy.test.lua
luau
.lua
local Root = script:FindFirstAncestor("SignalsExperimental") local Packages = Root.Parent local JestGlobals = require(Packages.Dev.JestGlobals) local expect = JestGlobals.expect local it = JestGlobals.it local Signals = require(Packages.Signals) local createEffect = Signals.createEffect local SignalsScheduler = requ...
1,296
Roblox/signals
Roblox-signals-7ef2ff7/modules/signals-experimental/src/__tests__/createReducer.test.lua
luau
.lua
local Root = script:FindFirstAncestor("SignalsExperimental") local Packages = Root.Parent local JestGlobals = require(Packages.Dev.JestGlobals) local expect = JestGlobals.expect local it = JestGlobals.it local Signals = require(Packages.Signals) local createSignal = Signals.createSignal local createReducer = require...
205
Roblox/signals
Roblox-signals-7ef2ff7/modules/signals-experimental/src/createProxy.lua
luau
.lua
local Packages = script.Parent.Parent local Signals = require(Packages.Signals) local createSignal = Signals.createSignal local createComputed = Signals.createComputed local SignalsScheduler = require(Packages.SignalsScheduler) local batch = SignalsScheduler.batch type scope = Signals.scope type getter<T> = Signals....
996