Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Swaggermuffin64/VIM_GYM
/ functions
Functions
307 in github.com/Swaggermuffin64/VIM_GYM
⨍
Functions
307
◇
Types & classes
92
↓ 2 callers
Method
removeConnection
* Remove a connection when socket disconnects.
backend/rateLimit/connectionLimiter.ts:67
↓ 2 callers
Function
shortestVimSequenceLazy
( codeSnippet: codeSnippet, startingOffset: number, targetOffset: number, startingPreferredX?: number
backend/multiplayer/vimGraph.ts:259
↓ 2 callers
Function
shortestVimSequenceLazyToAnyTarget
( codeSnippet: codeSnippet, startingOffset: number, targetOffsets: number[], startingPreferredX?: numb
backend/multiplayer/vimGraph.ts:348
↓ 2 callers
Function
shouldDebugUndo
()
frontend/src/components/VimRaceEditor.tsx:85
↓ 2 callers
Function
shutdown
(signal: string)
backend/index.ts:1115
↓ 2 callers
Function
simulatePlayer
(playerNum: number)
matchmaking/scripts/full-game-test.ts:173
↓ 2 callers
Method
start
()
matchmaking/src/matchmaker.ts:28
↓ 2 callers
Function
toDisplayToken
(token: string)
frontend/src/utils/keyFormatting.ts:33
↓ 2 callers
Method
tryMatch
()
matchmaking/src/matchmaker.ts:126
↓ 2 callers
Function
useLeaderboardData
( limit: number, filter: PlayModeFilter, timeRange: TimeRange = 'all_time' )
frontend/src/components/LeaderboardTable.tsx:56
↓ 2 callers
Function
useReplay
()
frontend/src/components/LeaderboardTable.tsx:104
↓ 2 callers
Function
validateCursorOffset
(input: unknown)
backend/validation/inputValidation.ts:115
↓ 2 callers
Function
validateEditorText
(input: unknown)
backend/validation/inputValidation.ts:139
↓ 2 callers
Function
verifyMatchToken
(token: string | undefined)
backend/auth/auth.ts:40
↓ 1 callers
Method
addConnection
* Register a new connection. * @returns true if registered successfully, false if limit exceeded
backend/rateLimit/connectionLimiter.ts:42
↓ 1 callers
Method
addConnection
(ip: string, connectionId: string)
matchmaking/src/connectionLimiter.ts:31
↓ 1 callers
Method
addPlayer
(player: QueuedPlayer)
matchmaking/src/matchmaker.ts:38
↓ 1 callers
Method
advancePlayerTask
( socket: GameSocket, room: GameRoom, player: Player, roomId: string )
backend/multiplayer/roomManager.ts:467
↓ 1 callers
Method
assignRoom
(players: QueuedPlayer[])
matchmaking/src/matchmaker.ts:209
↓ 1 callers
Method
bubbleDown
(index: number)
backend/multiplayer/vimGraph.ts:146
↓ 1 callers
Method
bubbleUp
(index: number)
backend/multiplayer/vimGraph.ts:132
↓ 1 callers
Function
buildAnyAnchorDeletePlan
( codeSnippet: codeSnippet, startingOffset: number, startingPreferredX: number, anchorOffsets: number[
backend/multiplayer/vimGraph.ts:590
↓ 1 callers
Function
buildLineStartOffsets
(lineOffsetRanges: IntTuple[])
backend/scripts/generateSnippets.ts:125
↓ 1 callers
Function
buildMotionKeysByLine
( code: string, lineOffsetRanges: IntTuple[] )
backend/scripts/generateSnippets.ts:144
↓ 1 callers
Function
buildOffsetToLineMap
( code: string, lineOffsetRanges: IntTuple[] )
backend/scripts/generateSnippets.ts:129
↓ 1 callers
Function
buildShortestPathCacheKey
( codeSnippet: codeSnippet, startOffset: number, startPreferredX: number, targetOffset: number )
backend/multiplayer/vimGraph.ts:464
↓ 1 callers
Method
canConnect
* 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 callers
Method
canConnect
(ip: string)
matchmaking/src/connectionLimiter.ts:26
↓ 1 callers
Function
checkPositionTask
( task: PositionTask, cursorOffset: number )
backend/tasks.ts:573
↓ 1 callers
Method
cleanup
* Clean up old socket data
backend/rateLimit/socketRateLimiter.ts:137
↓ 1 callers
Method
cleanup
* Clean up old entries
matchmaking/src/rateLimit.ts:88
↓ 1 callers
Function
computeTaskSummaryAverages
(taskSummaries: TaskSummary[])
frontend/src/utils/taskSummaries.ts:17
↓ 1 callers
Function
connectToGameServer
(roomId: string, connectionUrl: string)
matchmaking/scripts/full-game-test.ts:299
↓ 1 callers
Function
createCodeSnippetObjects
(CODE_SNIPPETS: string[])
backend/scripts/generateSnippets.ts:168
↓ 1 callers
Function
cursorTracker
(onCursorChange: CursorChangeCallback)
frontend/src/extensions/cursorTracker.ts:8
↓ 1 callers
Function
dbHealthCheck
()
backend/db/pool.ts:29
↓ 1 callers
Method
destroy
* Stop the cleanup interval (call on shutdown)
backend/rateLimit/socketRateLimiter.ts:168
↓ 1 callers
Function
extractRawSnippets
(fileContent: string)
backend/scripts/generateSnippets.ts:199
↓ 1 callers
Function
extractTokenFromAuthHeader
( headers: { authorization?: string | string[] | undefined } )
backend/auth/auth.ts:84
↓ 1 callers
Function
extractTokenFromHandshake
(handshake: { auth?: { token?: string } })
backend/auth/auth.ts:77
↓ 1 callers
Function
fetchPlayerAverages
()
frontend/src/pages/multiplayer.tsx:859
↓ 1 callers
Function
fillTaskCache
()
backend/taskPool.ts:108
↓ 1 callers
Function
findInterestingPositions
* Find interesting positions in code (not whitespace, meaningful characters) * Returns Position: row, col - used for navigation tasks
backend/tasks.ts:48
↓ 1 callers
Function
findMaxFactor
(initialOffset: number, key:string, codeSnippet: codeSnippet, startingRelativeX: number)
backend/multiplayer/graphInfra.ts:244
↓ 1 callers
Function
findNonWhitespaceIndices
* Find indices of non-whitespace characters - returns flat offsets for delete tasks
backend/tasks.ts:72
↓ 1 callers
Method
findOrCreateQuickMatchRoom
( socket: GameSocket, playerName: string )
backend/multiplayer/roomManager.ts:724
↓ 1 callers
Function
findRandomDeleteRange
(code: string)
backend/tasks.ts:83
↓ 1 callers
Function
formatDate
(iso: string)
frontend/src/components/LeaderboardTable.tsx:34
↓ 1 callers
Function
formatDuration
(ms: number)
frontend/src/components/LeaderboardTable.tsx:28
↓ 1 callers
Function
formatTenthsDuration
(ms: number)
frontend/src/utils/taskSummaries.ts:45
↓ 1 callers
Function
formatTime
(ms: number)
frontend/src/components/RaceResults.tsx:185
↓ 1 callers
Function
generateDeleteTasks
(count: number)
backend/tasks.ts:550
↓ 1 callers
Function
generateDeleteTasksAsync
(count: number)
backend/taskPool.ts:171
↓ 1 callers
Function
generateDescription
* Generate a description for a navigation task
backend/tasks.ts:101
↓ 1 callers
Function
generatePositionTasks
(count: number)
backend/tasks.ts:546
↓ 1 callers
Function
generateRaceTaskBatchesAsync
( tasksPerType: number )
backend/taskPool.ts:176
↓ 1 callers
Method
generateRoomId
()
backend/multiplayer/roomManager.ts:75
↓ 1 callers
Function
generateYankPasteTasks
(count: number)
backend/tasks.ts:542
↓ 1 callers
Function
getAllowedOrigin
* 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 callers
Function
getBracketIndices
(code: string)
backend/scripts/generateSnippets.ts:110
↓ 1 callers
Function
getClientIp
* 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 callers
Method
getConnectionCount
(ip: string)
matchmaking/src/connectionLimiter.ts:66
↓ 1 callers
Function
getCorsHeaders
* Build CORS headers for a given request. * Only reflects the origin back if it's in the allowlist.
matchmaking/src/index.ts:36
↓ 1 callers
Function
getCurlyBraceIndices
(code: string)
backend/scripts/generateSnippets.ts:80
↓ 1 callers
Function
getDeleteRangeForCountedE
( codeSnippet: codeSnippet, offset: number, count: number )
backend/multiplayer/vimGraph.ts:647
↓ 1 callers
Function
getInnerPairsForStrategy
( codeSnippet: codeSnippet, strategy: DeleteStrategy )
backend/multiplayer/vimGraph.ts:707
↓ 1 callers
Function
getLastMotionToken
(sequence: string[])
backend/multiplayer/vimGraph.ts:14
↓ 1 callers
Function
getMatchingCountedEMotions
( codeSnippet: codeSnippet, from: number, to: number )
backend/multiplayer/vimGraph.ts:682
↓ 1 callers
Function
getMotionKeysForOffset
( offset: number, codeSnippet: codeSnippet )
backend/multiplayer/vimGraph.ts:68
↓ 1 callers
Function
getMyPosition
()
frontend/src/components/RaceResults.tsx:191
↓ 1 callers
Function
getNewlineOffsets
(code: string)
backend/scripts/generateSnippets.ts:66
↓ 1 callers
Function
getParenthesisIndices
(code: string)
backend/scripts/generateSnippets.ts:95
↓ 1 callers
Method
getQueueSize
()
matchmaking/src/matchmaker.ts:77
↓ 1 callers
Function
getRecommendedDeleteSequence
( codeSnippet: codeSnippet, strategy: DeleteStrategy, from: number, to: number, startingOffset = 0 )
backend/multiplayer/vimGraph.ts:763
↓ 1 callers
Function
getRecommendedYankPasteSequence
( codeSnippet: codeSnippet, strategy: YankStrategy, yankFrom: number, yankTo: number, pasteOffset: n
backend/multiplayer/vimGraph.ts:924
↓ 1 callers
Function
getSnippetCacheId
(codeSnippet: codeSnippet)
backend/multiplayer/vimGraph.ts:458
↓ 1 callers
Function
getTaskTypeDisplay
(task: Task | null)
frontend/src/pages/practice.tsx:1992
↓ 1 callers
Function
getValidInnerTextObjectAnchors
( codeSnippet: codeSnippet, strategy: DeleteStrategy, from: number, to: number )
backend/multiplayer/vimGraph.ts:716
↓ 1 callers
Function
getWordIndices
(code: string)
backend/scripts/generateSnippets.ts:28
↓ 1 callers
Method
groupPlayers
()
matchmaking/src/matchmaker.ts:98
↓ 1 callers
Method
handleEditorText
(socket: GameSocket, text: string)
backend/multiplayer/roomManager.ts:396
↓ 1 callers
Function
handleMessage
( socket: WebSocket, connectionId: string, message: ClientMessage )
matchmaking/src/index.ts:250
↓ 1 callers
Function
handleResize
()
frontend/src/pages/practice.tsx:1329
↓ 1 callers
Function
handleRoomCodeChange
(raw: string)
frontend/src/components/Lobby.tsx:334
↓ 1 callers
Method
handleTaskComplete
( socket: GameSocket, data: { offset?: number; text?: string } )
backend/multiplayer/roomManager.ts:357
↓ 1 callers
Function
httpTests
()
matchmaking/scripts/smoke-test.ts:77
↓ 1 callers
Function
insertMultiplayerRaceLeaderboardRows
(params: { roomId: string; isPublic: boolean; tasks: Task[]; numTasks: number; rankings: Array<{
backend/db/leaderboard.ts:182
↓ 1 callers
Function
insertSessionLeaderboardRow
(params: { playMode: string; durationMs: number; tasks: Task[]; playerId?: string; displayName?: str
backend/db/leaderboard.ts:111
↓ 1 callers
Function
installGlobalAudioUnlockListeners
()
frontend/src/components/RaceCountdown.tsx:62
↓ 1 callers
Function
isFindLikeMotion
(token: string | undefined)
frontend/src/utils/keyFormatting.ts:37
↓ 1 callers
Function
isValidClientMessage
(msg: unknown)
matchmaking/src/index.ts:233
↓ 1 callers
Function
isValidRoomCode
(code: string)
frontend/src/components/Lobby.tsx:331
↓ 1 callers
Function
isValidTasksPayload
(tasks: unknown)
backend/db/leaderboard.ts:86
↓ 1 callers
Function
main
()
backend/scripts/generateSnippets.ts:249
↓ 1 callers
Function
matchWithTimeout
( promise: Promise<T>, label: string )
matchmaking/scripts/smoke-test.ts:238
↓ 1 callers
Function
matchmakingFlowTests
()
matchmaking/scripts/smoke-test.ts:207
↓ 1 callers
Function
measureEventLoopTicks
* 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 callers
Function
multiKeyResolve
(initialOffset:number, key:string, factor: number, codeSnippet: codeSnippet, startingRelativeX: number)
backend/multiplayer/graphInfra.ts:231
↓ 1 callers
Function
obj
(v: unknown)
matchmaking/scripts/full-game-test.ts:82
↓ 1 callers
Function
playCountdownTick
(ctx: AudioContext, second: number)
frontend/src/components/RaceCountdown.tsx:78
← previous
next →
101–200 of 307, ranked by callers