MCPcopy Create free account

hub / github.com/Swaggermuffin64/VIM_GYM / functions

Functions307 in github.com/Swaggermuffin64/VIM_GYM

↓ 2 callersMethodremoveConnection
* Remove a connection when socket disconnects.
backend/rateLimit/connectionLimiter.ts:67
↓ 2 callersFunctionshortestVimSequenceLazy
( codeSnippet: codeSnippet, startingOffset: number, targetOffset: number, startingPreferredX?: number
backend/multiplayer/vimGraph.ts:259
↓ 2 callersFunctionshortestVimSequenceLazyToAnyTarget
( codeSnippet: codeSnippet, startingOffset: number, targetOffsets: number[], startingPreferredX?: numb
backend/multiplayer/vimGraph.ts:348
↓ 2 callersFunctionshouldDebugUndo
()
frontend/src/components/VimRaceEditor.tsx:85
↓ 2 callersFunctionshutdown
(signal: string)
backend/index.ts:1115
↓ 2 callersFunctionsimulatePlayer
(playerNum: number)
matchmaking/scripts/full-game-test.ts:173
↓ 2 callersMethodstart
()
matchmaking/src/matchmaker.ts:28
↓ 2 callersFunctiontoDisplayToken
(token: string)
frontend/src/utils/keyFormatting.ts:33
↓ 2 callersMethodtryMatch
()
matchmaking/src/matchmaker.ts:126
↓ 2 callersFunctionuseLeaderboardData
( limit: number, filter: PlayModeFilter, timeRange: TimeRange = 'all_time' )
frontend/src/components/LeaderboardTable.tsx:56
↓ 2 callersFunctionuseReplay
()
frontend/src/components/LeaderboardTable.tsx:104
↓ 2 callersFunctionvalidateCursorOffset
(input: unknown)
backend/validation/inputValidation.ts:115
↓ 2 callersFunctionvalidateEditorText
(input: unknown)
backend/validation/inputValidation.ts:139
↓ 2 callersFunctionverifyMatchToken
(token: string | undefined)
backend/auth/auth.ts:40
↓ 1 callersMethodaddConnection
* Register a new connection. * @returns true if registered successfully, false if limit exceeded
backend/rateLimit/connectionLimiter.ts:42
↓ 1 callersMethodaddConnection
(ip: string, connectionId: string)
matchmaking/src/connectionLimiter.ts:31
↓ 1 callersMethodaddPlayer
(player: QueuedPlayer)
matchmaking/src/matchmaker.ts:38
↓ 1 callersMethodadvancePlayerTask
( socket: GameSocket, room: GameRoom, player: Player, roomId: string )
backend/multiplayer/roomManager.ts:467
↓ 1 callersMethodassignRoom
(players: QueuedPlayer[])
matchmaking/src/matchmaker.ts:209
↓ 1 callersMethodbubbleDown
(index: number)
backend/multiplayer/vimGraph.ts:146
↓ 1 callersMethodbubbleUp
(index: number)
backend/multiplayer/vimGraph.ts:132
↓ 1 callersFunctionbuildAnyAnchorDeletePlan
( codeSnippet: codeSnippet, startingOffset: number, startingPreferredX: number, anchorOffsets: number[
backend/multiplayer/vimGraph.ts:590
↓ 1 callersFunctionbuildLineStartOffsets
(lineOffsetRanges: IntTuple[])
backend/scripts/generateSnippets.ts:125
↓ 1 callersFunctionbuildMotionKeysByLine
( code: string, lineOffsetRanges: IntTuple[] )
backend/scripts/generateSnippets.ts:144
↓ 1 callersFunctionbuildOffsetToLineMap
( code: string, lineOffsetRanges: IntTuple[] )
backend/scripts/generateSnippets.ts:129
↓ 1 callersFunctionbuildShortestPathCacheKey
( codeSnippet: codeSnippet, startOffset: number, startPreferredX: number, targetOffset: number )
backend/multiplayer/vimGraph.ts:464
↓ 1 callersMethodcanConnect
* Check if a new connection from an IP is allowed. * @returns true if connection is allowed, false if limit exceeded
backend/rateLimit/connectionLimiter.ts:33
↓ 1 callersMethodcanConnect
(ip: string)
matchmaking/src/connectionLimiter.ts:26
↓ 1 callersFunctioncheckPositionTask
( task: PositionTask, cursorOffset: number )
backend/tasks.ts:573
↓ 1 callersMethodcleanup
* Clean up old socket data
backend/rateLimit/socketRateLimiter.ts:137
↓ 1 callersMethodcleanup
* Clean up old entries
matchmaking/src/rateLimit.ts:88
↓ 1 callersFunctioncomputeTaskSummaryAverages
(taskSummaries: TaskSummary[])
frontend/src/utils/taskSummaries.ts:17
↓ 1 callersFunctionconnectToGameServer
(roomId: string, connectionUrl: string)
matchmaking/scripts/full-game-test.ts:299
↓ 1 callersFunctioncreateCodeSnippetObjects
(CODE_SNIPPETS: string[])
backend/scripts/generateSnippets.ts:168
↓ 1 callersFunctioncursorTracker
(onCursorChange: CursorChangeCallback)
frontend/src/extensions/cursorTracker.ts:8
↓ 1 callersFunctiondbHealthCheck
()
backend/db/pool.ts:29
↓ 1 callersMethoddestroy
* Stop the cleanup interval (call on shutdown)
backend/rateLimit/socketRateLimiter.ts:168
↓ 1 callersFunctionextractRawSnippets
(fileContent: string)
backend/scripts/generateSnippets.ts:199
↓ 1 callersFunctionextractTokenFromAuthHeader
( headers: { authorization?: string | string[] | undefined } )
backend/auth/auth.ts:84
↓ 1 callersFunctionextractTokenFromHandshake
(handshake: { auth?: { token?: string } })
backend/auth/auth.ts:77
↓ 1 callersFunctionfetchPlayerAverages
()
frontend/src/pages/multiplayer.tsx:859
↓ 1 callersFunctionfillTaskCache
()
backend/taskPool.ts:108
↓ 1 callersFunctionfindInterestingPositions
* Find interesting positions in code (not whitespace, meaningful characters) * Returns Position: row, col - used for navigation tasks
backend/tasks.ts:48
↓ 1 callersFunctionfindMaxFactor
(initialOffset: number, key:string, codeSnippet: codeSnippet, startingRelativeX: number)
backend/multiplayer/graphInfra.ts:244
↓ 1 callersFunctionfindNonWhitespaceIndices
* Find indices of non-whitespace characters - returns flat offsets for delete tasks
backend/tasks.ts:72
↓ 1 callersMethodfindOrCreateQuickMatchRoom
( socket: GameSocket, playerName: string )
backend/multiplayer/roomManager.ts:724
↓ 1 callersFunctionfindRandomDeleteRange
(code: string)
backend/tasks.ts:83
↓ 1 callersFunctionformatDate
(iso: string)
frontend/src/components/LeaderboardTable.tsx:34
↓ 1 callersFunctionformatDuration
(ms: number)
frontend/src/components/LeaderboardTable.tsx:28
↓ 1 callersFunctionformatTenthsDuration
(ms: number)
frontend/src/utils/taskSummaries.ts:45
↓ 1 callersFunctionformatTime
(ms: number)
frontend/src/components/RaceResults.tsx:185
↓ 1 callersFunctiongenerateDeleteTasks
(count: number)
backend/tasks.ts:550
↓ 1 callersFunctiongenerateDeleteTasksAsync
(count: number)
backend/taskPool.ts:171
↓ 1 callersFunctiongenerateDescription
* Generate a description for a navigation task
backend/tasks.ts:101
↓ 1 callersFunctiongeneratePositionTasks
(count: number)
backend/tasks.ts:546
↓ 1 callersFunctiongenerateRaceTaskBatchesAsync
( tasksPerType: number )
backend/taskPool.ts:176
↓ 1 callersMethodgenerateRoomId
()
backend/multiplayer/roomManager.ts:75
↓ 1 callersFunctiongenerateYankPasteTasks
(count: number)
backend/tasks.ts:542
↓ 1 callersFunctiongetAllowedOrigin
* Check if a request origin is allowed by CORS policy. * Returns the matched origin string, or null if not allowed.
matchmaking/src/index.ts:26
↓ 1 callersFunctiongetBracketIndices
(code: string)
backend/scripts/generateSnippets.ts:110
↓ 1 callersFunctiongetClientIp
* Extract client IP from Socket.IO handshake. * Uses the rightmost X-Forwarded-For entry (added by the closest trusted proxy) * rather than the left
backend/index.ts:680
↓ 1 callersMethodgetConnectionCount
(ip: string)
matchmaking/src/connectionLimiter.ts:66
↓ 1 callersFunctiongetCorsHeaders
* Build CORS headers for a given request. * Only reflects the origin back if it's in the allowlist.
matchmaking/src/index.ts:36
↓ 1 callersFunctiongetCurlyBraceIndices
(code: string)
backend/scripts/generateSnippets.ts:80
↓ 1 callersFunctiongetDeleteRangeForCountedE
( codeSnippet: codeSnippet, offset: number, count: number )
backend/multiplayer/vimGraph.ts:647
↓ 1 callersFunctiongetInnerPairsForStrategy
( codeSnippet: codeSnippet, strategy: DeleteStrategy )
backend/multiplayer/vimGraph.ts:707
↓ 1 callersFunctiongetLastMotionToken
(sequence: string[])
backend/multiplayer/vimGraph.ts:14
↓ 1 callersFunctiongetMatchingCountedEMotions
( codeSnippet: codeSnippet, from: number, to: number )
backend/multiplayer/vimGraph.ts:682
↓ 1 callersFunctiongetMotionKeysForOffset
( offset: number, codeSnippet: codeSnippet )
backend/multiplayer/vimGraph.ts:68
↓ 1 callersFunctiongetMyPosition
()
frontend/src/components/RaceResults.tsx:191
↓ 1 callersFunctiongetNewlineOffsets
(code: string)
backend/scripts/generateSnippets.ts:66
↓ 1 callersFunctiongetParenthesisIndices
(code: string)
backend/scripts/generateSnippets.ts:95
↓ 1 callersMethodgetQueueSize
()
matchmaking/src/matchmaker.ts:77
↓ 1 callersFunctiongetRecommendedDeleteSequence
( codeSnippet: codeSnippet, strategy: DeleteStrategy, from: number, to: number, startingOffset = 0 )
backend/multiplayer/vimGraph.ts:763
↓ 1 callersFunctiongetRecommendedYankPasteSequence
( codeSnippet: codeSnippet, strategy: YankStrategy, yankFrom: number, yankTo: number, pasteOffset: n
backend/multiplayer/vimGraph.ts:924
↓ 1 callersFunctiongetSnippetCacheId
(codeSnippet: codeSnippet)
backend/multiplayer/vimGraph.ts:458
↓ 1 callersFunctiongetTaskTypeDisplay
(task: Task | null)
frontend/src/pages/practice.tsx:1992
↓ 1 callersFunctiongetValidInnerTextObjectAnchors
( codeSnippet: codeSnippet, strategy: DeleteStrategy, from: number, to: number )
backend/multiplayer/vimGraph.ts:716
↓ 1 callersFunctiongetWordIndices
(code: string)
backend/scripts/generateSnippets.ts:28
↓ 1 callersMethodgroupPlayers
()
matchmaking/src/matchmaker.ts:98
↓ 1 callersMethodhandleEditorText
(socket: GameSocket, text: string)
backend/multiplayer/roomManager.ts:396
↓ 1 callersFunctionhandleMessage
( socket: WebSocket, connectionId: string, message: ClientMessage )
matchmaking/src/index.ts:250
↓ 1 callersFunctionhandleResize
()
frontend/src/pages/practice.tsx:1329
↓ 1 callersFunctionhandleRoomCodeChange
(raw: string)
frontend/src/components/Lobby.tsx:334
↓ 1 callersMethodhandleTaskComplete
( socket: GameSocket, data: { offset?: number; text?: string } )
backend/multiplayer/roomManager.ts:357
↓ 1 callersFunctionhttpTests
()
matchmaking/scripts/smoke-test.ts:77
↓ 1 callersFunctioninsertMultiplayerRaceLeaderboardRows
(params: { roomId: string; isPublic: boolean; tasks: Task[]; numTasks: number; rankings: Array<{
backend/db/leaderboard.ts:182
↓ 1 callersFunctioninsertSessionLeaderboardRow
(params: { playMode: string; durationMs: number; tasks: Task[]; playerId?: string; displayName?: str
backend/db/leaderboard.ts:111
↓ 1 callersFunctioninstallGlobalAudioUnlockListeners
()
frontend/src/components/RaceCountdown.tsx:62
↓ 1 callersFunctionisFindLikeMotion
(token: string | undefined)
frontend/src/utils/keyFormatting.ts:37
↓ 1 callersFunctionisValidClientMessage
(msg: unknown)
matchmaking/src/index.ts:233
↓ 1 callersFunctionisValidRoomCode
(code: string)
frontend/src/components/Lobby.tsx:331
↓ 1 callersFunctionisValidTasksPayload
(tasks: unknown)
backend/db/leaderboard.ts:86
↓ 1 callersFunctionmain
()
backend/scripts/generateSnippets.ts:249
↓ 1 callersFunctionmatchWithTimeout
( promise: Promise<T>, label: string )
matchmaking/scripts/smoke-test.ts:238
↓ 1 callersFunctionmatchmakingFlowTests
()
matchmaking/scripts/smoke-test.ts:207
↓ 1 callersFunctionmeasureEventLoopTicks
* Measure event loop responsiveness during async work. * Schedules setImmediate callbacks in a tight loop and records * how many fire while the prov
backend/taskPool.test.ts:15
↓ 1 callersFunctionmultiKeyResolve
(initialOffset:number, key:string, factor: number, codeSnippet: codeSnippet, startingRelativeX: number)
backend/multiplayer/graphInfra.ts:231
↓ 1 callersFunctionobj
(v: unknown)
matchmaking/scripts/full-game-test.ts:82
↓ 1 callersFunctionplayCountdownTick
(ctx: AudioContext, second: number)
frontend/src/components/RaceCountdown.tsx:78
← previousnext →101–200 of 307, ranked by callers