MCPcopy Create free account

hub / github.com/METR/vivaria / functions

Functions1,931 in github.com/METR/vivaria

↓ 7 callersFunctionrenderAndWaitForLoading
()
ui/src/run/panes/ManualScoringPane.test.tsx:23
↓ 7 callersMethodset
Set the value of a config key.
cli/viv_cli/main.py:152
↓ 7 callersFunctionsetSkippableInterval
( logName: string, func: () => unknown, milliseconds: number, { extraTags }: { extraTags?: Record<stri
server/src/util.ts:57
↓ 7 callersFunctiontoastErr
(content: ReactNode, opts: ToastOpts = {})
ui/src/util/hooks.ts:73
↓ 7 callersFunctiontypesafeObjectKeys
(obj: T)
shared/src/util.ts:320
↓ 7 callersMethodwithConn
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/db.ts:72
↓ 6 callersFunction_get_auth_header
(auth_type: str, token: str)
cli/viv_cli/viv_api.py:74
↓ 6 callersMethodassertRunsPermission
(context: UserContext | MachineContext, runIds: RunId[])
server/src/services/Bouncer.ts:84
↓ 6 callersFunctioncheckScore
(scoreStdout: string, expectedScore: number)
server/src/e2e.test.ts:105
↓ 6 callersMethodcleanupTaskEnvironment
(host: Host, containerId: string, opts: { destroy?: boolean } = {})
server/src/services/RunKiller.ts:180
↓ 6 callersMethodcreateDriver
(host: Host, taskInfo: TaskInfo, containerName: string, aspawnOptions: AspawnOptions = {})
server/src/Drivers.ts:192
↓ 6 callersFunctioncreateGenerationRequestWithPromptFixture
( values: Partial<GenerationRequest & { prompt?: string | null }> = {}, )
ui/test-util/fixtures.ts:146
↓ 6 callersFunctioncreateMiddlemanModelOutputFixture
(values: Partial<MiddlemanModelOutput> = {})
ui/test-util/fixtures.ts:121
↓ 6 callersFunctioncreateMiddlemanResultFixture
(values: Partial<MiddlemanResultSuccess> = {})
ui/test-util/fixtures.ts:133
↓ 6 callersFunctioncreateRemoteAndLocalGitRepos
()
server/src/services/Git.test.ts:194
↓ 6 callersMethoddoesContainerExist
(containerName: string)
server/src/docker/K8s.ts:385
↓ 6 callersFunctionfetchWithLongTimeout
(url: string | URL | Request, init?: RequestInit)
server/src/services/Middleman.ts:78
↓ 6 callersFunctionformatHeader
(text: string)
server/src/util.ts:188
↓ 6 callersFunctionformatLoggable
(obj: Loggable)
server/src/logging.ts:55
↓ 6 callersMethodgetAccessTokenSecretKey
()
server/src/services/Config.ts:282
↓ 6 callersFunctiongetAgentContext
(helper: TestHelper)
server/src/routes/trpc_setup.test.ts:54
↓ 6 callersFunctiongetDestroyedAtByContainerName
(db: DB)
server/src/services/db/DBTaskEnvironments.test.ts:143
↓ 6 callersFunctiongetExpectedIntermediateScoreEntry
( event: InfoEvent | ScoreEvent, score: Score, branchKey: BranchKey, startedAt: number, )
server/src/inspect/inspectTestUtil.ts:756
↓ 6 callersMethodgetMachineName
()
server/src/services/Config.ts:189
↓ 6 callersMethodgetTaskEnvironments
(options: { activeOnly: boolean userId: string | null })
server/src/services/db/DBTaskEnvironments.ts:102
↓ 6 callersFunctiongetUnauthenticatedContext
(helper: TestHelper)
server/src/routes/trpc_setup.test.ts:64
↓ 6 callersMethodgetUsage
()
server/src/services/Bouncer.ts:150
↓ 6 callersFunctiongetUserContext
(helper: TestHelper)
server/src/routes/trpc_setup.test.ts:28
↓ 6 callersFunctionidJoin
(...args: unknown[])
server/src/docker/util.ts:43
↓ 6 callersMethodlistContainers
(opts: { format: string })
server/src/core/gpus.ts:124
↓ 6 callersFunctionscrollToEntry
(entryIdx: number)
ui/src/run/util.ts:82
↓ 6 callersMethodsetCommandResult
( runId: RunId, commandField: SqlLit, commandResult: Readonly<ExecResult>, )
server/src/services/db/DBRuns.ts:704
↓ 6 callersMethodsetUserPreference
(userId: string, key: string, value: boolean)
server/src/services/db/DBUsers.ts:79
↓ 6 callersFunctionsetupOutputHandlers
({ execResult, stdout, stderr, options, }: { execResult: ExecResult stdout: Readable stderr: Rea
server/src/lib/async-spawn.ts:15
↓ 6 callersFunctionsetupRuns
(helper: TestHelper, batchName: string | null, runs: RunSetup[])
server/src/services/db/DBRuns.test.ts:343
↓ 6 callersFunctiontaskIdParts
(taskId: string)
shared/src/util.ts:273
↓ 5 callersFunctionaspawn
server/src/core/remote.test.ts:9
↓ 5 callersFunctionassertCopiesToClipboard
(component: ReactNode, buttonText: string, expectedClipboardData: string)
ui/test-util/assertions.ts:6
↓ 5 callersFunctionassertExpectedTraceEntries
( traceEntries: Array<Omit<TraceEntry, 'modifiedAt'>>, expectedTraceEntries: Array<ExpectedEntry>, )
server/src/inspect/InspectEventHandler.test.ts:49
↓ 5 callersMethodbuildImage
(imageName: string, contextPath: string, opts: BuildOpts)
server/src/docker/docker.ts:78
↓ 5 callersMethodcopy
(from: string | ContainerPath, to: string | ContainerPath | ContainerPathWithOwner)
server/src/docker/K8s.ts:318
↓ 5 callersMethodcreateDefault
()
server/src/services/K8sHostFactory.ts:15
↓ 5 callersFunctioncreatePod
({ runId, containerName = 'test-container', phase = 'Failed', reason = 'Error', message =
server/src/docker/K8s.test.ts:821
↓ 5 callersFunctioncreateRatingLabelFixture
(values: Partial<RatingLabel> = {})
ui/test-util/fixtures.ts:243
↓ 5 callersFunctioncreateRunUsingModel
(model: string, forceRunId: number)
server/src/services/db/DBTraceEntries.test.ts:28
↓ 5 callersMethoddoesImageExist
(imageName: string)
server/src/docker/docker.ts:231
↓ 5 callersMethodexec
( containerName: string, command: Array<string | TrustedArg>, opts: ExecOptions = {}, )
server/src/docker/K8s.ts:430
↓ 5 callersMethodexecPython
( containerName: string, code: string, opts: ExecOptions & { pythonArgs?: string[] } = {}, )
server/src/docker/docker.ts:323
↓ 5 callersFunctiongenerateSubtaskEvent
(events: Events)
server/src/inspect/inspectTestUtil.ts:588
↓ 5 callersMethodget
(service: AbstractConstructor<T>)
shared/src/services.ts:10
↓ 5 callersMethodgetAgentSettings
Visible for testing.
server/src/docker/agents.ts:524
↓ 5 callersMethodgetFinalResult
(body: string)
server/src/services/PassthroughLabApiRequestHandler.ts:271
↓ 5 callersFunctiongetImageNameGenerationData
(vmSpec: VMSpec)
server/src/aws/getImageNameGenerationData.ts:15
↓ 5 callersMethodgetOrCreateTaskRepo
(repoName: string)
server/src/services/Git.ts:81
↓ 5 callersFunctiongetPauses
(helper: TestHelper)
server/src/services/db/DBBranches.test.ts:348
↓ 5 callersMethodgetPodName
(containerName: string)
server/src/docker/K8s.ts:80
↓ 5 callersMethodgetTraceEntriesForRuns
(runIds: RunId[])
server/src/services/db/DBTraceEntries.ts:341
↓ 5 callersMethodgetUsedModels
(runIds: RunId | RunId[])
server/src/services/db/DBRuns.ts:335
↓ 5 callersFunctiongetUserId
()
ui/src/util/auth0_client.ts:86
↓ 5 callersMethodgrantUserTaskEnvAccess
(containerName: string, userId: string)
server/src/services/db/DBTaskEnvironments.ts:192
↓ 5 callersFunctionhandleReadOnly
(config: Config, opts: { isReadAction: boolean })
server/src/routes/trpc_setup.ts:92
↓ 5 callersFunctionintOr
(s: string | null | undefined, defaultValue: number)
shared/src/util.ts:300
↓ 5 callersFunctioninterpolateQueryValues
(query: ParameterizedQuery)
ui/src/runs/RunsPage.tsx:71
↓ 5 callersMethodisInteractive
(key: BranchKey)
server/src/services/db/DBBranches.ts:112
↓ 5 callersMethodkill
Kill a run.
cli/viv_cli/main.py:1107
↓ 5 callersMethodkillUnallocatedRun
* Kills a run that we know doesn't have an associated workload or aux VM.
server/src/services/RunKiller.ts:76
↓ 5 callersFunctionkvFlags
( flag: TrustedArg, obj: Record<string, string | null | undefined> | undefined, )
server/src/lib/cmd_template_string.ts:210
↓ 5 callersFunctionlogJsonl
(obj: Loggable)
server/src/logging.ts:80
↓ 5 callersFunctionmakeTaskImageBuildSpec
( config: Config, task: FetchedTask, env: Env, opts: { aspawnOptions?: AspawnOptions } = {}, )
server/src/docker/tasks.ts:303
↓ 5 callersMethodopen_editor
Open a code editor session as the given user at the given IP address.
cli/viv_cli/ssh.py:110
↓ 5 callersMethodparseAuthHeader
(header: string)
server/src/docker/agents.ts:92
↓ 5 callersFunctionparseWithGoodErrors
( Schema: T, val: unknown, extraInfo?: Record<PropertyKey, unknown>, prefix?: string, )
shared/src/util.ts:150
↓ 5 callersFunctionparse_submission
Format submission from viv task score --submission for scoring.
cli/viv_cli/util.py:143
↓ 5 callersFunctionprint_if_verbose
Print if in verbose mode.
cli/viv_cli/util.py:24
↓ 5 callersFunctionremovePrefix
(s: string, prefix: string)
shared/src/util.ts:378
↓ 5 callersFunctionrenderAndWaitForLoading
()
ui/src/run/panes/UsageLimitsPane.test.tsx:23
↓ 5 callersMethodsaveState
(entryKey: FullEntryKey, calledAt: number, state: unknown)
server/src/services/db/DBTraceEntries.ts:455
↓ 5 callersMethodssh_args
Get the arguments for SSHing to destination specified by opts.
cli/viv_cli/ssh.py:95
↓ 5 callersMethodstart
Start a task environment. Start a task environment that you can use to manually test a task, or as an environment for a QA run or a h
cli/viv_cli/main.py:186
↓ 5 callersMethodtransaction
(fn: (conn: TransactionalConnectionWrapper) => Promise<T>)
server/src/services/db/DBRuns.ts:105
↓ 5 callersFunctiontruncateStep
(step: string)
server/src/run_analysis.ts:95
↓ 5 callersFunctionupdateMessage
(i: number, message: Partial<string>)
ui/src/playground/PlaygroundPage.tsx:259
↓ 5 callersFunctionusd
(value: number)
ui/src/run/util.ts:92
↓ 5 callersFunctionuseReallyOnce
(cb: () => void | Promise<void>)
ui/src/util/hooks.ts:6
↓ 5 callersFunctionvalidateDelegationToken
(config: Config, token: string, branchKey: BranchKey, data: object)
server/src/jwt.ts:75
↓ 5 callersFunctionwithRetry
(operation: () => Promise<T>)
server/src/run_analysis.ts:22
↓ 4 callersFunctionaddAuxVmDetailsToEnv
(env: Env, auxVMDetails: AuxVmDetails | null)
server/src/docker/agents.ts:949
↓ 4 callersMethodaddHostConfigOptions
Exported for testing.
server/src/core/remote.ts:155
↓ 4 callersFunctionassertImportFails
(evalLog: EvalLogWithSamples, sampleIdx: number, expectedError: string)
server/src/inspect/InspectImporter.test.ts:196
↓ 4 callersMethodassertModelPermitted
(accessToken: string, model: string)
server/src/services/Bouncer.ts:119
↓ 4 callersFunctionatimed
(f: (...args: In) => Promise<Out>)
shared/src/util.ts:82
↓ 4 callersMethodbuildRatingRequest
( ratingModel: string, template: string, transcript: string, option: RatingOption, )
server/src/services/OptionsRater.ts:97
↓ 4 callersFunctionconstruct_editor_call
Construct a command to start the provided `editor`.
cli/viv_cli/util.py:239
↓ 4 callersMethodcreateArchive
(args: { ref: string dirPath?: string | null outputFile?: string format?: string aspawnOpt
server/src/services/Git.ts:248
↓ 4 callersFunctioncreateMiddlemanSettingsFixture
(values: Partial<MiddlemanSettings> = {})
ui/test-util/fixtures.ts:106
↓ 4 callersFunctioncreateTaskUpload
( pathToTask: string, )
server/test-util/testUtil.ts:254
↓ 4 callersFunctiondecrypt
(args: { encrypted: string; nonce: string; key: string })
server/src/secrets.ts:18
↓ 4 callersMethodexecBash
(containerName: string, code: string, opts: ExecOptions = {})
server/src/docker/docker.ts:334
↓ 4 callersFunctionfindAncestorPath
(relativePath: string)
server/src/DriverImpl.ts:44
↓ 4 callersFunctionfloatOrNull
(s: string | null | undefined)
shared/src/util.ts:312
← previousnext →201–300 of 1,931, ranked by callers